public abstract class FeatureFactory
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
FeatureFactory() |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
featurize(State state) |
abstract java.util.List<java.lang.String> |
featurize(State state,
java.util.List<java.lang.String> features) |
static CoreLabel |
getCoreLabel(Tree node) |
static java.lang.String |
getFeatureFromCoreLabel(CoreLabel label,
edu.stanford.nlp.parser.shiftreduce.FeatureFactory.FeatureComponent feature) |
static CoreLabel |
getQueueLabel(java.util.List<Tree> sentence,
int tokenPosition,
int offset) |
static CoreLabel |
getQueueLabel(State state,
int offset) |
static CoreLabel |
getRecentDependent(TreeShapedStack<Tree> stack,
edu.stanford.nlp.parser.shiftreduce.FeatureFactory.Transition transition,
int nodeNum) |
static CoreLabel |
getStackLabel(TreeShapedStack<Tree> stack,
int nodeNum,
edu.stanford.nlp.parser.shiftreduce.FeatureFactory.Transition... transitions) |
public java.util.List<java.lang.String> featurize(State state)
public abstract java.util.List<java.lang.String> featurize(State state, java.util.List<java.lang.String> features)
public static java.lang.String getFeatureFromCoreLabel(CoreLabel label, edu.stanford.nlp.parser.shiftreduce.FeatureFactory.FeatureComponent feature)
public static CoreLabel getRecentDependent(TreeShapedStack<Tree> stack, edu.stanford.nlp.parser.shiftreduce.FeatureFactory.Transition transition, int nodeNum)
public static CoreLabel getStackLabel(TreeShapedStack<Tree> stack, int nodeNum, edu.stanford.nlp.parser.shiftreduce.FeatureFactory.Transition... transitions)
public static CoreLabel getQueueLabel(java.util.List<Tree> sentence, int tokenPosition, int offset)