Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix IndexError when abbrv is longer than original; Close #12 #14

Merged
merged 2 commits into from
Jul 7, 2024

Conversation

klb2
Copy link
Contributor

@klb2 klb2 commented Jul 5, 2024

In some cases, there is a mismatch between abbreviation and original, where a dot is added to an unabbreviated word, e.g., "Control". If this occurs, the dot is removed and the abbreviation is reduced to the length of the original word.

This closes #12

In some cases, there is a mismatch between abbreviation and original,
where a dot is added to an unabbreviated word, e.g., "Control".
If this occurs, the dot is removed and the abbreviation is reduced to
the length of the original word.
Fix the wrong classification of single letter part names, if the single
letter is also a stopword.
@pierre-24
Copy link
Owner

pierre-24 commented Jul 7, 2024

Fine by me, although having an actual journal with "review**.**" is a bit surprising. For example, Phys. Rev. A, that you included in your test, do not include a dot at the end of its name.

@pierre-24 pierre-24 merged commit 045bcd1 into pierre-24:dev Jul 7, 2024
5 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IndexError for certain words at the end of input
2 participants