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
path: root/moses
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@Hieus-MacBook.local>2011-10-28 16:12:20 +0400
committerHieu Hoang <hieuhoang@Hieus-MacBook.local>2011-10-28 16:12:20 +0400
commit62c901eb521447f945fc0e5727ad2f4d98f0e47d (patch)
tree0760d727a3488572be034e5ddea8a927085a16f8 /moses
parentae42f1aca04c7888edda26eba4496396a1114d07 (diff)
TMX extraction by Tom Hoar and Hilario Leal Fontes
Diffstat (limited to 'moses')
-rw-r--r--moses/src/StaticData.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/moses/src/StaticData.cpp b/moses/src/StaticData.cpp
index e96b71b53..cb938c19b 100644
--- a/moses/src/StaticData.cpp
+++ b/moses/src/StaticData.cpp
@@ -1015,12 +1015,13 @@ bool StaticData::LoadPhraseTables()
m_numInputScores=0;
}
//this number changes depending on what phrase table we're talking about: only 0 has the weights on it
- size_t tableInputScores = (currDict == 0 ? m_numInputScores : 0);
+ size_t tableInputScores = (currDict == 0 && implementation == Binary) ? m_numInputScores : 0;
for (size_t currScore = 0 ; currScore < numScoreComponent; currScore++)
weight.push_back(weightAll[weightAllOffset + currScore]);
-
+ cerr << weight.size() << endl;
+
if(weight.size() - tableInputScores != numScoreComponent) {
stringstream strme;
strme << "Your phrase table has " << numScoreComponent