diff options
Diffstat (limited to 'lib/nlp_ruby')
-rw-r--r-- | lib/nlp_ruby/Translation.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/nlp_ruby/Translation.rb b/lib/nlp_ruby/Translation.rb index 05cb1a8..3759a1d 100644 --- a/lib/nlp_ruby/Translation.rb +++ b/lib/nlp_ruby/Translation.rb @@ -22,7 +22,7 @@ class Translation end @id = id.to_i @f = SparseVector.from_kv features - @scores['decoder'] = score.to_f + @scores[:decoder] = score.to_f @rank = rank end @@ -33,7 +33,7 @@ class Translation end def to_s include_features=true - [@id, @s, @f.to_kv('=', ' '), @scores['decoder']].join(' ||| ') if include_features + [@id, @s, @f.to_kv('=', ' '), @scores[:decoder]].join(' ||| ') if include_features [@id, @s, @scores[:decoder]].join(' ||| ') if !include_features end |