summaryrefslogtreecommitdiff
path: root/main.rb
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2014-07-02 15:41:51 +0200
committerPatrick Simianer <p@simianer.de>2014-07-02 15:41:51 +0200
commite06dbc7fc9b7c24a7d66c4578f56e1596188abf8 (patch)
treeb98aeb4f97f2f6a5078da39588526d32fcaca577 /main.rb
parente9009f3bb8d2b86250b601e76f6d6e697c71e611 (diff)
canceled
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