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

Unable to import Indicprocessor from IndicTransTokenizer #9

Closed
alans3321 opened this issue Mar 6, 2024 · 1 comment
Closed

Unable to import Indicprocessor from IndicTransTokenizer #9

alans3321 opened this issue Mar 6, 2024 · 1 comment

Comments

@alans3321
Copy link

Below are the code which I ran;

!git clone https://github.com/VarunGumma/IndicTransTokenizer
%cd IndicTransTokenizer
!git clone https://github.com/VarunGumma/indic_nlp_library.git

%cd indic_nlp_library

!python3 -m pip install nltk sacremoses pandas regex mock transformers>=4.33.2 mosestokenizer
!python3 -c "import nltk; nltk.download('punkt')"
!python3 -m pip install bitsandbytes scipy accelerate datasets
!python3 -m pip install sentencepiece


!python3 -m pip install --editable ./
%cd ..
from IndicTransTokenizer import  IndicProcessor,IndicTransTokenizer

image

Unable to import IndicProcessor, though IndicTransTokenizer is getting imported. Kindly help

@PranjalChitale
Copy link
Collaborator

This is because you have not installed the IndicTransTokenizer package.

Please navigate inside the IndicTransTokenizer directory and do !python3 -m pip install --editable ./ as described in the readme.

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