Forgot to call SetFeaturesToApply() for SkeletonPT and Transliteration phrase table

This commit is contained in:
Hieu Hoang 2013-12-10 12:42:05 +00:00
parent 2b882b6e71
commit e64368e7e4
4 changed files with 14 additions and 0 deletions

View File

@ -20,6 +20,11 @@ PhraseDictionaryTransliteration::PhraseDictionaryTransliteration(const std::stri
m_outputLang.empty(), "Must specify all arguments"); m_outputLang.empty(), "Must specify all arguments");
} }
void PhraseDictionaryTransliteration::Load()
{
SetFeaturesToApply();
}
void PhraseDictionaryTransliteration::CleanUpAfterSentenceProcessing(const InputType& source) void PhraseDictionaryTransliteration::CleanUpAfterSentenceProcessing(const InputType& source)
{ {
ReduceCache(); ReduceCache();

View File

@ -18,6 +18,8 @@ class PhraseDictionaryTransliteration : public PhraseDictionary
public: public:
PhraseDictionaryTransliteration(const std::string &line); PhraseDictionaryTransliteration(const std::string &line);
void Load();
virtual void CleanUpAfterSentenceProcessing(const InputType& source); virtual void CleanUpAfterSentenceProcessing(const InputType& source);
// for phrase-based model // for phrase-based model

View File

@ -12,6 +12,11 @@ SkeletonPT::SkeletonPT(const std::string &line)
ReadParameters(); ReadParameters();
} }
void SkeletonPT::Load()
{
SetFeaturesToApply();
}
void SkeletonPT::CleanUpAfterSentenceProcessing(const InputType& source) void SkeletonPT::CleanUpAfterSentenceProcessing(const InputType& source)
{ {
RemoveAllInColl(m_allTPColl); RemoveAllInColl(m_allTPColl);

View File

@ -16,6 +16,8 @@ class SkeletonPT : public PhraseDictionary
public: public:
SkeletonPT(const std::string &line); SkeletonPT(const std::string &line);
void Load();
virtual void CleanUpAfterSentenceProcessing(const InputType& source); virtual void CleanUpAfterSentenceProcessing(const InputType& source);
// for phrase-based model // for phrase-based model