Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

from indictrans import Transliterator #66

Open
Aswathanarayanan opened this issue Apr 12, 2023 · 1 comment
Open

from indictrans import Transliterator #66

Aswathanarayanan opened this issue Apr 12, 2023 · 1 comment

Comments

@Aswathanarayanan
Copy link

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

@zephyrous
Copy link

pip install --upgrade numpy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants