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: enable py 3.12 in ci and fix error in bleu calculation #3207

Merged
merged 8 commits into from
Dec 17, 2023

Conversation

k4black
Copy link
Contributor

@k4black k4black commented Nov 17, 2023

The problem

Fraction(..., _normalize=False) was removed in python 3.12 so it causes error in NLTK functions trying to call it this way.

Changes

  • Enable CI testing for python 3.12

  • Indicate 3.12 in docs and metadata

  • Fix BLEU calculation
    I have add Child class for Fraction to support _normalize=False. Please let me know is better to have functions return (numerator, denominator) instead of complex class.

@github-actions github-actions bot added the CI label Nov 17, 2023
@k4black k4black changed the title fix: enable py 3.12 in ci and fix bleu calculation fix: enable py 3.12 in ci and fix error in bleu calculation Nov 17, 2023
@k4black
Copy link
Contributor Author

k4black commented Dec 15, 2023

@stevenbird @tomaarsen
Could you please check this PR?
As nltk does not forbid it to be installed on 3.12 (officially released a while ago) current version breaks the pipelines and force to use 3.11 version.

@stevenbird stevenbird merged commit 28eeb3e into nltk:develop Dec 17, 2023
23 checks passed
@stevenbird
Copy link
Member

Thanks @k4black !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants