mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
Get ready to make lhsTarget a pointer
This commit is contained in:
parent
38c4b3695f
commit
4fdda2e2d9
@ -49,7 +49,6 @@ TargetPhrase::TargetPhrase( std::string out_string)
|
||||
CreateFromString(Output, staticData.GetInputFactorOrder(), out_string, staticData.GetFactorDelimiter());
|
||||
}
|
||||
|
||||
|
||||
TargetPhrase::TargetPhrase()
|
||||
:Phrase()
|
||||
, m_fullScore(0.0)
|
||||
@ -59,15 +58,27 @@ TargetPhrase::TargetPhrase()
|
||||
{
|
||||
}
|
||||
|
||||
TargetPhrase::TargetPhrase(const TargetPhrase ©)
|
||||
: Phrase(copy)
|
||||
, m_fullScore(copy.m_fullScore)
|
||||
, m_sourcePhrase(copy.m_sourcePhrase)
|
||||
, m_alignTerm(copy.m_alignTerm)
|
||||
, m_alignNonTerm(copy.m_alignNonTerm)
|
||||
, m_scoreBreakdown(copy.m_scoreBreakdown)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
TargetPhrase::TargetPhrase(const Phrase &phrase)
|
||||
: Phrase(phrase)
|
||||
, m_fullScore(0.0)
|
||||
, m_sourcePhrase()
|
||||
, m_alignTerm(&AlignmentInfoCollection::Instance().GetEmptyAlignmentInfo())
|
||||
, m_alignNonTerm(&AlignmentInfoCollection::Instance().GetEmptyAlignmentInfo())
|
||||
: Phrase(phrase)
|
||||
, m_fullScore(0.0)
|
||||
, m_sourcePhrase()
|
||||
, m_alignTerm(&AlignmentInfoCollection::Instance().GetEmptyAlignmentInfo())
|
||||
, m_alignNonTerm(&AlignmentInfoCollection::Instance().GetEmptyAlignmentInfo())
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
#ifdef HAVE_PROTOBUF
|
||||
void TargetPhrase::WriteToRulePB(hgmert::Rule* pb) const
|
||||
{
|
||||
|
@ -55,6 +55,7 @@ protected:
|
||||
|
||||
public:
|
||||
TargetPhrase();
|
||||
TargetPhrase(const TargetPhrase ©);
|
||||
explicit TargetPhrase(std::string out_string);
|
||||
explicit TargetPhrase(const Phrase &targetPhrase);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user