MCPcopy Create free account
hub / github.com/EternityJune25/ComoRAG / remove_articles

Function remove_articles

script/eval_qa.py:20–21  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

18 import string
19
20 def remove_articles(text):
21 return re.sub(r'\b(a|an|the)\b', ' ', text)
22
23 def white_space_fix(text):
24 return ' '.join(text.split())

Callers 1

normalize_answerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected