underthesea icon indicating copy to clipboard operation
underthesea copied to clipboard

issues import text_normalize

Open pham-cao opened this issue 3 years ago • 1 comments

ImportError Traceback (most recent call last) in ----> 1 from underthesea import text_normalize

ImportError: cannot import name 'text_normalize' from 'underthesea' (/usr/local/lib/python3.7/dist-packages/underthesea/init.py)


NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the "Open Examples" button below.

pham-cao avatar Aug 23 '22 04:08 pham-cao

Duplicate #557

rain1024 avatar Aug 23 '22 07:08 rain1024

@FamCao text_normalize is ready in version 1.3.5

Please check it out

pip install underthesea

Use text_normalize module

>>> from underthesea import text_normalize
>>> text_normalize('Ðảm baỏ chất lựơng phòng thí nghịêm hoá học')
'Đảm bảo chất lượng phòng thí nghiệm hóa học'

rain1024 avatar Oct 31 '22 08:10 rain1024