Class: Pocketsphinx::Decoder::Hypothesis

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/pocketsphinx/decoder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(string, path_score) ⇒ Hypothesis

Returns a new instance of Hypothesis.



10
11
12
13
# File 'lib/pocketsphinx/decoder.rb', line 10

def initialize(string, path_score)
  @path_score = path_score
  super(string)
end

Instance Attribute Details

#path_scoreObject

Returns the value of attribute path_score.



8
9
10
# File 'lib/pocketsphinx/decoder.rb', line 8

def path_score
  @path_score
end