Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjiejiang <mail.jie.jiang@gmail.com>2013-12-19 00:15:39 +0400
committerjiejiang <mail.jie.jiang@gmail.com>2013-12-19 00:15:39 +0400
commit744376b3fbebc41c4a270bf549826d5eb9219ae0 (patch)
tree27b324b13dacf16e021cde88b9edb594d71f09dc /moses/Manager.cpp
parent1a8a8fbb2d8eb503c38ba03da796e16ed08fd07a (diff)
moses windows build, with some TODO list
Diffstat (limited to 'moses/Manager.cpp')
-rw-r--r--moses/Manager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/moses/Manager.cpp b/moses/Manager.cpp
index 74d79fe60..dac513ae2 100644
--- a/moses/Manager.cpp
+++ b/moses/Manager.cpp
@@ -389,13 +389,13 @@ void Manager::CalcLatticeSamples(size_t count, TrellisPathList &ret) const
//cerr << endl;
//draw the sample
- float random = log((float)rand()/RAND_MAX);
+ float frandom = log((float)rand()/RAND_MAX);
size_t position = 1;
float sum = candidateScores[0];
- for (; position < candidateScores.size() && sum < random; ++position) {
+ for (; position < candidateScores.size() && sum < frandom; ++position) {
sum = log_sum(sum,candidateScores[position]);
}
- //cerr << "Random: " << random << " Chose " << position-1 << endl;
+ //cerr << "Random: " << frandom << " Chose " << position-1 << endl;
const Hypothesis* chosen = candidates[position-1];
path.push_back(chosen);
}