use of edu.stanford.nlp.fsm.TransducerGraph in project CoreNLP by stanfordnlp.
the class GrammarCompactor method getGraphFromMap.
protected static TransducerGraph getGraphFromMap(Map<String, TransducerGraph> m, String o) {
TransducerGraph graph = m.get(o);
if (graph == null) {
graph = new TransducerGraph();
graph.setEndNode(o);
m.put(o, graph);
}
return graph;
}
Aggregations