//private double ProbabilityDistribution; public ProductionRule(Symbol predecessor, Word successor) { this.predecessor = predecessor; this.successor = successor; }
/** * returns the successor string for the specified symbol, null if the rule could not be applied * * */ public abstract Word Rewrite(Symbol symbol, int SymbolIndex, Word word);
public ILProductionRule(Symbol predecessor, Word successor, Word leftContext, Word rightContext) : base(predecessor, successor) { this.leftContext = leftContext; this.rightContext = rightContext; }