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:
authorHieu Hoang <hieuhoang@gmail.com>2016-09-30 01:56:27 +0300
committerHieu Hoang <hieuhoang@gmail.com>2016-09-30 01:56:27 +0300
commit8b30835a2f8f67a4b10199640487d2601693e460 (patch)
treeb2c5af2d3741cc4acef515c3f8e04c3d9d53a60b
parent0f536c26024eb2a3a17d428f23b9bd73bc46aa49 (diff)
less debug
-rw-r--r--contrib/moses2/TranslationModel/CompactPT/PhraseTableCompact.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/contrib/moses2/TranslationModel/CompactPT/PhraseTableCompact.cpp b/contrib/moses2/TranslationModel/CompactPT/PhraseTableCompact.cpp
index 4a3337b81..599f51891 100644
--- a/contrib/moses2/TranslationModel/CompactPT/PhraseTableCompact.cpp
+++ b/contrib/moses2/TranslationModel/CompactPT/PhraseTableCompact.cpp
@@ -33,39 +33,31 @@ void PhraseTableCompact::Load(System &system)
if (!ends_with(tFilePath, suffix)) tFilePath += suffix;
if (!FileExists(tFilePath))
throw runtime_error("Error: File " + tFilePath + " does not exist.");
- cerr << "tFilePath=" << tFilePath << endl;
m_phraseDecoder
= new PhraseDecoder(*this, &m_input, &m_output, GetNumScores());
- cerr << "m_phraseDecoder=" << m_phraseDecoder << endl;
std::FILE* pFile = std::fopen(tFilePath.c_str() , "r");
- cerr << "pFile=" << pFile << endl;
size_t indexSize;
//if(m_inMemory)
// Load source phrase index into memory
indexSize = m_hash.Load(pFile);
- cerr << "indexSize=" << indexSize << endl;
// else
// Keep source phrase index on disk
//indexSize = m_hash.LoadIndex(pFile);
size_t coderSize = m_phraseDecoder->Load(pFile);
- cerr << "coderSize=" << coderSize << endl;
size_t phraseSize;
if(m_inMemory) {
// Load target phrase collections into memory
- cerr << "m_inMemory=" << phraseSize << endl;
phraseSize = m_targetPhrasesMemory.load(pFile, false);
}
else {
// Keep target phrase collections on disk
- cerr << "not m_inMemory=" << phraseSize << endl;
phraseSize = m_targetPhrasesMapped.load(pFile, true);
}
- cerr << "phraseSize=" << phraseSize << endl;
UTIL_THROW_IF2(indexSize == 0 || coderSize == 0 || phraseSize == 0,
"Not successfully loaded");