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

Solve breaking issue with CharTokenizer #3156

Merged
merged 1 commit into from
May 17, 2023

Conversation

tomaarsen
Copy link
Member

Closes #3155

Hello!

Pull Request overview

  • Add _string = None to prevent TypeError due to abstract class.
  • Add tests to ensure that it can be initialized.

Details

The _string = None will prevent the TypeError. Other than that, the value isn't used.

  • Tom Aarsen

@tomaarsen tomaarsen added the bug label May 17, 2023
@tomaarsen tomaarsen merged commit 13bf2bd into nltk:develop May 17, 2023
20 checks passed
@tomaarsen tomaarsen deleted the hotfix/char_tokenizer branch May 17, 2023 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Class 'CharTokenizer' is missing attribute '_string'
1 participant