MCPcopy Create free account
hub / github.com/modelscope/FunASR / isEnglish

Function isEnglish

funasr/models/ct_transformer/utils.py:95–104  ·  view source on GitHub ↗

Isenglish. Args: text: Text tensor or string input.

(text: str)

Source from the content-addressed store, hash-verified

93
94
95def isEnglish(text: str):
96 """Isenglish.
97
98 Args:
99 text: Text tensor or string input.
100 """
101 if re.search("^[a-zA-Z']+$", text):
102 return True
103 else:
104 return False
105
106
107def join_chinese_and_english(input_list):

Callers 2

split_wordsFunction · 0.70
join_chinese_and_englishFunction · 0.70

Calls 1

searchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…