marf.nlp.Parsing.GrammarCompiler
Class ProbabilisticRule
java.lang.Object
marf.nlp.Parsing.GrammarCompiler.Rule
marf.nlp.Parsing.GrammarCompiler.ProbabilisticRule
- All Implemented Interfaces:
- java.io.Serializable
public class ProbabilisticRule
- extends Rule
Probabilistic Rule.
$Id: ProbabilisticRule.java,v 1.7 2005/06/16 19:58:57 mokhov Exp $
- Since:
- 0.3.0
- Version:
- $Revision: 1.7 $
- Author:
- Serguei Mokhov
- See Also:
- Serialized Form
Field Summary |
protected double |
dProbability
Probability of the rule. |
Fields inherited from class marf.nlp.Parsing.GrammarCompiler.Rule |
ID, LHS, RHS |
Methods inherited from class marf.nlp.Parsing.GrammarCompiler.Rule |
addRHSElement, getID, getLHS, getRHS, getRHSFirstSet, setID, setLHS, setRHS, toAbbrString, toString, toStringNumeric |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
dProbability
protected double dProbability
- Probability of the rule.
ProbabilisticRule
public ProbabilisticRule(NonTerminal pLHS)
setProbability
public final void setProbability(double pdProbability)
- Sets probability of the rule.
getProbability
public final double getProbability()
- Retrieves probability of the rule.
getMARFSourceCodeRevision
public static java.lang.String getMARFSourceCodeRevision()
- Retrieves class' revision.
- Returns:
- revision string