(sentence: str)
| 233 | |
| 234 | |
| 235 | def sentence_facets(sentence: str) -> List[str]: |
| 236 | normalized = normalize_phrase_text(sentence) |
| 237 | matched: List[str] = [] |
| 238 | for facet, cues in FACET_CUE_PATTERNS.items(): |
| 239 | if any(cue in normalized for cue in cues): |
| 240 | matched.append(facet) |
| 241 | return matched or ["general"] |
| 242 | |
| 243 | |
| 244 | def extract_discourse_facets(row: Dict[str, Any]) -> Dict[str, str]: |
no test coverage detected