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

GH-1768: turn on tokenizer by default in Sentence object #1806

Merged
merged 1 commit into from
Aug 13, 2020

Conversation

alanakbik
Copy link
Collaborator

The Sentence object now executes tokenization by default, e.g.:

# Tokenizes by default
sentence = Sentence("I love Berlin.")
print(sentence)

# i.e. this is equivalent to
sentence = Sentence("I love Berlin.", use_tokenizer=False)
print(sentence)

# i.e. if you don't want to use tokenization, set it to False
sentence = Sentence("I love Berlin.", use_tokenizer=False)
print(sentence)

Closes #1768

@alanakbik alanakbik merged commit 040d386 into master Aug 13, 2020
@alanakbik alanakbik deleted the GH-1768-tokenizer-default branch August 13, 2020 13:58
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.

Inconsistent tokenizer use cause bad predictions ...
1 participant