MCPcopy Create free account
hub / github.com/TIGER-AI-Lab/LongRAG / remove_articles

Function remove_articles

utils/eval_util.py:32–33  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

30
31
32def remove_articles(text):
33 return regex.sub(r'\b(a|an|the)\b', ' ', text)
34
35
36def white_space_fix(text):

Callers 1

normalize_answerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected