summaryrefslogtreecommitdiff
path: root/test_hg.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test_hg.rb')
-rwxr-xr-xtest_hg.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test_hg.rb b/test_hg.rb
index 78871aa..b72bd85 100755
--- a/test_hg.rb
+++ b/test_hg.rb
@@ -4,7 +4,7 @@ require_relative 'hg'
semiring = ViterbiSemiring.new
-hypergraph, nodes_by_id = HG::read_hypergraph_from_json('example/json/test.json', semiring, true)
+hypergraph, nodes_by_id = HG::read_hypergraph_from_json('x.json', semiring, true)
path, score = HG::viterbi_path hypergraph, nodes_by_id[-1], semiring
s = HG::derive path, path.last.head, []
puts "#{s.map { |i| i.word }.join ' '}"