mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
initialise m_container
This commit is contained in:
parent
3f3912772d
commit
abe68be588
@ -50,7 +50,7 @@ TargetPhrase::TargetPhrase()
|
||||
{
|
||||
}
|
||||
|
||||
TargetPhrase::TargetPhrase(const Phrase &phrase)
|
||||
TargetPhrase::TargetPhrase(const Phrase &phrase, const PhraseDictionary *pt)
|
||||
: Phrase(phrase)
|
||||
, m_fullScore(0.0)
|
||||
, m_futureScore(0.0)
|
||||
@ -58,7 +58,7 @@ TargetPhrase::TargetPhrase(const Phrase &phrase)
|
||||
, m_alignNonTerm(&AlignmentInfoCollection::Instance().GetEmptyAlignmentInfo())
|
||||
, m_lhsTarget(NULL)
|
||||
, m_ruleSource(NULL)
|
||||
, m_container(NULL)
|
||||
, m_container(pt)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -67,7 +67,7 @@ private:
|
||||
public:
|
||||
TargetPhrase();
|
||||
TargetPhrase(const TargetPhrase ©);
|
||||
explicit TargetPhrase(const Phrase &targetPhrase);
|
||||
explicit TargetPhrase(const Phrase &targetPhrase, const PhraseDictionary *pt);
|
||||
~TargetPhrase();
|
||||
|
||||
// 1st evaluate method. Called during loading of phrase table.
|
||||
|
@ -222,7 +222,7 @@ bool RuleTableLoaderCompact::LoadRuleSection(
|
||||
// The remaining columns are currently ignored.
|
||||
|
||||
// Create and score target phrase.
|
||||
TargetPhrase *targetPhrase = new TargetPhrase(targetPhrasePhrase);
|
||||
TargetPhrase *targetPhrase = new TargetPhrase(targetPhrasePhrase, &ruleTable);
|
||||
targetPhrase->SetAlignNonTerm(alignNonTerm);
|
||||
targetPhrase->SetTargetLHS(targetLhs);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user