inflection
inflection copied to clipboard
IndexError when running the inflection script
Hi !
I ran into a problem when running the script on UniMorph data of a particular language. It is running on the sample data given in the folder, but when I try to do it on some other data it is giving the following error :
$ python inflection.py --datapath sample-data/ --L1 bengali --L2 hindi --mode train --setting original
And the output produced is :
[dynet] allocating memory: 512MB
[dynet] memory allocation done.
Traceback (most recent call last):
File "/inflection/inflection.py", line 229, in <module>
low_i, low_o, low_t = myutil.read_data(LOW_PATH)
File "/inflection/myutil.py", line 34, in read_data
outputs.append(list(l[1]))
IndexError: list index out of range
If it helps, I used hindi data from the unimorph repo, and splitted in the ratio 80:10:10 for train, test and dev.