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

Fix spaces in BPE decoding, Python 3.8 compatibility #373

Merged
merged 2 commits into from Oct 21, 2023

Conversation

pierotofy
Copy link
Contributor

I've made a mistake in the BPE decoding. ["Tok@@", "en"] should be decoded "Token", not "Tok en".

I've found this while converting/testing some BPE models from OPUS.

@pierotofy pierotofy changed the title Fix spaces in BPE decoding Fix spaces in BPE decoding, Python 3.8 compatibility Oct 19, 2023
@pierotofy
Copy link
Contributor Author

I've also mistakenly broke Python 3.8 compatibility (ugh! so sorry about that). I'm still amazed that Python devs are OK with language breaking features between minor versions (list[str] is only allowed in Python >= 3.9).

@argosopentech argosopentech merged commit 23a14d8 into argosopentech:master Oct 21, 2023
1 check passed
@argosopentech
Copy link
Owner

I've also mistakenly broke Python 3.8 compatibility (ugh! so sorry about that). I'm still amazed that Python devs are OK with language breaking features between minor versions (list[str] is only allowed in Python >= 3.9).

Good catch thanks. I guess type annotations are a new feature so it's not consistently available in Python 3.

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