MCPcopy Index your code
hub / github.com/modelscope/FunASR / isChinese

Function isChinese

funasr/utils/postprocess_utils.py:8–16  ·  view source on GitHub ↗

Ischinese. Args: ch: TODO.

(ch: str)

Source from the content-addressed store, hash-verified

6
7
8def isChinese(ch: str):
9 """Ischinese.
10
11 Args:
12 ch: TODO.
13 """
14 if "\u4e00" <= ch <= "\u9fff" or "\u0030" <= ch <= "\u0039" or ch == "@":
15 return True
16 return False
17
18
19def isAllChinese(word: Union[List[Any], str]):

Callers 2

isAllChineseFunction · 0.70
isAllAlphaFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…