summaryrefslogtreecommitdiff
path: root/main.rb
diff options
context:
space:
mode:
Diffstat (limited to 'main.rb')
-rwxr-xr-xmain.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/main.rb b/main.rb
index 7dc7370..e41d0f1 100755
--- a/main.rb
+++ b/main.rb
@@ -52,15 +52,12 @@ def main
STDERR.write "> parsing\n"
Parse::parse input, n, active_chart, passive_chart, grammar
- exit
-
weights = SparseVector.from_kv(ReadFile.read(cfg[:weights]), ' ', "\n")
if !weights
weights = SparseVector.new
end
hypergraph = passive_chart.to_hg weights
- puts hypergraph.to_json weights
STDERR.write "> viterbi\n"
semiring = ViterbiSemiring.new