public abstract class SetFeature extends Feature
includeArgs, indexcounter, indices, name, POSPrefix, predMaxIndex| Modifier | Constructor and Description |
|---|---|
protected |
SetFeature(FeatureName name,
boolean includeArgs,
boolean usedForPredicateIdentification,
String POSPrefix) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFeatures(Collection<Integer> indices,
Predicate pred,
Word arg,
Integer offset,
boolean allWords) |
void |
addFeatures(Sentence s,
Collection<Integer> indices,
int predIndex,
int argIndex,
Integer offset,
boolean allWords) |
abstract String[] |
getFeatureStrings(Predicate pred,
Word arg) |
abstract String[] |
getFeatureStrings(Sentence s,
int predIndex,
int argIndex) |
protected void |
performFeatureExtraction(Sentence s,
boolean allWords) |
addMap, addPOSPrefix, doExtractFeatures, extractFeatures, getMap, getName, indexOf, setDoneWithPredFeatureExtraction, size, toStringprotected SetFeature(FeatureName name, boolean includeArgs, boolean usedForPredicateIdentification, String POSPrefix)
public abstract String[] getFeatureStrings(Sentence s, int predIndex, int argIndex)
protected void performFeatureExtraction(Sentence s, boolean allWords)
performFeatureExtraction in class Featurepublic void addFeatures(Sentence s, Collection<Integer> indices, int predIndex, int argIndex, Integer offset, boolean allWords)
addFeatures in class Featurepublic void addFeatures(Collection<Integer> indices, Predicate pred, Word arg, Integer offset, boolean allWords)
addFeatures in class FeatureCopyright © 2016. All rights reserved.