public class PerceptronModel extends BaseModel implements Serializable
Constructor and Description |
---|
PerceptronModel(PerceptronModel other) |
PerceptronModel(ShiftReduceOptions op,
Index<Transition> transitionIndex,
Set<String> knownStates,
Set<String> rootStates,
Set<String> rootOnlyStates) |
Modifier and Type | Method and Description |
---|---|
void |
averageModels(Collection<PerceptronModel> models) |
void |
averageScoredModels(Collection<ScoredObject<PerceptronModel>> scoredModels) |
Collection<ScoredObject<Integer>> |
findHighestScoringTransitions(State state,
boolean requireLegal,
int numTransitions,
List<ParserConstraint> constraints) |
void |
outputStats()
Output some random facts about the model
|
findEmergencyTransition
public PerceptronModel(ShiftReduceOptions op, Index<Transition> transitionIndex, Set<String> knownStates, Set<String> rootStates, Set<String> rootOnlyStates)
public PerceptronModel(PerceptronModel other)
public void averageScoredModels(Collection<ScoredObject<PerceptronModel>> scoredModels)
public void averageModels(Collection<PerceptronModel> models)
public void outputStats()
public Collection<ScoredObject<Integer>> findHighestScoringTransitions(State state, boolean requireLegal, int numTransitions, List<ParserConstraint> constraints)
findHighestScoringTransitions
in class BaseModel