MCPcopy
hub / github.com/ymcui/Chinese-LLaMA-Alpaca-2 / lower

Function lower

scripts/longbench/metrics.py:25–26  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

23 return "".join(ch for ch in text if ch not in exclude)
24
25 def lower(text):
26 return text.lower()
27
28 return white_space_fix(remove_articles(remove_punc(lower(s))))
29

Callers 4

normalize_answerMethod · 0.85
normalize_answerFunction · 0.85
normalize_zh_answerFunction · 0.85
normalize_answerMethod · 0.85

Calls 1

lowerMethod · 0.45

Tested by

no test coverage detected