A ClassificationTask specifies a particular classification task for which we want to collect feature vectors and train a classifier.
The DTCostFunctionTrainer uses the our in-house decision tree implementation (org.
A DecisionTreeClassifier wraps the org.allenai.nlpstack.parse.poly.decisiontree implementation to provide a classifier interface that maps Transitions to probabilities.
A TrainingVector is a triple of the form (task, featureVector, transition), where
task
is the ClassificationTask associated with the feature vector (featureVector
), and
transition
is the correct classification of the feature vector.
A FeatureUnion simply merges the output of a list of features.
A StateSource that keeps all its states in memory.
A MarbleBlock is an unstructured input corresponding to a start state of a finite-state machine.
A sequence of NbestLists.
A sequence of (scored) sculptures.
Finds the best n greedy paths through a finite-state machine.
Like the GreedyTransitionParser, except that it remembers promising transitions that were not taken from the greedy (one-best) walk and returns those to the user.
Chooses the lowest cost parse from an n-best list (according to the reranking function).
A cost function for a pre-scored parse.
A ScoredWalk attaches a score to a Walk.
A Sculpture is a structured output corresponding to a final state of a finite-state machine, whose goal is to transform an unstructured input (a MarbleBlock) into a structured output.
A SculptureFeature computes a feature vector corresponding to a given sculpture.
A state of a finite-state machine.
A StateCost maps a state to a cost.
A StateCostFunction assigns a (real-valued) cost to the Transitions that can potentially be applied to a State.
A StateCostFunctionTrainer trains a StateCostFunction from data.
A StateFeature computes a feature vector corresponding to a given parser state.
The TaskConjunction is a conjunction of ClassificationTasks.
The TaskConjunctionIdentifier allows you to create a TaskIdentifier by conjoining existing TaskIdentifiers.
A TaskIdentifier identifies the ClassificationTask required to determine the next transition from a given parser state.
A TaskTree can be viewed as a tree-structured TaskConjunctionIdentifier.
This is a wrapper for TaskTree that implements the TaskIdentifier interface.
A TransitionClassifier maps Transitions to probabilities.
A TransitionConstraint returns true if a given transition is illegal to apply in a given state.
A Walk is a walk through a finite-state machine.
A WalkStep is a single step in an FSM walk.
Companion class for serializing TransitionClassifier instances.