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

token = ConllEntry(int(tok[0]), tok[1], tok[2], tok[4].......out of range #34

Open
Shanmathi2002 opened this issue Oct 1, 2023 · 0 comments

Comments

@Shanmathi2002
Copy link

Hi,
I trying to train a data, which is in conllu format, But i got the following error, I don't know what the error is implying

(base) C:\Windows\System32>uuparser --outdir E:\results_uuparser --datadir E:\model\Tamil_Data --trainfile E:\model\Tamil_Data\UD_Tamil-TTB\ta_ttb-ud-train.conllu
[uuparser] 2023-10-01T19:33:22 WARNING: No dev data for noname, consider adding option --create-dev to create dev data from training set
[uuparser] 2023-10-01T19:33:22 WARNING: Can't do model selection for noname as prediction on dev data is off
[uuparser] 2023-10-01T19:33:22 INFO: Working with a transition-based parser
[uuparser] 2023-10-01T19:33:22 INFO: Reading E:\model\Tamil_Data\UD_Tamil-TTB\ta_ttb-ud-train.conllu
Traceback (most recent call last):
  File "c:\users\dell\anaconda3\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\users\dell\anaconda3\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\dell\anaconda3\Scripts\uuparser.exe\__main__.py", line 7, in <module>
  File "c:\users\dell\anaconda3\lib\site-packages\uuparser\parser.py", line 325, in main
    run(experiment,options)
  File "c:\users\dell\anaconda3\lib\site-packages\uuparser\parser.py", line 26, in run
    vocab = utils.get_vocab(experiment.treebanks,"train")
  File "c:\users\dell\anaconda3\lib\site-packages\uuparser\utils.py", line 177, in get_vocab
    for sentence in data:
  File "c:\users\dell\anaconda3\lib\site-packages\uuparser\utils.py", line 355, in read_conll
    token = ConllEntry(int(tok[0]), tok[1], tok[2], tok[4], tok[3], tok[5], int(tok[6]) if tok[6] != '_' else -1, tok[7], tok[8], tok[9],treebank_id=treebank_id,proxy_tbank=proxy_tbank,language=language,char_rep=char_rep)
IndexError: list index out of range

A little help would be more helpful for my task.

Thanks :)

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

1 participant