22 lines
481 B
Go
22 lines
481 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
type NewsArticle struct {
|
|
ID int64
|
|
Source string
|
|
Title string
|
|
URL string
|
|
Content string
|
|
PublishedAt time.Time
|
|
FetchedAt time.Time
|
|
Symbols string
|
|
SentimentScore *float64
|
|
SentimentLabel string
|
|
// LLM sentiment fields
|
|
LLMSentimentScore *float64
|
|
LLMModel *string
|
|
LLMConfidence *float64
|
|
SentimentMethod string // "keyword", "llm", "ensemble", "keyword_fallback"
|
|
}
|