MCPcopy Create free account
hub / github.com/OrangeInSouth/DeePEn / remove_articles

Function remove_articles

utils/evaluate/utils/eval_utils.py:27–28  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

25 s = unicodedata.normalize("NFD", s)
26
27 def remove_articles(text):
28 return re.sub(r"\b(a|an|the)\b", " ", text)
29
30 def white_space_fix(text):
31 return " ".join(text.split())

Callers 1

normalize_answerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected