MCPcopy Create free account
hub / github.com/THUDM/GLM / _normalize

Function _normalize

tasks/seq2seq/dataset.py:241–244  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

239 return False
240
241 def _normalize(s):
242 # if s in tokenizer.command_token_map:
243 # return s
244 return unidecode.unidecode(s.lower())
245
246 def _compare(s1, s2):
247 return _normalize(s1) == _normalize(s2)

Callers 1

_compareFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected