MCPcopy Create free account
hub / github.com/google-research/language / remove_articles

Function remove_articles

language/orqa/utils/eval_utils.py:29–30  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

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

Callers 1

normalize_answerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…