|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmarf.nlp.Parsing.GrammarCompiler.Rule
marf.nlp.Parsing.GrammarCompiler.ProbabilisticRule
public class ProbabilisticRule
Probabilistic Rule encapsulates a rule of a probabilistic grammar, which is amended with probabilities.
$Id: ProbabilisticRule.java,v 1.10 2005/12/22 00:41:14 mokhov Exp $
| Field Summary | |
|---|---|
protected double |
dProbability
Probability of the rule. |
private static long |
serialVersionUID
For serialization versioning. |
| Fields inherited from class marf.nlp.Parsing.GrammarCompiler.Rule |
|---|
iID, oLHS, oRHS |
| Constructor Summary | |
|---|---|
ProbabilisticRule(NonTerminal poLHS)
Constructor with the LHS non-terminal set. |
|
| Method Summary | |
|---|---|
static java.lang.String |
getMARFSourceCodeRevision()
Retrieves class' revision. |
double |
getProbability()
Retrieves probability of the rule. |
void |
setProbability(double pdProbability)
Sets probability of the rule. |
| 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 |
| Field Detail |
|---|
protected double dProbability
private static final long serialVersionUID
serialver tool that comes with JDK.
| Constructor Detail |
|---|
public ProbabilisticRule(NonTerminal poLHS)
poLHS - | Method Detail |
|---|
public final void setProbability(double pdProbability)
pdProbability - the desired probabilitypublic final double getProbability()
public static java.lang.String getMARFSourceCodeRevision()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||