libindic / indic-trans

The project aims on adding a state-of-the-art transliteration module for cross transliterations among all Indian languages including English.
GNU Affero General Public License v3.0
258 stars 62 forks source link

Transliteration problem #23

Open bharathichezhiyan opened 7 years ago

bharathichezhiyan commented 7 years ago

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 commented 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.

bharathichezhiyan commented 7 years ago

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 commented 7 years ago

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.