feat: sentiment analyzer — FinBERT + Ollama tiered analysis

This commit is contained in:
Viktor Barzin 2026-02-22 15:27:06 +00:00
parent 9f46071502
commit 6952a829ae
No known key found for this signature in database
GPG key ID: 0EB088298288D958
11 changed files with 976 additions and 1 deletions

View file

@ -0,0 +1,15 @@
"""Configuration for the sentiment analyzer service."""
from shared.config import BaseConfig
class SentimentAnalyzerConfig(BaseConfig):
"""Extends BaseConfig with sentiment-analysis-specific settings."""
finbert_model: str = "ProsusAI/finbert"
finbert_confidence_threshold: float = 0.6
ollama_model: str = "mistral"
ollama_host: str = "http://localhost:11434"
max_content_length: int = 512
model_config = {"env_prefix": "TRADING_"}