Word2VEC -Fehler: '_token' Objekt ist nicht iterierbarPython

Python-Programme
Anonymous
 Word2VEC -Fehler: '_token' Objekt ist nicht iterierbar

Post by Anonymous »

Ich versuche, Satzlisten nacheinander in Gensim.models.word2Vec zu füttern, erzeugt jedoch das TypeError: '_token' Objekt ist nicht iterbar. Was soll ich tun? < /P>

Code: Select all

    embedding_model= Word2Vec()
for index, sentence_list in df.iterrows():
embedding_model = Word2Vec(sentence_list, size=100, window=5, min_count=2, workers=2)
embedding_model.train(tokenized_contents, total_examples=len(tsentence_list), epochs=10)

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post