-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Error from adding arbitrary fixup rules to pipeline #600
Comments
Hm! There's a gap in the API there — a missing attribute setter. Thanks. |
This should be fixed in master. We also noticed a page missing from the docs, which we've just put up. The missing page describes the API for the tokenizer. It's relevant here because it's another way to do what you want here. The For instance, you can do something like this:
The attribute keys are currently a bit idiosyncratic. It recognises:
Soon this will be fixed, and it'll support the same token attributes as the rest of the library. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hello! I'm a newbie to natural language processing and am trying to use spaCy for an information extraction project. So far everything has been great, except that in sentences like "One killed in Bucks County shooting", shooting gets tagged as a verb instead of a noun.
Here is my code (only slightly modified from the tutorial titled Customizing the Pipeline):
However, running
resulted in
AttributeError: attribute 'tag_' of 'spacy.tokens.token.Token' objects is not writable
python 2.7, spacy version 1.1.2
The text was updated successfully, but these errors were encountered: