diff options
Diffstat (limited to 'hg.rb')
-rw-r--r-- | hg.rb | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -127,6 +127,10 @@ def HG::viterbi_path hypergraph, root, semiring=ViterbiSemiring.new return best_path, toposorted.last.score end +def HG::k_best hypergraph, root, semiring=nil + #TODO +end + def HG::all_paths hypergraph, root toposorted = topological_sort hypergraph.nodes paths = [[]] |