mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-29 06:52:34 +03:00
Do not search for compact reordering table if CMPH is not compile into moses
This commit is contained in:
parent
28a962e65e
commit
e54360840f
@ -53,6 +53,7 @@ LexicalReorderingTable* LexicalReorderingTable::LoadAvailable(const std::string&
|
||||
{
|
||||
//decide use Compact or Tree or Memory table
|
||||
#ifndef WIN32
|
||||
#ifdef HAVE_CMPH
|
||||
std::string minlexr = ".minlexr";
|
||||
// file name is specified without suffix
|
||||
if(FileExists(filePath + minlexr))
|
||||
@ -69,6 +70,7 @@ LexicalReorderingTable* LexicalReorderingTable::LoadAvailable(const std::string&
|
||||
VERBOSE(2,"Using compact lexical reordering table" << std::endl);
|
||||
return new LexicalReorderingTableCompact(filePath, f_factors, e_factors, c_factors);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
if(FileExists(filePath+".binlexr.idx")) {
|
||||
//there exists a binary version use that
|
||||
|
Loading…
Reference in New Issue
Block a user