public class GrammarArc
extends java.lang.Object
Note that all probabilities are maintained in the LogMath log base
Constructor and Description |
---|
GrammarArc(GrammarNode grammarNode,
float logProbability)
Create a grammar arc
|
Modifier and Type | Method and Description |
---|---|
GrammarNode |
getGrammarNode()
Retrieves the destination node for this transition
|
float |
getProbability()
Retrieves the probability for this transition
|
public GrammarArc(GrammarNode grammarNode, float logProbability)
grammarNode
- the node that this arc points tologProbability
- the log probability of following this arcpublic GrammarNode getGrammarNode()
public float getProbability()