All Methods Static Methods Instance Methods Abstract Methods Concrete Methods
Modifier and Type |
Method and Description |
protected boolean |
addOneBinaryRule(BinaryRule rule,
Map<String,TransducerGraph> graphs) |
protected boolean |
addOneUnaryRule(UnaryRule rule,
Map<String,TransducerGraph> graphs) |
Triple<Index<String>,UnaryGrammar,BinaryGrammar> |
compactGrammar(Pair<UnaryGrammar,BinaryGrammar> grammar,
Index<String> originalStateIndex) |
Triple<Index<String>,UnaryGrammar,BinaryGrammar> |
compactGrammar(Pair<UnaryGrammar,BinaryGrammar> grammar,
Map<String,List<List<String>>> allTrainPaths,
Map<String,List<List<String>>> allTestPaths,
Index<String> originalStateIndex)
Compacts the grammar specified by the Pair.
|
protected static Distribution<String> |
computeInputPrior(Map<String,List<List<String>>> allTrainPaths) |
protected Map<String,TransducerGraph> |
convertGrammarToGraphs(Pair<UnaryGrammar,BinaryGrammar> grammar,
Set<UnaryRule> unaryRules,
Set<BinaryRule> binaryRules) |
protected Pair<UnaryGrammar,BinaryGrammar> |
convertGraphsToGrammar(Set<TransducerGraph> graphs,
Set<UnaryRule> unaryRules,
Set<BinaryRule> binaryRules) |
protected abstract TransducerGraph |
doCompaction(TransducerGraph graph,
List<List<String>> trainPaths,
List<List<String>> testPaths) |
protected static TransducerGraph |
getGraphFromMap(Map<String,TransducerGraph> m,
String o) |
protected static String |
getTopCategoryOfSyntheticState(String s) |
protected static boolean |
isSyntheticState(String state) |
static boolean |
writeFile(TransducerGraph graph,
String dir,
String name) |