You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while importing Transliterator, it is throwing numpy error
ImportError Traceback (most recent call last)
in <cell line: 2>()
1 # build_lookup saves time for big corpus. Transliterate hindi text into english
----> 2 from indictrans import Transliterator
2 frames
/usr/local/lib/python3.9/dist-packages/indictrans/init.py in
7 import argparse
8
----> 9 from ._utils import UrduNormalizer, WX
10 from .transliterator import Transliterator
11
/usr/local/lib/python3.9/dist-packages/indictrans/_utils/init.py in
4
5 from .wx import WX
----> 6 from .ctranxn import count_tranxn
7 from .sparseadd import sparse_add
8 from .one_hot_encoder import OneHotEncoder
/usr/local/lib/python3.9/dist-packages/indictrans/_utils/ctranxn.pyx in init indictrans._utils.ctranxn()
init.pxd in numpy.import_array()
ImportError: numpy.core.multiarray failed to import
while importing Transliterator, it is throwing numpy error
ImportError Traceback (most recent call last)
in <cell line: 2>()
1 # build_lookup saves time for big corpus. Transliterate hindi text into english
----> 2 from indictrans import Transliterator
2 frames
/usr/local/lib/python3.9/dist-packages/indictrans/init.py in
7 import argparse
8
----> 9 from ._utils import UrduNormalizer, WX
10 from .transliterator import Transliterator
11
/usr/local/lib/python3.9/dist-packages/indictrans/_utils/init.py in
4
5 from .wx import WX
----> 6 from .ctranxn import count_tranxn
7 from .sparseadd import sparse_add
8 from .one_hot_encoder import OneHotEncoder
/usr/local/lib/python3.9/dist-packages/indictrans/_utils/ctranxn.pyx in init indictrans._utils.ctranxn()
init.pxd in numpy.import_array()
ImportError: numpy.core.multiarray failed to import
this is how i installed.
!git clone https://github.com/libindic/indic-trans.git
%cd indic-trans
!pip install -r requirements.txt
!pip install .
%cd
The text was updated successfully, but these errors were encountered: