mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 13:23:25 +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");
|
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();
|
||||||
|
@ -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
|
||||||
|
@ -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);
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user