MCPcopy
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
9def is_word(word):
10 for item in list(word):
11 if item not in 'qwertyuiopasdfghjklzxcvbnm':
12 return False
13 return True
14
15
16def _is_chinese_char(char):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected