public class LinearGrammarSmoother extends java.lang.Object implements java.util.function.Function<Pair<UnaryGrammar,BinaryGrammar>,Pair<UnaryGrammar,BinaryGrammar>>
Constructor and Description |
---|
LinearGrammarSmoother(TrainOptions trainOptions,
Index<java.lang.String> stateIndex,
Index<java.lang.String> tagIndex) |
Modifier and Type | Method and Description |
---|---|
Pair<UnaryGrammar,BinaryGrammar> |
apply(Pair<UnaryGrammar,BinaryGrammar> bgug)
Destructively modifies the input and returns it as a convenience.
|
java.lang.String |
basicCategory(java.lang.String category) |
public LinearGrammarSmoother(TrainOptions trainOptions, Index<java.lang.String> stateIndex, Index<java.lang.String> tagIndex)
public Pair<UnaryGrammar,BinaryGrammar> apply(Pair<UnaryGrammar,BinaryGrammar> bgug)
apply
in interface java.util.function.Function<Pair<UnaryGrammar,BinaryGrammar>,Pair<UnaryGrammar,BinaryGrammar>>
public java.lang.String basicCategory(java.lang.String category)