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: Set default tokenizer language to actual language parameter. #71

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

Conversation

Peaverin
Copy link

@Peaverin Peaverin commented Nov 9, 2022

Currently, the default tokenizer (nltk.tokenize.sent_tokenize) is not using the language set in the constructor, but the default language as set in nltk.tokenize.sent_tokenize method, which is english (see https://www.nltk.org/api/nltk.tokenize.html#nltk.tokenize.sent_tokenize).
This is a simple fix that sets the default tokenizer as the nlkt tokenize function but changing the default language parameter to the one set by the user in Rake constructor.

Note that the word tokenizer does not need the change as nltk.tokenize.wordpunct_tokenize is language agnostic.

@Peaverin Peaverin changed the title fix: Set default tokenizers language to actual language parameter. fix: Set default tokenizer language to actual language parameter. Nov 9, 2022
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

1 participant