Skip to content

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

@Shanmathi2002

Description

@Shanmathi2002

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions