You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It show NameError: name 'model_input' is not defined.
1. Lines of Code
class WordSplitter(object):
def __init__(self, filename):
self.filename = filename
def __iter__(self):
with open(self.filename) as fin:
for line in fin:
yield line.split()
model = gensim.models.Word2Vec(model_input, min_count=4)
2. NameError Message
NameError Traceback (most recent call last)
in
8 yield line.split()
9
---> 10 model = gensim.models.Word2Vec(model_input, min_count=4)
NameError: name 'model_input' is not defined
The text was updated successfully, but these errors were encountered:
It show NameError: name 'model_input' is not defined.
1. Lines of Code
2. NameError Message
NameError Traceback (most recent call last)
in
8 yield line.split()
9
---> 10 model = gensim.models.Word2Vec(model_input, min_count=4)
NameError: name 'model_input' is not defined
The text was updated successfully, but these errors were encountered: