Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: train() got an unexpected keyword argument 'corpus_file' #13

Open
mahmoudSalim opened this issue Oct 8, 2018 · 0 comments
Open

Comments

@mahmoudSalim
Copy link

TypeErrorTraceback (most recent call last)
in ()
----> 1 vsk = Word2VecKeras(gensim.models.word2vec.LineSentence('test.txt'),iter=100)

/usr/local/lib/python2.7/dist-packages/gensim/models/word2vec.pyc in init(self, sentences, corpus_file, size, alpha, window, min_count, max_vocab_size, sample, seed, workers, min_alpha, sg, hs, negative, ns_exponent, cbow_mean, hashfxn, iter, null_word, trim_rule, sorted_vocab, batch_words, compute_loss, callbacks, max_final_vocab)
765 callbacks=callbacks, batch_words=batch_words, trim_rule=trim_rule, sg=sg, alpha=alpha, window=window,
766 seed=seed, hs=hs, negative=negative, cbow_mean=cbow_mean, min_alpha=min_alpha, compute_loss=compute_loss,
--> 767 fast_version=FAST_VERSION)
768
769 def _do_train_epoch(self, corpus_file, thread_id, offset, cython_vocab, thread_private_mem, cur_epoch,

/usr/local/lib/python2.7/dist-packages/gensim/models/base_any2vec.pyc in init(self, sentences, corpus_file, workers, vector_size, epochs, callbacks, batch_words, trim_rule, sg, alpha, window, seed, hs, negative, ns_exponent, cbow_mean, min_alpha, compute_loss, fast_version, **kwargs)
761 sentences=sentences, corpus_file=corpus_file, total_examples=self.corpus_count,
762 total_words=self.corpus_total_words, epochs=self.epochs, start_alpha=self.alpha,
--> 763 end_alpha=self.min_alpha, compute_loss=compute_loss)
764 else:
765 if trim_rule is not None:

TypeError: train() got an unexpected keyword argument 'corpus_file'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant