Unexpected result with attribute_ruler #12335
-
My goal is to add some constraints to the tagger so I have a mix of rule-based and model tagging. For example, suppose I want the word "foo" to always have a POS/TAG of DET/DT. I added an attribute ruler before the tagger to set POS/TAG for the word "foo". The TAG is set correctly to DT but the POS is set to PRON. Below is example code and results. Any suggestions for getting this to work correctly?
I'm on Mac with Python 3.7 and Spacy 3.3.2. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think you're running into an existing attribute ruler rule:
There are some determiner/pronoun distinctions that are different in OntoNotes vs. UD and this is trying to improve the tag->pos mapping in these cases based on the parse. You might need to look at all the attribute ruler rules as a whole and figure out which ones make sense for your task? |
Beta Was this translation helpful? Give feedback.
I think you're running into an existing attribute ruler rule:
There are some determiner/pronoun distinctions that are different in OntoNotes vs. UD and this is trying to improve the tag->pos mapping in these cases based on the parse.
You might need to look at all the attribute ruler rules as a whole and figure out which ones make sense …