Skip to content

Fix SentencePiece loading from Unicode paths - #92

Open
ibatuloff wants to merge 1 commit into
salute-developers:mainfrom
ibatuloff:fix/unicode-sentencepiece-path
Open

ibatuloff wants to merge 1 commit into
salute-developers:mainfrom
ibatuloff:fix/unicode-sentencepiece-path

Conversation

@ibatuloff

Copy link
Copy Markdown

SentencePiece’s path-based loader fails to open tokenizer files when the Windows path contains Cyrillic characters. Read the model bytes with Python’s Path.read_bytes() and load them with SentencePiece’s serialized-proto API instead.

No new dependencies.

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.

1 participant