summaryrefslogtreecommitdiff
path: root/fast/main.cc
blob: 59e25d5ff2853c1ea8d8eea9153072ad82b8d0a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "hypergraph.hh"


int
main(int argc, char** argv)
{
  Hg::Hypergraph 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<string> s;
  Hg::derive(p, p.back()->head, s);
  for (auto it: s)
    cout << it << " ";
  cout << endl;
  

  return 0;
}