public class PathFeature extends SingleFeature
includeArgs, indexcounter, indices, name, POSPrefix, predMaxIndex| Modifier | Constructor and Description |
|---|---|
protected |
PathFeature(FeatureName name,
Word.WordData attr,
String POSPrefix) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFeatureString(Predicate pred,
Word arg) |
String |
getFeatureString(Sentence s,
int predIndex,
int argIndex) |
String |
makeFeatureString(Word pred,
Word arg) |
protected void |
performFeatureExtraction(Sentence s,
boolean allWords)
This method works with features that have includeArgs==false.
|
addFeatures, addFeaturesaddMap, addPOSPrefix, doExtractFeatures, extractFeatures, getMap, getName, indexOf, setDoneWithPredFeatureExtraction, size, toStringprotected PathFeature(FeatureName name, Word.WordData attr, String POSPrefix)
protected void performFeatureExtraction(Sentence s, boolean allWords)
SingleFeatureperformFeatureExtraction in class SingleFeaturepublic String getFeatureString(Sentence s, int predIndex, int argIndex)
getFeatureString in class SingleFeaturepublic String getFeatureString(Predicate pred, Word arg)
getFeatureString in class SingleFeatureCopyright © 2016. All rights reserved.