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

Make token.lemma property return hash instead of unicode #2040

Merged
merged 1 commit into from
Feb 28, 2018

Conversation

thomasopsomer
Copy link
Contributor

Description

token.lemma wasn't always returning an integer ! When the lemma wasn't set on the c attribute, the lemma property calls the lemmatizer lookup table but it returned the unicode instead of the hash.

Small fix, but quite annoying bug ^^.

Types of change

bug fix

Checklist

  • I have submitted the spaCy Contributor Agreement.
  • I ran the tests, and all new and existing tests passed.
  • My changes don't require a change to the documentation, or if they do, I've added all required information.

@honnibal honnibal merged commit 31dcb4a into explosion:master Feb 28, 2018
@honnibal
Copy link
Member

Thanks!

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