MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / build_items

Function build_items

scripts/extract_evidence.py:63–77  ·  view source on GitHub ↗
(sentences: list[str], section: str)

Source from the content-addressed store, hash-verified

61
62
63def build_items(sentences: list[str], section: str) -> list[dict]:
64 items = []
65 for sentence in sentences:
66 cleaned = normalize_whitespace(sentence)
67 if not cleaned:
68 continue
69 items.append(
70 {
71 "claim": cleaned,
72 "evidence": cleaned,
73 "source_section": section,
74 "page_hint": "",
75 }
76 )
77 return items
78
79
80def language_hint_for_text(text: str) -> str:

Callers 1

mainFunction · 0.85

Calls 1

normalize_whitespaceFunction · 0.90

Tested by

no test coverage detected