mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-25 12:52:29 +03:00
Forgot to call SetFeaturesToApply() for SkeletonPT and Transliteration phrase table
This commit is contained in:
parent
2b882b6e71
commit
e64368e7e4
@ -20,6 +20,11 @@ PhraseDictionaryTransliteration::PhraseDictionaryTransliteration(const std::stri
|
||||
m_outputLang.empty(), "Must specify all arguments");
|
||||
}
|
||||
|
||||
void PhraseDictionaryTransliteration::Load()
|
||||
{
|
||||
SetFeaturesToApply();
|
||||
}
|
||||
|
||||
void PhraseDictionaryTransliteration::CleanUpAfterSentenceProcessing(const InputType& source)
|
||||
{
|
||||
ReduceCache();
|
||||
|
@ -18,6 +18,8 @@ class PhraseDictionaryTransliteration : public PhraseDictionary
|
||||
public:
|
||||
PhraseDictionaryTransliteration(const std::string &line);
|
||||
|
||||
void Load();
|
||||
|
||||
virtual void CleanUpAfterSentenceProcessing(const InputType& source);
|
||||
|
||||
// for phrase-based model
|
||||
|
@ -12,6 +12,11 @@ SkeletonPT::SkeletonPT(const std::string &line)
|
||||
ReadParameters();
|
||||
}
|
||||
|
||||
void SkeletonPT::Load()
|
||||
{
|
||||
SetFeaturesToApply();
|
||||
}
|
||||
|
||||
void SkeletonPT::CleanUpAfterSentenceProcessing(const InputType& source)
|
||||
{
|
||||
RemoveAllInColl(m_allTPColl);
|
||||
|
@ -16,6 +16,8 @@ class SkeletonPT : public PhraseDictionary
|
||||
public:
|
||||
SkeletonPT(const std::string &line);
|
||||
|
||||
void Load();
|
||||
|
||||
virtual void CleanUpAfterSentenceProcessing(const InputType& source);
|
||||
|
||||
// for phrase-based model
|
||||
|
Loading…
Reference in New Issue
Block a user