RuntimeError:you must first build vocabulary before training the model
Message:
Walk iteration:
1 / 10
2 / 10
3 / 10
4 / 10
5 / 10
6 / 10
7 / 10
8 / 10
9 / 10
10 / 10
Traceback (most recent call last):
File "src/main.py", line 104, in
Google said it is a problem with Word2Vec where min_count is to large. However, here the problem still occur although min_count=0
Problem found: because walks = []
How about checking your input? I had the same error but it ended when I changed the separator of my file from , to space.
@dopha-mipa Yes that is right. I checked my input file format, and the problem occur since the default seperator setting in pandas is different from this file.
Thank you thought i solve the problem months ago. :)