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
f844bd12d9
commit
5f90ccdb13
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -66,7 +66,7 @@ private:
|
||||
|
||||
public:
|
||||
TargetPhrase();
|
||||
TargetPhrase(const TargetPhrase ©);
|
||||
TargetPhrase(const TargetPhrase ©, const PhraseDictionary &pt);
|
||||
explicit TargetPhrase(const Phrase &targetPhrase);
|
||||
~TargetPhrase();
|
||||
|
||||
|
@ -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