diff options
author | Chris Dyer <cdyer@cab.ark.cs.cmu.edu> | 2012-08-08 00:40:08 -0400 |
---|---|---|
committer | Chris Dyer <cdyer@cab.ark.cs.cmu.edu> | 2012-08-08 00:40:08 -0400 |
commit | cc5584e9b066e6d1177495f7028ff49ab057ed52 (patch) | |
tree | 57cebbb63f575cbe865f4532e7741e40e80ae365 /decoder/hg_sampler.cc | |
parent | bc2992ba96cd7af83da8522bdeb6e5dd94a5a11b (diff) |
random sampling trees fix
Diffstat (limited to 'decoder/hg_sampler.cc')
-rw-r--r-- | decoder/hg_sampler.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/hg_sampler.cc b/decoder/hg_sampler.cc index c4d3dede..8e520871 100644 --- a/decoder/hg_sampler.cc +++ b/decoder/hg_sampler.cc @@ -122,7 +122,7 @@ void HypergraphSampler::sample_trees(const Hypergraph& hg, } vector<WordID> tmp; Viterbi(hg, &tmp, ETreeTraversal(), SampledDerivationWeightFunction(sampled_edges)); - (*trees)[n] = TD::GetString(tmp); + (*trees)[i] = TD::GetString(tmp); } } |