initial commit

This commit is contained in:
2026-05-26 13:51:02 +02:00
commit 4bf7394a0a
50 changed files with 7332 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
"""
Text processing utilities for sentiment and news analysis.
"""
import re
def clean_text(text: str) -> str:
"""Clean and normalize text."""
text = re.sub(r"http\S+", "", text)
text = re.sub(r"[^\w\s]", "", text)
return text.strip().lower()