(score: float)
| 484 | |
| 485 | |
| 486 | def label_for_score(score: float) -> str: |
| 487 | if score >= LABEL_THRESHOLDS["high_relevant"]: |
| 488 | return "high_relevant" |
| 489 | if score >= LABEL_THRESHOLDS["maybe_interested"]: |
| 490 | return "maybe_interested" |
| 491 | return "edge_relevant" |
| 492 | |
| 493 | |
| 494 | def score_row(row: Dict[str, Any], idf: Dict[str, float], state: UserDiscourseState) -> Dict[str, Any]: |