mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 13:23:25 +03:00
vs studio
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@3124 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
parent
3029aaccc3
commit
b96bac6106
@ -24,7 +24,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#include "PhraseDictionaryTreeAdaptor.h"
|
||||
#include "PhraseDictionaryNewFormat.h"
|
||||
#include "PhraseDictionaryOnDisk.h"
|
||||
#ifndef WIN32
|
||||
#include "PhraseDictionaryDynSuffixArray.h"
|
||||
#endif
|
||||
#include "StaticData.h"
|
||||
#include "InputType.h"
|
||||
#include "TranslationOption.h"
|
||||
@ -152,17 +154,21 @@ PhraseDictionaryFeature::PhraseDictionaryFeature
|
||||
}
|
||||
else if (implementation == SuffixArray)
|
||||
{
|
||||
PhraseDictionaryDynSuffixArray *pd = new PhraseDictionaryDynSuffixArray(numScoreComponent, this);
|
||||
if(!(pd && pd->Load(filePath, targetFile, alignmentsFile
|
||||
, weight, tableLimit
|
||||
, staticData.GetAllLM()
|
||||
, staticData.GetWeightWordPenalty())))
|
||||
{
|
||||
std::cerr << "FAILED TO LOAD\n" << endl;
|
||||
delete pd;
|
||||
}
|
||||
m_phraseDictionary.reset(pd);
|
||||
std::cerr << "Suffix array phrase table loaded" << std::endl;
|
||||
#ifndef WIN32
|
||||
PhraseDictionaryDynSuffixArray *pd = new PhraseDictionaryDynSuffixArray(numScoreComponent, this);
|
||||
if(!(pd && pd->Load(filePath, targetFile, alignmentsFile
|
||||
, weight, tableLimit
|
||||
, staticData.GetAllLM()
|
||||
, staticData.GetWeightWordPenalty())))
|
||||
{
|
||||
std::cerr << "FAILED TO LOAD\n" << endl;
|
||||
delete pd;
|
||||
}
|
||||
m_phraseDictionary.reset(pd);
|
||||
std::cerr << "Suffix array phrase table loaded" << std::endl;
|
||||
#else
|
||||
assert(false);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user