Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pks committed Feb 14, 2014
1 parent bc8c6fa commit 7324d02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/nlp_ruby/Translation.rb
Expand Up @@ -22,7 +22,7 @@ def from_s t, strip_alignment=true, rank=nil
end
@id = id.to_i
@f = SparseVector.from_kv features
@scores['decoder'] = score.to_f
@scores[:decoder] = score.to_f
@rank = rank
end

Expand All @@ -33,7 +33,7 @@ def self.from_s s
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

Expand Down

0 comments on commit 7324d02

Please sign in to comment.