news
news
¶
News and injury signal processing.
NewsParser
¶
Parse and interpret FPL news text into structured signals.
parse_availability
¶
Parse availability from news text.
| PARAMETER | DESCRIPTION |
|---|---|
news_text
|
News text
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
float
|
Availability score (0-1) |
Source code in fplx/signals/news.py
parse_minutes_risk
¶
Parse minutes risk from news text.
| PARAMETER | DESCRIPTION |
|---|---|
news_text
|
News text
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
float
|
Minutes risk score (0-1, higher = more risk) |
Source code in fplx/signals/news.py
parse_confidence
¶
Estimate confidence in the parsed signal.
| PARAMETER | DESCRIPTION |
|---|---|
news_text
|
News text
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
float
|
Confidence score (0-1) |
Source code in fplx/signals/news.py
NewsSignal
¶
Bases: BaseSignal
Generate structured news signals for players.
generate_signal
¶
Generate signal from news text.
| PARAMETER | DESCRIPTION |
|---|---|
news_text
|
News text
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
dict[str, float]
|
Dictionary with availability, minutes_risk, confidence |
Source code in fplx/signals/news.py
batch_generate
¶
Generate signals for multiple players.
| PARAMETER | DESCRIPTION |
|---|---|
news_dict
|
Dictionary mapping player ID to news text
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
dict[str, dict[str, float]]
|
Dictionary of player signals |