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

Modified sentence_tokenize to handle tokeniztion of sentence which ends with numerics. #72

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

Conversation

varunkatiyar819
Copy link

Previously the sentence was not able to tokenize the sentence, if the sentence ends with numeric character which i guess was a logic issue for checking and not splitting for decimal number.
I have changed logic a bit, specifically for not tokenizing in that condition.
So for the sentence - "India was declared a nation with its own constitution on 26 January 1950, while India gained independence on 14 August 1947. About 3 years went through the formation of the nation and the complete departure of the British." it's working fine also tested a few edge cases too.

@varunkatiyar819 varunkatiyar819 marked this pull request as draft June 7, 2024 17:28
@varunkatiyar819 varunkatiyar819 marked this pull request as ready for review June 7, 2024 17:28
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