'file' object has no attribute 'rfind' [closed]

五迷三道 提交于 2019-12-01 19:55:56

Word2Vec.save accepts a filename, not a file object.

model = Word2Vec(sentences, size=vector_size, window=5, min_count=5, workers=4)
model.save('foo.txt')
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!