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

Add jr, sr, and ph.d to punkt abbreviations #1053

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alexcannan
Copy link

I've noticed some cases of the large-v3-turbo model outputting text like Richard Jr.'s favorite toy. In my testing this has caused a mismatch between the sentence spans (punkt considers Jr. to be the end of a sentence) and the aligned words (Jr.' is a separate word after alignment). This means searching for the aligned word in the sentence text will fail due to the missing '. This PR simply configures a few extra abbreviations in the punkt parameters, namely Jr., Sr., and Ph.D., which should avoid these unexpected sentence splits.

Open to suggestions on other abbreviations to add.

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