|
|
|
|
|
|
|
|
|
|
|
YAHOO_FINANCE_BASE_URL = "https://finance.yahoo.com" |
|
|
YAHOO_FINANCE_NEWS_URL = "https://finance.yahoo.com/news/" |
|
|
|
|
|
|
|
|
GEMMA_MODEL_NAME = "google/gemma-2-2b-it" |
|
|
SENTIMENT_MODEL_NAME = "ProsusAI/finbert" |
|
|
|
|
|
|
|
|
HEADERS = { |
|
|
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36' |
|
|
} |
|
|
|
|
|
|
|
|
SENTIMENT_LABELS = { |
|
|
'positive': '😊 Positive', |
|
|
'negative': '😟 Negative', |
|
|
'neutral': '😐 Neutral' |
|
|
} |
|
|
|
|
|
|
|
|
SCORE_RANGES = { |
|
|
'very_positive': (0.8, 1.0), |
|
|
'positive': (0.6, 0.8), |
|
|
'neutral': (0.4, 0.6), |
|
|
'negative': (0.2, 0.4), |
|
|
'very_negative': (0.0, 0.2) |
|
|
} |
|
|
|
|
|
|
|
|
MAX_NEWS_ITEMS = 10 |
|
|
DEFAULT_SEARCH_QUERY = "stock market" |