fix(extractor): add underscore variants to impact_horizon normalizer

Model returns long_term/short_term/medium_term instead of hyphenated versions
This commit is contained in:
Celes Renata
2026-04-12 16:08:25 -07:00
parent cd782d1552
commit 6ae8aa779e
+5
View File
@@ -229,15 +229,20 @@ _VALID_CATALYSTS = frozenset({
_HORIZON_MAP: dict[str, str] = {
"long-term": "90d_plus",
"long_term": "90d_plus",
"long": "90d_plus",
"longterm": "90d_plus",
"medium-term": "30d_90d",
"medium_term": "1d_30d",
"medium": "1d_30d",
"short-term": "1d_7d",
"short_term": "1d",
"short": "1d",
"immediate": "intraday",
"near-term": "1d_7d",
"near_term": "1d_7d",
"mid-term": "1d_30d",
"mid_term": "1d_30d",
}