Skip to content

IndexError: list index out of range #2

@amazurkiewicz-mobilereality

Description

I get this error, after about 1 minute of running the program:

Adding words to the trie ...
Traceback (most recent call last):
  File "txt2trieDictConvert.py", line 166, in <module>
    main()
  File "txt2trieDictConvert.py", line 138, in main
    trie.addWord(line.strip('\n'))
  File "txt2trieDictConvert.py", line 101, in addWord
    item.mergeWith(branch.children[0])
IndexError: list index out of range

The dictionary file I use the script on is quite big, it has about 4M lines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions