Open bharathichezhiyan opened 7 years ago
I guess the module setup failed to copy the models to the installation directory. Can you share the installation procedure you followed.
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.
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.
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'