Automated Extraction of POS, TAG, and Dependency tags? #11623
-
In order to accommodate the switching of models and changing tag sets I would like to be able to extract three sets of tags from the model
I realize that 2 and 3 are available from the model homepage (although 1 is not) but I would like to adapt automatically to changing models and not have to manually enter them from the homepage. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can generally get the labels of a component like this, using the tagger as an example:
This should work for the tagger and parser, for example. The coarse grained tags are Universal Depencies tags, plus SPACE, and do not change based on pipeline. If you have a component that doesn't have a list of labels, like a Morphologizer or an AttributeRuler, then you can iterate over a bunch of data to pretty reliably get the list of labels. Depending on the specific component there may also be other ways to recover the labels. Can you clarify how you're using the labels? |
Beta Was this translation helpful? Give feedback.
You can generally get the labels of a component like this, using the tagger as an example:
This should work for the tagger and parser, for example.
The coarse grained tags are Universal Depencies tags, plus SPACE, and do not change based on pipeline.
If you have a component that doesn't have a list of labels, like a Morphologizer or an AttributeRuler, then you can iterate over a bunch of data to pretty reliably get the list of labels. Depending on the specific component there may also be other ways to recover the labels.
Can you clarify how you're using the labels?