Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Open
averypai wants to merge 4 commits intowikipedia2vec:masterwikipedia2vec/wikipedia2vec:masterfrom
averypai:masteraverypai/wikipedia2vec:masterCopy head branch name to clipboard
Open

solve UnicodeEncodeError while using Chinese wiki dump to build dictionary with min-entity-count 0#72
averypai wants to merge 4 commits intowikipedia2vec:masterwikipedia2vec/wikipedia2vec:masterfrom
averypai:masteraverypai/wikipedia2vec:masterCopy head branch name to clipboard

Conversation

@averypai
Copy link
Copy Markdown

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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.