From 0b3cdb4ae2fa176ba74a48ff7a1616395079c151 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Tue, 5 Aug 2014 22:46:43 +0200 Subject: too much to tell --- fast/main.cc | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'fast/main.cc') diff --git a/fast/main.cc b/fast/main.cc index 2a8676b..59e25d5 100644 --- a/fast/main.cc +++ b/fast/main.cc @@ -5,8 +5,18 @@ int main(int argc, char** argv) { Hg::Hypergraph hg; - Hg::io::read(hg, argv[1]); - Hg::viterbi(hg); + G::Grammar g; +//Hg::io::read(hg, g.rules, argv[1]); + Hg::io::manual(hg, g.rules); + + Hg::Path p; + Hg::viterbi_path(hg, p); + vector s; + Hg::derive(p, p.back()->head, s); + for (auto it: s) + cout << it << " "; + cout << endl; + return 0; } -- cgit v1.2.3