mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 13:23:25 +03:00
Proper initialization of class members of InputFeature.
This commit is contained in:
parent
d93c93df87
commit
76eb3d56b9
@ -13,7 +13,9 @@ namespace Moses
|
||||
InputFeature *InputFeature::s_instance = NULL;
|
||||
|
||||
InputFeature::InputFeature(const std::string &line)
|
||||
:StatelessFeatureFunction(line)
|
||||
: StatelessFeatureFunction(line)
|
||||
, m_numInputScores(0)
|
||||
, m_numRealWordCount(0)
|
||||
{
|
||||
ReadParameters();
|
||||
|
||||
@ -23,6 +25,7 @@ InputFeature::InputFeature(const std::string &line)
|
||||
|
||||
void InputFeature::Load()
|
||||
{
|
||||
|
||||
const PhraseDictionary *pt = PhraseDictionary::GetColl()[0];
|
||||
const PhraseDictionaryTreeAdaptor *ptBin = dynamic_cast<const PhraseDictionaryTreeAdaptor*>(pt);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user