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@gmail.com>2012-02-09 12:40:11 +0400
committerHieu Hoang <hieuhoang@gmail.com>2012-02-09 12:40:11 +0400
commit7f8c6e0d9217ba92e2c213caff24b1d08700e5e0 (patch)
treef57d010bca8675cddb0c63c3844bea386433e226 /moses
parent68066fe4a5aad713b78238d4c5bd79ac2e4f90f4 (diff)
output how many threads specified
Diffstat (limited to 'moses')
-rw-r--r--moses/src/LM/IRST.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/moses/src/LM/IRST.cpp b/moses/src/LM/IRST.cpp
index de29f900e..fd5a024ea 100644
--- a/moses/src/LM/IRST.cpp
+++ b/moses/src/LM/IRST.cpp
@@ -64,9 +64,10 @@ bool LanguageModelIRST::Load(const std::string &filePath,
cerr << "In LanguageModelIRST::Load: nGramOrder = " << nGramOrder << "\n";
const StaticData &staticData = StaticData::Instance();
- if (staticData.ThreadCount() != 1)
+ int threadCount = staticData.ThreadCount();
+ if (threadCount != 1)
{
- UserMessage::Add("IRST LM not-threadsafe");
+ UserMessage::Add(threadCount + " number of threads specified but IRST LM is not threadsafe.");
return false;
}