mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-08-17 23:40:50 +03:00
improvement on passthrough information
This commit is contained in:
parent
88ec4925f2
commit
626c9d7a84
@ -294,9 +294,15 @@ void OutputSurface(std::ostream &out, const Hypothesis &edge, const std::vector<
|
||||
}
|
||||
}
|
||||
|
||||
void OutputPassthroughInformation(std::string& passthrough, const Hypothesis *hypo)
|
||||
{
|
||||
passthrough = hypo->GetManager().GetSource().GetPassthroughInformation();
|
||||
}
|
||||
|
||||
void OutputPassthroughInformation(std::ostream &out, const Hypothesis *hypo)
|
||||
{
|
||||
std::string passthrough = hypo->GetManager().GetSource().GetPassthroughInformation();
|
||||
std::string passthrough;
|
||||
passthrough = hypo->GetManager().GetSource().GetPassthroughInformation();
|
||||
out << passthrough;
|
||||
}
|
||||
|
||||
|
@ -139,6 +139,7 @@ void OutputBestHypo(const std::vector<Moses::Word>& mbrBestHypo, long /*transla
|
||||
char reportSegmentation, bool reportAllFactors, std::ostream& out);
|
||||
void OutputBestHypo(const Moses::TrellisPath &path, long /*translationId*/,char reportSegmentation, bool reportAllFactors, std::ostream &out);
|
||||
void OutputInput(std::ostream& os, const Moses::Hypothesis* hypo);
|
||||
void OutputPassthroughInformation(std::string& passthrough, const Moses::Hypothesis* hypo);
|
||||
void OutputPassthroughInformation(std::ostream& os, const Moses::Hypothesis* hypo);
|
||||
void OutputAlignment(Moses::OutputCollector* collector, size_t lineNo, const Moses::Hypothesis *hypo);
|
||||
void OutputAlignment(Moses::OutputCollector* collector, size_t lineNo, const Moses::TrellisPath &path);
|
||||
|
@ -169,6 +169,7 @@ bool StaticData::LoadData(Parameter *parameter)
|
||||
m_needAlignmentInfo = true;
|
||||
}
|
||||
|
||||
SetBooleanParameter( &m_PrintID, "print-id", false );
|
||||
SetBooleanParameter( &m_PrintPassthroughInformation, "print-passthrough", false );
|
||||
SetBooleanParameter( &m_PrintPassthroughInformationInNBest, "print-passthrough-in-n-best", false );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user