mirror of
https://github.com/marcogll/telegram_expenses_controller.git
synced 2026-01-13 21:35:15 +00:00
feat: Implement core application structure, AI extraction, persistence, and Telegram bot modules with updated configuration and dependencies.
This commit is contained in:
24
app/ingestion/text.py
Normal file
24
app/ingestion/text.py
Normal file
@@ -0,0 +1,24 @@
|
||||
"""
|
||||
Handles processing of raw text inputs.
|
||||
"""
|
||||
import logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
def process_text_input(text: str) -> str:
|
||||
"""
|
||||
Takes raw text, normalizes it, and prepares it for AI extraction.
|
||||
|
||||
In the future, this could include more complex preprocessing like
|
||||
language detection or PII removal.
|
||||
|
||||
Args:
|
||||
text: The raw input text.
|
||||
|
||||
Returns:
|
||||
The processed text.
|
||||
"""
|
||||
logger.info("Processing text input.")
|
||||
# For now, normalization is simple. It will be moved to the preprocessing module.
|
||||
normalized_text = text.lower().strip()
|
||||
return normalized_text
|
||||
Reference in New Issue
Block a user