Nasty.Statistics.Parsing.Grammar.Rule (Nasty v0.3.0)
View SourceRepresents a single grammar rule with probability.
Fields
lhs- Left-hand side non-terminal (atom)rhs- Right-hand side (list of terminals/non-terminals)probability- Rule probability (float, 0.0-1.0)language- Language code (atom, e.g.,:en)
Summary
Functions
Creates a new grammar rule.