Class: Pocketsphinx::Decoder::Hypothesis
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Pocketsphinx::Decoder::Hypothesis
- Defined in:
- lib/pocketsphinx/decoder.rb
Instance Attribute Summary collapse
-
#path_score ⇒ Object
Returns the value of attribute path_score.
-
#posterior_prob ⇒ Object
Returns the value of attribute posterior_prob.
Instance Method Summary collapse
-
#initialize(string, path_score, posterior_prob = nil) ⇒ Hypothesis
constructor
A new instance of Hypothesis.
Constructor Details
#initialize(string, path_score, posterior_prob = nil) ⇒ Hypothesis
Returns a new instance of Hypothesis.
11 12 13 14 15 16 |
# File 'lib/pocketsphinx/decoder.rb', line 11 def initialize(string, path_score, posterior_prob = nil) @path_score = path_score @posterior_prob = posterior_prob super(string) end |
Instance Attribute Details
#path_score ⇒ Object
Returns the value of attribute path_score
8 9 10 |
# File 'lib/pocketsphinx/decoder.rb', line 8 def path_score @path_score end |
#posterior_prob ⇒ Object
Returns the value of attribute posterior_prob
9 10 11 |
# File 'lib/pocketsphinx/decoder.rb', line 9 def posterior_prob @posterior_prob end |