Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Morizeyao/GPT2-Chinese
/ is_word
Function
is_word
generate.py:9–13 ·
view source on GitHub ↗
(word)
Source
from the content-addressed store, hash-verified
7
8
9
def
is_word(word):
10
for
item in list(word):
11
if
item not in
'qwertyuiopasdfghjklzxcvbnm'
:
12
return
False
13
return
True
14
15
16
def
_is_chinese_char(char):
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected