mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-08-17 07:20:48 +03:00
error message
This commit is contained in:
parent
e99a908494
commit
a0b8c57070
@ -41,7 +41,8 @@ using namespace std;
|
||||
namespace Moses
|
||||
{
|
||||
LanguageModelImplementation::LanguageModelImplementation(const std::string &line)
|
||||
:LanguageModel(line)
|
||||
:LanguageModel(line)
|
||||
,m_nGramOrder(NOT_FOUND)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -11,6 +11,9 @@ SkeletonLM::SkeletonLM(const std::string &line)
|
||||
{
|
||||
ReadParameters();
|
||||
|
||||
UTIL_THROW_IF2(m_nGramOrder == NOT_FOUND, "Must set order");
|
||||
UTIL_THROW_IF2(m_nGramOrder <= 1, "Ngram order must be more than 1");
|
||||
|
||||
FactorCollection &factorCollection = FactorCollection::Instance();
|
||||
|
||||
// needed by parent language model classes. Why didn't they set these themselves?
|
||||
|
Loading…
Reference in New Issue
Block a user