What should the input file to vocabulary.py look like? I have generated a file with a list of words in a file named "word_counts.txt" and I'm passing this to vocabulary object.
The line
vocab = vocabulary.Vocabulary(word_counts.txt) is giving me an error I'm not able to figure out:
assert start_word in reverse_vocab
AssertionError
What should the input file to vocabulary.py look like? I have generated a file with a list of words in a file named "word_counts.txt" and I'm passing this to vocabulary object.
The line vocab = vocabulary.Vocabulary(word_counts.txt) is giving me an error I'm not able to figure out: assert start_word in reverse_vocab AssertionError
word_counts.txt Here's the slightly modified code
Someone help me out.