diff options
author | Patrick Simianer <p@simianer.de> | 2014-08-05 22:46:43 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2014-08-05 22:46:43 +0200 |
commit | 0b3cdb4ae2fa176ba74a48ff7a1616395079c151 (patch) | |
tree | 7092a57ed7d29920df3ae2f97c39efc17c5e6095 /test/test_hg.rb | |
parent | a27e2c529ddb7dc1be0c6bcc44e3ab558126d15d (diff) |
too much to tell
Diffstat (limited to 'test/test_hg.rb')
-rwxr-xr-x | test/test_hg.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_hg.rb b/test/test_hg.rb index 67ff08a..6311bac 100755 --- a/test/test_hg.rb +++ b/test/test_hg.rb @@ -12,7 +12,7 @@ def main #hypergraph, nodes_by_id = HG::read_hypergraph_from_json('../example/3/3.json', semiring, true) path, score = HG::viterbi_path hypergraph, nodes_by_id[-1], semiring s = HG::derive path, path.last.head, [] - hypergraph.nodes.each { |i| puts "#{i.id} #{i.score}" } + path.each { |e| puts "#{e.rule}" } puts "---" puts "#{s.map { |i| i.word }.join ' '}" puts Math.log score |