Package saui_pr4 :: Module latticeui :: Class LatticeCloud
[hide private]
[frames] | no frames]

Class LatticeCloud

source code

object --+
         |
        LatticeCloud
Known Subclasses:
LatticeView.DisplayCloud

An expandable "cloud" of hypothesized words.

A cloud has two dimensions: time and beam width. The cloud contains all words which fall inside the specified start and end points and are within a certain ratio from the best posterior probability.

Instance Methods [hide private]
 
__init__(self, dag, start, end, beam=0.0)
Create a LatticeCloud object.
source code
 
set_beam(self, beam)
Set the beam width for the cloud.
source code
 
set_time_extents(self, start, end)
Set the time extents for the cloud.
source code
 
__iter__(self)
Return an iterator over the words in this cloud.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Instance Variables [hide private]
  dag
DAG
  beam
Beam width of cloud
  start
Start time of cloud
  end
End time of cloud
  max
maximum posterior probability
  min
minimum posterior probability
  nodes
all nodes in this span
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, dag, start, end, beam=0.0)
(Constructor)

source code 
Create a LatticeCloud object.
Parameters:
  • dag (sphinx.lattice.Dag) - Word lattice to initialize this object with.
  • start (int) - Start time for this cloud.
  • end (int) - End time for this cloud.
  • beam (float) - Beam width (log-probability ratio).
Overrides: object.__init__

set_beam(self, beam)

source code 
Set the beam width for the cloud.
Parameters:
  • beam (float) - Beam width (log-probability ratio).

set_time_extents(self, start, end)

source code 
Set the time extents for the cloud.
Parameters:
  • start (int) - Start time for this cloud.
  • end (int) - End time for this cloud.