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

Word2vec数据预处理的时候出现错误 #33

Open
Never-up opened this issue Feb 6, 2021 · 1 comment
Open

Word2vec数据预处理的时候出现错误 #33

Never-up opened this issue Feb 6, 2021 · 1 comment

Comments

@Never-up
Copy link

Never-up commented Feb 6, 2021

cannot pickle 'generator' object
出现错误,没有迭代器对象

@Never-up
Copy link
Author

Never-up commented Feb 6, 2021

for text in wiki.get_texts():
output.write(space.join(text) + "\n")
i = i + 1
if (i % 10000 == 0):
logger.info("Saved " + str(i) + " articles")

在遍历的时候出现错误

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