반응형
from gensim.models import Word2Vec
corpus = [sent.strip().split(" ") for sent in train_txt]
model = Word2Vec(corpus, size = 40, workers = 4, sg=1)
from gensim.models import Word2Vec
corpus = [sent.strip().split(" ") for sent in train_txt]
model = Word2Vec(corpus, vector_size = 40, workers = 4, sg=1)
해결
size -> vector_size
반응형
'-------------코딩------------- > python 에러 모음' 카테고리의 다른 글
opencv imread error (경로 한글, 영어 섞여있음) (0) | 2022.04.14 |
---|---|
opencv error - (2) | 2022.04.08 |
OpenCV error (0) | 2022.04.08 |
TypeError: expected string or bytes-like object (0) | 2020.10.19 |
pd.concat() ValueError: Shape of passed values is (0) | 2020.08.04 |
댓글