diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2012-08-07 23:22:44 -0400 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2012-08-07 23:22:44 -0400 |
commit | bc2992ba96cd7af83da8522bdeb6e5dd94a5a11b (patch) | |
tree | 26fdfcde0138c26447514d2f97c26de8e1decca4 /python/src/hypergraph.pxd | |
parent | 2a4fd2dac126cb5753ae32b6ea3ba1255551a810 (diff) |
sample trees from hypergraphs
Diffstat (limited to 'python/src/hypergraph.pxd')
-rw-r--r-- | python/src/hypergraph.pxd | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/src/hypergraph.pxd b/python/src/hypergraph.pxd index 886660bf..abd6759c 100644 --- a/python/src/hypergraph.pxd +++ b/python/src/hypergraph.pxd @@ -76,6 +76,10 @@ cdef extern from "decoder/hg_sampler.h" namespace "HypergraphSampler": unsigned n, MT19937* rng, vector[Hypothesis]* hypos) + void sample_trees(Hypergraph& hg, + unsigned n, + MT19937* rng, + vector[string]* trees) cdef extern from "decoder/csplit.h" namespace "CompoundSplit": int GetFullWordEdgeIndex(Hypergraph& forest) |