Package sphinx :: Module lattice
[hide private]
[frames] | no frames]

Module lattice

source code

Word lattices for speech recognition.

Includes routines for loading lattices in Sphinx3 and HTK format.


Version: 05-631 local version

Author: David Huggins-Daines <dhuggins@cs.cmu.edu>

Classes [hide private]
  Dag
Directed acyclic graph representation of a phone/word lattice.
Functions [hide private]
float
logadd(x, y)
For x=log(a) and y=log(b), return z=log(a+b).
source code
boolean
is_filler(sym)
Returns true if sym is a filler word.
source code
Variables [hide private]
  LOGZERO = -100000
Function Details [hide private]

logadd(x, y)

source code 
For x=log(a) and y=log(b), return z=log(a+b).
Parameters:
  • x (float) - log(a)
  • y (float) - log(b)
Returns: float
log(a+b)

is_filler(sym)

source code 
Returns true if sym is a filler word.
Parameters:
  • sym (string) - Word string to test
Returns: boolean
True if sym is a filler word (but not <s> or </s>)