| Package | Description |
|---|---|
| edu.cmu.sphinx.result |
| Modifier and Type | Field and Description |
|---|---|
protected Node |
Edge.fromNode |
protected Node |
Lattice.initialNode |
protected Node |
Lattice.terminalNode |
protected Node |
Edge.toNode |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,Node> |
Lattice.nodes |
| Modifier and Type | Method and Description |
|---|---|
Node |
Lattice.addNode(java.lang.String id,
java.lang.String word,
long beginTime,
long endTime)
Add a Node with a given ID that represents the theory that a given word
was spoken over a given period of time.
|
protected Node |
Lattice.addNode(java.lang.String id,
Word word,
long beginTime,
long endTime)
Add a Node with a given ID that represents the theory that a given word
was spoken over a given period of time.
|
Node |
Node.getBestPredecessor()
Returns the best predecessor for this node.
|
Node |
Edge.getFromNode()
Get the "from" Node associated with an Edge
|
Node |
Lattice.getInitialNode()
Get the initialNode for this Lattice.
|
protected Node |
Lattice.getNode(java.lang.String id)
Get the Node associated with an ID
|
Node |
Lattice.getTerminalNode()
Get the terminalNode for this Lattice.
|
Node |
Edge.getToNode()
Get the "to" Node associated with an Edge
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Node> |
Node.getChildNodes()
Get the nodes at the other ends of outgoing edges of this node.
|
protected java.util.Collection<Node> |
Lattice.getCopyOfNodes()
Get a copy of the Collection of all Nodes.
|
java.util.Collection<Node> |
Lattice.getNodes()
Get the Collection of all Nodes.
|
java.util.List<Node> |
Lattice.getViterbiPath()
Retrieves the MAP path from this lattice.
|
java.util.List<Node> |
Lattice.sortNodes()
Topologically sort the nodes in this lattice.
|
| Modifier and Type | Method and Description |
|---|---|
Edge |
Lattice.addEdge(Node fromNode,
Node toNode,
double acousticScore,
double lmScore)
Add an edge from fromNode to toNode.
|
protected void |
Lattice.addNode(Node n)
Add a Node to the set of all Nodes
|
protected java.util.List<java.lang.String> |
Lattice.allPathsFrom(java.lang.String path,
Node n)
Internal routine used to generate all paths starting at a given node.
|
protected void |
Node.cacheDescendantsHelper(Node n) |
protected boolean |
LatticeOptimizer.equivalentNodeLabels(Node n1,
Node n2)
Is the contents of these Node equivalent?
|
protected boolean |
LatticeOptimizer.equivalentNodesBackward(Node n1,
Node n2)
nodes are equivalent backward if they have "to" edges to the same nodes, and have equivalent labels (Token,
start/end times)
|
protected boolean |
LatticeOptimizer.equivalentNodesForward(Node n1,
Node n2)
nodes are equivalent forward if they have "from" edges from the same nodes, and have equivalent labels (Token,
start/end times)
|
Edge |
Node.getEdgeFromNode(Node n)
given a node find the edge from that node
|
Edge |
Node.getEdgeToNode(Node n)
given a node find the edge to that node
|
boolean |
Node.hasAncestralRelationship(Node node)
Check whether this node has an ancestral relationship with another node (i.e.
|
protected boolean |
Node.hasEdgeFromNode(Node n)
Test is a Node has an Edge from a Node
|
protected boolean |
Node.hasEdgeToNode(Node n)
Test if a node has an Edge to a Node
|
protected boolean |
Node.hasEquivalentEnteringEdges(Node n)
Test if a Node has all Edges from the same Nodes and another Node.
|
boolean |
Node.hasEquivalentLeavingEdges(Node n)
Test if a Node has all Edges to the same Nodes and another Node.
|
protected boolean |
Node.isAncestorHelper(java.util.List<Node> children,
Node node,
java.util.Set<Node> seenNodes) |
boolean |
Node.isAncestorOf(Node node)
Check whether this node is an ancestor of another node.
|
boolean |
Node.isEquivalent(Node other)
Returns true if the given node is equivalent to this node.
|
protected boolean |
LatticeOptimizer.optimizeNodeBackward(Node n)
Look for 2 entering edges from equivalent nodes.
|
protected boolean |
LatticeOptimizer.optimizeNodeForward(Node n)
Look for 2 "to" edges to equivalent nodes.
|
protected void |
Lattice.removeNode(Node n)
Remove a Node from the set of all Nodes
|
protected void |
Lattice.removeNodeAndCrossConnectEdges(Node n)
Remove a Node and cross connect all Nodes with Edges to it.
|
protected void |
Lattice.removeNodeAndEdges(Node n)
Remove a Node and all Edges connected to it.
|
void |
Node.setBestPredecessor(Node bestPredecessor)
Sets the best predecessor of this node.
|
void |
Lattice.setInitialNode(Node initialNode)
Set the initialNode for this Lattice.
|
void |
Lattice.setTerminalNode(Node terminalNode)
Set the terminalNode for this Lattice.
|
protected void |
Lattice.sortHelper(Node n,
java.util.List<Node> sorted,
java.util.Set<Node> visited) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
Node.isAncestorHelper(java.util.List<Node> children,
Node node,
java.util.Set<Node> seenNodes) |
protected boolean |
Node.isAncestorHelper(java.util.List<Node> children,
Node node,
java.util.Set<Node> seenNodes) |
protected void |
Lattice.sortHelper(Node n,
java.util.List<Node> sorted,
java.util.Set<Node> visited) |
protected void |
Lattice.sortHelper(Node n,
java.util.List<Node> sorted,
java.util.Set<Node> visited) |
| Constructor and Description |
|---|
Edge(Node fromNode,
Node toNode,
double acousticScore,
double lmScore)
Create an Edge from fromNode to toNode with acoustic and Language Model scores.
|
WordResult(Node node)
Construct a WordResult using a Node object and a confidence (posterior).
|