public abstract class SingleFeature extends Feature
includeArgs, indexcounter, indices, name, POSPrefix, predMaxIndex| Modifier | Constructor and Description |
|---|---|
protected |
SingleFeature(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 |
getFeatureString(Predicate pred,
Word arg) |
abstract String |
getFeatureString(Sentence s,
int predIndex,
int argIndex) |
protected void |
performFeatureExtraction(Sentence s,
boolean allWords)
This method works with features that have includeArgs==false.
|
addMap, addPOSPrefix, doExtractFeatures, extractFeatures, getMap, getName, indexOf, setDoneWithPredFeatureExtraction, size, toStringprotected SingleFeature(FeatureName name, boolean includeArgs, boolean usedForPredicateIdentification, String POSPrefix)
public 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 Featureprotected void performFeatureExtraction(Sentence s, boolean allWords)
performFeatureExtraction in class FeatureCopyright © 2016. All rights reserved.