feat: sentiment analyzer — FinBERT + Ollama tiered analysis
This commit is contained in:
parent
9f46071502
commit
6952a829ae
11 changed files with 976 additions and 1 deletions
15
services/sentiment_analyzer/config.py
Normal file
15
services/sentiment_analyzer/config.py
Normal 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_"}
|
||||
Loading…
Add table
Add a link
Reference in a new issue