public class BasicFeatureFactory extends FeatureFactory
Constructor and Description |
---|
BasicFeatureFactory() |
Modifier and Type | Method and Description |
---|---|
static void |
addBinaryFeature(List<String> features,
String featureType,
CoreLabel label1,
edu.stanford.nlp.parser.shiftreduce.FeatureFactory.FeatureComponent feature1,
CoreLabel label2,
edu.stanford.nlp.parser.shiftreduce.FeatureFactory.FeatureComponent feature2) |
static void |
addBinaryFeatures(List<String> features,
String name1,
CoreLabel label1,
edu.stanford.nlp.parser.shiftreduce.FeatureFactory.FeatureComponent feature11,
edu.stanford.nlp.parser.shiftreduce.FeatureFactory.FeatureComponent feature12,
String name2,
CoreLabel label2,
edu.stanford.nlp.parser.shiftreduce.FeatureFactory.FeatureComponent feature21,
edu.stanford.nlp.parser.shiftreduce.FeatureFactory.FeatureComponent feature22) |
void |
addEdgeFeatures(List<String> features,
State state,
String nodeName,
String neighborName,
Tree node,
Tree neighbor)
Could potentially add the tags and words for the left and right
ends of the tree.
|
void |
addEdgeFeatures2(List<String> features,
State state,
String nodeName,
Tree node)
This option also does not seem to help
|
void |
addExtraTrigramFeatures(List<String> features,
CoreLabel s0Label,
CoreLabel s1Label,
CoreLabel s2Label,
CoreLabel q0Label,
CoreLabel q1Label)
Also did not seem to help
|
static void |
addPositionFeatures(List<String> features,
State state) |
static void |
addSeparatorFeature(List<String> features,
String featureType,
CoreLabel label,
edu.stanford.nlp.parser.shiftreduce.FeatureFactory.FeatureComponent feature,
boolean between) |
static void |
addSeparatorFeature(List<String> features,
String featureType,
CoreLabel label1,
edu.stanford.nlp.parser.shiftreduce.FeatureFactory.FeatureComponent feature1,
CoreLabel label2,
edu.stanford.nlp.parser.shiftreduce.FeatureFactory.FeatureComponent feature2,
boolean between) |
static void |
addSeparatorFeature(List<String> features,
String featureType,
CoreLabel label,
edu.stanford.nlp.parser.shiftreduce.FeatureFactory.FeatureComponent feature,
State.HeadPosition separator) |
static void |
addSeparatorFeature(List<String> features,
String featureType,
State.HeadPosition separator) |
static void |
addSeparatorFeatures(List<String> features,
CoreLabel s0Label,
CoreLabel s1Label,
State.HeadPosition s0Separator,
State.HeadPosition s1Separator) |
static void |
addSeparatorFeatures(List<String> features,
String name1,
CoreLabel label1,
String name2,
CoreLabel label2,
String separatorBetween,
int countBetween) |
static void |
addTrigramFeature(List<String> features,
String featureType,
CoreLabel label1,
edu.stanford.nlp.parser.shiftreduce.FeatureFactory.FeatureComponent feature1,
CoreLabel label2,
edu.stanford.nlp.parser.shiftreduce.FeatureFactory.FeatureComponent feature2,
CoreLabel label3,
edu.stanford.nlp.parser.shiftreduce.FeatureFactory.FeatureComponent feature3) |
static void |
addUnaryFeature(List<String> features,
String featureType,
CoreLabel label,
edu.stanford.nlp.parser.shiftreduce.FeatureFactory.FeatureComponent feature) |
static void |
addUnaryQueueFeatures(List<String> features,
CoreLabel label,
String wtFeature) |
static void |
addUnaryStackFeatures(List<String> features,
CoreLabel label,
String conFeature,
String wordTagFeature,
String tagFeature,
String wordConFeature,
String tagConFeature) |
List<String> |
featurize(State state,
List<String> features) |
featurize, getCoreLabel, getFeatureFromCoreLabel, getQueueLabel, getQueueLabel, getRecentDependent, getStackLabel
public static void addUnaryStackFeatures(List<String> features, CoreLabel label, String conFeature, String wordTagFeature, String tagFeature, String wordConFeature, String tagConFeature)
public static void addUnaryQueueFeatures(List<String> features, CoreLabel label, String wtFeature)
public static void addBinaryFeatures(List<String> features, String name1, CoreLabel label1, edu.stanford.nlp.parser.shiftreduce.FeatureFactory.FeatureComponent feature11, edu.stanford.nlp.parser.shiftreduce.FeatureFactory.FeatureComponent feature12, String name2, CoreLabel label2, edu.stanford.nlp.parser.shiftreduce.FeatureFactory.FeatureComponent feature21, edu.stanford.nlp.parser.shiftreduce.FeatureFactory.FeatureComponent feature22)
public static void addUnaryFeature(List<String> features, String featureType, CoreLabel label, edu.stanford.nlp.parser.shiftreduce.FeatureFactory.FeatureComponent feature)
public static void addBinaryFeature(List<String> features, String featureType, CoreLabel label1, edu.stanford.nlp.parser.shiftreduce.FeatureFactory.FeatureComponent feature1, CoreLabel label2, edu.stanford.nlp.parser.shiftreduce.FeatureFactory.FeatureComponent feature2)
public static void addTrigramFeature(List<String> features, String featureType, CoreLabel label1, edu.stanford.nlp.parser.shiftreduce.FeatureFactory.FeatureComponent feature1, CoreLabel label2, edu.stanford.nlp.parser.shiftreduce.FeatureFactory.FeatureComponent feature2, CoreLabel label3, edu.stanford.nlp.parser.shiftreduce.FeatureFactory.FeatureComponent feature3)
public static void addSeparatorFeature(List<String> features, String featureType, State.HeadPosition separator)
public static void addSeparatorFeature(List<String> features, String featureType, CoreLabel label, edu.stanford.nlp.parser.shiftreduce.FeatureFactory.FeatureComponent feature, State.HeadPosition separator)
public static void addSeparatorFeature(List<String> features, String featureType, CoreLabel label, edu.stanford.nlp.parser.shiftreduce.FeatureFactory.FeatureComponent feature, boolean between)
public static void addSeparatorFeature(List<String> features, String featureType, CoreLabel label1, edu.stanford.nlp.parser.shiftreduce.FeatureFactory.FeatureComponent feature1, CoreLabel label2, edu.stanford.nlp.parser.shiftreduce.FeatureFactory.FeatureComponent feature2, boolean between)
public static void addSeparatorFeatures(List<String> features, String name1, CoreLabel label1, String name2, CoreLabel label2, String separatorBetween, int countBetween)
public static void addSeparatorFeatures(List<String> features, CoreLabel s0Label, CoreLabel s1Label, State.HeadPosition s0Separator, State.HeadPosition s1Separator)
public void addEdgeFeatures(List<String> features, State state, String nodeName, String neighborName, Tree node, Tree neighbor)
public void addEdgeFeatures2(List<String> features, State state, String nodeName, Tree node)
public void addExtraTrigramFeatures(List<String> features, CoreLabel s0Label, CoreLabel s1Label, CoreLabel s2Label, CoreLabel q0Label, CoreLabel q1Label)