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 | 89df59e9ad1260b6ff36e4aa0e730ad84faec211 (patch) | |
tree | a87e62f6a9926b218fef50d067742944e5450f3d /decoder | |
parent | 6ba464f6d78e38970d5467b10ce1114f4d7feaa4 (diff) |
random sampling trees fix
Diffstat (limited to 'decoder')
-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); } } |