getTokenAnnotatedType(self,
token,
sentenceGraph)
| source code
|
Multiple entities may have the same head token. This returns a list of
the types of all entities whose head token this token is. If the
FeatureBuilder.maximum flag is set, the list is truncated to a length of
two, otherwise to a length of one. This is done because when token
features (to which the annotated type belongs to) are combined into other
features, a large number of annotated type features can lead to an
exponential increase in the number of features.
- Overrides:
FeatureBuilder.FeatureBuilder.getTokenAnnotatedType
- (inherited documentation)
|