MCPcopy Create free account
hub / github.com/RUC-NLPIR/WebThinker / remove_articles

Function remove_articles

scripts/evaluate/evaluate.py:186–187  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

184 if mode in ['qa']:
185 def normalize_answer_qa(s):
186 def remove_articles(text):
187 return re.sub(r"\b(a|an|the)\b", " ", text)
188 def white_space_fix(text):
189 return " ".join(text.strip().split())
190 def remove_punc(text):

Callers 1

normalize_answer_qaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected