diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2012-08-09 01:18:51 -0400 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2012-08-09 01:18:51 -0400 |
commit | 454ef7fd3a37a7d3105d6bf0f5750047979da2d4 (patch) | |
tree | 276fc4758188db716962ba409ccfe832077453a6 /decoder | |
parent | 2a9c9a414abc074ec4ea8a5494e8dd50e1f94d70 (diff) | |
parent | e0eabf1e59cbfa85b00efcff699cdcd6a524e9c5 (diff) |
Merge branch 'master' of github.com:redpony/cdec
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); } } |