public abstract class Feature extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
includeArgs |
protected int |
indexcounter |
protected Map<String,Integer> |
indices |
protected FeatureName |
name |
protected String |
POSPrefix |
protected int |
predMaxIndex |
| Modifier | Constructor and Description |
|---|---|
protected |
Feature(FeatureName name,
boolean includeArgs,
boolean usedForPredicateIdentification,
String POSPrefix) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addFeatures(Collection<Integer> indices,
Predicate pred,
Word arg,
Integer offset,
boolean allWords) |
abstract void |
addFeatures(Sentence s,
Collection<Integer> indices,
int predIndex,
int argIndex,
Integer offset,
boolean allWords) |
protected void |
addMap(String val) |
void |
addPOSPrefix(String prefix) |
protected boolean |
doExtractFeatures(Word pred) |
void |
extractFeatures(Sentence s,
boolean allWords) |
Map<String,Integer> |
getMap() |
String |
getName() |
Integer |
indexOf(String s) |
protected abstract void |
performFeatureExtraction(Sentence s,
boolean allWords) |
void |
setDoneWithPredFeatureExtraction() |
int |
size(boolean includeAllWords) |
String |
toString() |
protected int indexcounter
protected int predMaxIndex
protected FeatureName name
protected final boolean includeArgs
protected String POSPrefix
protected Feature(FeatureName name, boolean includeArgs, boolean usedForPredicateIdentification, String POSPrefix)
protected abstract void performFeatureExtraction(Sentence s, boolean allWords)
public abstract void addFeatures(Sentence s, Collection<Integer> indices, int predIndex, int argIndex, Integer offset, boolean allWords)
public abstract void addFeatures(Collection<Integer> indices, Predicate pred, Word arg, Integer offset, boolean allWords)
protected void addMap(String val)
public int size(boolean includeAllWords)
public String getName()
public void addPOSPrefix(String prefix)
protected boolean doExtractFeatures(Word pred)
public void extractFeatures(Sentence s, boolean allWords)
public void setDoneWithPredFeatureExtraction()
Copyright © 2016. All rights reserved.