MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / sentence_facets

Function sentence_facets

experiments/baselines/discourse_aware/runner.py:235–241  ·  view source on GitHub ↗
(sentence: str)

Source from the content-addressed store, hash-verified

233
234
235def 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
244def extract_discourse_facets(row: Dict[str, Any]) -> Dict[str, str]:

Callers 1

extract_discourse_facetsFunction · 0.85

Calls 1

normalize_phrase_textFunction · 0.70

Tested by

no test coverage detected