This feature builder generates features describing a pair of word
tokens connected by one or more dependencies. Most of the features it
produces are built on the shortest undirected path of dependencies
between the two tokens.
|
|
|
|
|
definePredictedValueRange(self,
sentences,
elementName) |
source code
|
|
|
setFeatureVector(self,
features=None,
entity1=None,
entity2=None,
resetCache=True)
When the feature builder builds features, they are put to this
feature vector. |
source code
|
|
|
|
|
|
|
buildPathLengthFeatures(self,
pathTokens)
Simple numeric features about the length of the path |
source code
|
|
|
|
|
buildTerminusTokenFeatures(self,
pathTokens,
sentenceGraph)
Token features for the first and last tokens of the path |
source code
|
|
|
buildWalkPaths(self,
pathTokens,
walks,
sentenceGraph) |
source code
|
|
|
buildPathGrams(self,
length,
pathTokens,
sentenceGraph)
Goes through all the possible walks and builds features for
subsections of "length" edges. |
source code
|
|
|
addType(self,
token,
sentenceGraph,
prefix=' annType_ ' ) |
source code
|
|
|
buildPathEdgeFeatures(self,
pathTokens,
sentenceGraph) |
source code
|
|
|
buildSingleElementFeatures(self,
pathTokens,
sentenceGraph) |
source code
|
|
|
buildTerminusFeatures(self,
token,
ignoreEdges,
prefix,
sentenceGraph) |
source code
|
|
Inherited from FeatureBuilder.FeatureBuilder :
getEntityType ,
getPOSSuperType ,
getTokenAnnotatedType ,
getTokenFeatures ,
normalizeFeatureVector ,
setFeature ,
setTag
|