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 usage of empty spaCy model #5762

Merged
merged 7 commits into from
May 4, 2020
Merged

Conversation

tabergma
Copy link
Contributor

@tabergma tabergma commented Apr 30, 2020

Proposed changes:
Skip featurizer via SpacyFeaturizer if an empty SpaCy model is used.

closes #5638

Status (please check what you already did):

  • added some tests for the functionality
  • updated the documentation
  • updated the changelog (please check changelog for instructions)
  • reformat files using black (please check Readme for instructions)

@tabergma tabergma requested a review from koaning April 30, 2020 12:33
@koaning
Copy link
Contributor

koaning commented Apr 30, 2020

The code looks good!

Only thing I wonder about: would it not be better to also throw a warning for the user?

@tabergma tabergma merged commit 5dc96b2 into 1.10.x May 4, 2020
@tabergma tabergma deleted the fix-usage-empty-spacy-model branch May 4, 2020 14:40
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.

2 participants