From 7324d02ea20dbae4639a0431815090b37d1cf0c9 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Fri, 14 Feb 2014 20:09:19 +0100 Subject: fix --- lib/nlp_ruby/Translation.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3