summaryrefslogtreecommitdiff
path: root/decoder
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cab.ark.cs.cmu.edu>2012-08-08 00:40:08 -0400
committerChris Dyer <cdyer@cab.ark.cs.cmu.edu>2012-08-08 00:40:08 -0400
commit89df59e9ad1260b6ff36e4aa0e730ad84faec211 (patch)
treea87e62f6a9926b218fef50d067742944e5450f3d /decoder
parent6ba464f6d78e38970d5467b10ce1114f4d7feaa4 (diff)
random sampling trees fix
Diffstat (limited to 'decoder')
-rw-r--r--decoder/hg_sampler.cc2
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);
}
}