Custom pos for dependency parsing #9510
-
I'm wondering if it's possible to use custom pos tags during spaCy's dependency parsing. I have a number of custom pos tags that I want spaCy to use instead of its own in order to derive the dependency parse. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The dependency parser does not use POS tags. There are three attributes relevant to this discussion:
You can customize the dependency relation values or the Also, maybe you really do want custom POS tags, but usually it's much easier to use entity labels. If you haven't considered that maybe take a look at it. |
Beta Was this translation helpful? Give feedback.
The dependency parser does not use POS tags. There are three attributes relevant to this discussion:
.dep
attribute. These are values likenmod
,amod
,cconj
, and come from Universal Dependencies in the pretrained models, but any value can be used..pos
attribute. These come from Universal Dependencies, and spaCy enforces that (you can't make up new ones)..tag
attribute. These can be anything.You can customize the dependency relation values or the
.tag
attribute values. However the parser does not use POS tags.Also, maybe you really do want custom POS tags, but usually it's much easier to use entit…