Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/THUDM/GLM
/ _is_digit
Function
_is_digit
tasks/seq2seq/evaluate.py:14–18 ·
view source on GitHub ↗
(w)
Source
from the content-addressed store, hash-verified
12
13
14
def
_is_digit(w):
15
for
ch in w:
16
if
not (ch.isdigit() or ch ==
','
):
17
return
False
18
return
True
19
20
21
gigaword_tok_dict = {
"("
:
"-lrb-"
,
")"
:
"-rrb-"
,
Callers
1
fix_tokenization
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected