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

Transliteration problem #23

Open
bharathichezhiyan opened this issue Oct 6, 2017 · 3 comments
Open

Transliteration problem #23

bharathichezhiyan opened this issue Oct 6, 2017 · 3 comments

Comments

@bharathichezhiyan
Copy link

indictrans <Ta_June_2017.dev.ta --s tam --t eng --build-lookup >tam_dev_rom.txt
Traceback (most recent call last):
File "/home/bharaj/anaconda2/bin/indictrans", line 10, in
sys.exit(main())
File "/home/bharaj/anaconda2/lib/python2.7/site-packages/indictrans/init.py", line 124, in main
process_args(args)
File "/home/bharaj/anaconda2/lib/python2.7/site-packages/indictrans/init.py", line 110, in process_args
build_lookup=args.build_lookup)
File "/home/bharaj/anaconda2/lib/python2.7/site-packages/indictrans/transliterator.py", line 91, in init
i2o = Ind2Target(source, target, decoder, build_lookup)
File "/home/bharaj/anaconda2/lib/python2.7/site-packages/indictrans/script_transliterate.py", line 22, in init
build_lookup)
File "/home/bharaj/anaconda2/lib/python2.7/site-packages/indictrans/base.py", line 69, in init
self.base_fit()
File "/home/bharaj/anaconda2/lib/python2.7/site-packages/indictrans/base.py", line 117, in base_fit
self.load_models()
File "/home/bharaj/anaconda2/lib/python2.7/site-packages/indictrans/base.py", line 75, in load_models
with open('%s/models/%s/sparse.vec' % (self.dist_dir, model)) as jfp:
IOError: [Errno 2] No such file or directory: u'/home/bharaj/anaconda2/lib/python2.7/site-packages/indictrans/models/tam-eng/sparse.vec'

@irshadbhat
Copy link
Member

I guess the module setup failed to copy the models to the installation directory. Can you share the installation procedure you followed.

@bharathichezhiyan
Copy link
Author

The problem was I installed in downloaded master directory so It did not update the site-packages dir. I have copied the indictrans dir to the site-packages. it is working now. Thanks.

@bharathichezhiyan
Copy link
Author

Clone the repository:
git clone https://github.com/libindic/indictrans.git
Change to the cloned directory:
cd indic-trans
pip install -r requirements.txt
python setup.py install

I followed the same instructions provided by the author.

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