/// <summary> /// Returns a new grammar that is the CNF equivalent of this grammar. /// WARNING: currently this does not always preserve probabilities! /// </summary> public CNFGrammar ToCNF() { var conv = new CFGtoCNF(this); return(conv.Convert()); }
/// <summary> /// Returns a new grammar that is the CNF equivalent of this grammar. /// WARNING: currently this does not always preserve probabilities! /// </summary> public CNFGrammar ToCNF() { var conv = new CFGtoCNF(this); return conv.Convert(); }