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 | 8ab7731dc55c55272300eafbde2c085b31f886d7 (patch) | |
tree | b893065295b1cee0d30deadc6331f9c2fab1e864 /decoder | |
parent | c732ab57899e33c62dad2154ac6ca1caeaaa7789 (diff) | |
parent | eae5efbf112a8697309fe7c1e385a8609124520e (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); } } |