Class TrainingExample
- java.lang.Object
-
- edu.stanford.nlp.parser.shiftreduce.TrainingExample
-
public class TrainingExample extends Object
-
-
Constructor Summary
Constructors Constructor Description TrainingExample(Tree binarizedTree, List<Transition> transitions, int numSkips)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StateinitialStateFromGoldTagTree()List<Transition>trainTransitions()Returns a list of transitions after already skipping the first numSkip transitions.
-
-
-
Constructor Detail
-
TrainingExample
public TrainingExample(Tree binarizedTree, List<Transition> transitions, int numSkips)
-
-
Method Detail
-
trainTransitions
public List<Transition> trainTransitions()
Returns a list of transitions after already skipping the first numSkip transitions.
To get the corresponding State, call initialState...
-
initialStateFromGoldTagTree
public State initialStateFromGoldTagTree()
-
-