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

Class LatticeWord

source code

object --+
         |
        LatticeWord

Word in a LatticeModel.

Instance Methods [hide private]
 
__init__(self, sym, start, end, prob=0)
Initialize a LatticeWord.
source code
 
set_prob(self, prob)
Update the posterior probability of this word
source code
 
reset_prob(self)
Reset the posterior probability to the inherent value
source code

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

Instance Variables [hide private]
  sym
Word string
  start
Start time of word
  end
End time of word
  prob
Posterior log-probability of word
  base_prob
ASR-derived posterior log-probability
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, sym, start, end, prob=0)
(Constructor)

source code 
Initialize a LatticeWord.
Parameters:
  • sym (string) - Word string
  • start (int) - Start time
  • end (int) - End time
  • prob (float) - Posterior log-probability
Overrides: object.__init__

set_prob(self, prob)

source code 

Update the posterior probability of this word

LatticeWords distinguish between their inherent posterior probability, which is derived purely from ASR results, and their effective posterior probability, which can be modified based on user input.
Parameters:
  • prob (float) - New posterior log-probability