Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/THUDM/GLM
/ _compare
Function
_compare
tasks/seq2seq/dataset.py:246–247 ·
view source on GitHub ↗
(s1, s2)
Source
from the content-addressed store, hash-verified
244
return
unidecode.unidecode(s.lower())
245
246
def
_compare(s1, s2):
247
return
_normalize(s1) == _normalize(s2)
248
249
tokens = [tokenizer.IdToToken(token)
for
token in tokens]
250
text = raw_text
Callers
1
generate_token_to_char_map
Function · 0.85
Calls
1
_normalize
Function · 0.85
Tested by
no test coverage detected