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:
authorhieuhoang1972 <hieuhoang1972@1f5c12ca-751b-0410-a591-d2e778427230>2006-07-18 01:18:32 +0400
committerhieuhoang1972 <hieuhoang1972@1f5c12ca-751b-0410-a591-d2e778427230>2006-07-18 01:18:32 +0400
commitf4de7e5e0e7a61c9853ec61998efa5152c72778e (patch)
tree988099ca2edf9559577f25b9e4d1d102f25fec88 /moses
parent9fefefc6003936a16284b1986d366305ce77d409 (diff)
table limit for each phrase table
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@157 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'moses')
-rwxr-xr-xmoses/src/StaticData.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/moses/src/StaticData.cpp b/moses/src/StaticData.cpp
index 0d9180489..f0edc1213 100755
--- a/moses/src/StaticData.cpp
+++ b/moses/src/StaticData.cpp
@@ -406,8 +406,9 @@ void StaticData::LoadPhraseTables(bool filter
TRACE_ERR(endl);
const vector<string> &translationVector = m_parameter.GetParam("ttable-file");
- size_t maxTargetPhrase = Scan<size_t>(m_parameter.GetParam("ttable-limit")[0]);
+ vector<size_t> maxTargetPhrase = Scan<size_t>(m_parameter.GetParam("ttable-limit"));
+ size_t index = 0;
size_t totalPrevNoScoreComponent = 0;
for(size_t currDict = 0 ; currDict < translationVector.size(); currDict++)
{
@@ -456,12 +457,13 @@ void StaticData::LoadPhraseTables(bool filter
, filePath
, hashFilePath
, weight
- , maxTargetPhrase
+ , maxTargetPhrase[index]
, filterPhrase
, inputPhraseList
, this->GetLanguageModel(Initial)
, this->GetWeightWordPenalty());
+ index++;
timer.check("Finished loading PhraseTable");
}
}