머신러닝,딥러닝

gensim Word2Vec: unexpected keyword argument 'vector_size' error

mcdn 2022. 12. 1. 15:59
반응형


--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-57-f03f512fdf11> in <module> ----> 1 model = Word2Vec(sentences=common_texts, vector_size=100, window=5, min_count=1, workers=4) 2 model.save("word2vec.model") TypeError: __init__() got an unexpected keyword argument 'vector_size'

해결

vector_size -> size라는 파라미터로 바꾼다.

model = Word2Vec(sentences=common_texts, size=100, window=5, min_count=1, workers=4)
 
반응형