Merge pull request #29 from alibaba-damo-academy/dev

Dev
This commit is contained in:
zhifu gao 2023-01-09 19:58:54 +08:00 committed by GitHub
commit e5819185cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 9 deletions

View File

@ -1,8 +0,0 @@
"""Initialize fun_text_processing package."""
import os
dirname = os.path.dirname(__file__)
version_file = os.path.join(dirname, "version.txt")
with open(version_file, "r") as f:
__version__ = f.read().strip()

View File

@ -5,7 +5,7 @@ from typing import Any, List, Union
def isChinese(ch: str):
if '\u4e00' <= ch <= '\u9fff':
if '\u4e00' <= ch <= '\u9fff' or '\u0030' <= ch <= '\u0039':
return True
return False