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

solve UnicodeEncodeError while using Chinese wiki dump to build dictionary with min-entity-count 0 #72

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

averypai
Copy link

I got UnicodeEncodeError while running the command in Linux.

wikipedia2vec build-dump-db zhwiki-latest-pages-articles.xml.bz2 dump.db
wikipedia2vec build-dictionary dump.db dict.db --min-entity-count 0

截圖 2022-03-28 上午9 39 09

At the end, I solved the error by changing the encoding to allow model apply on chinese wiki dump.

@ikuyamada ikuyamada force-pushed the master branch 2 times, most recently from 4efe44f to b459f6c Compare January 10, 2024 10:57
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

Successfully merging this pull request may close these issues.

None yet

2 participants