change argument -include-alignment-in-n-best to -include-segmentation-in-n-best. Avoids confusion with word alignment

This commit is contained in:
Hieu Hoang 2012-11-14 16:57:33 +00:00
parent 1a596181d1
commit 623289465c
2 changed files with 4 additions and 4 deletions

View File

@ -369,7 +369,7 @@ void OutputNBest(std::ostream& out, const Moses::TrellisPathList &nBestList, con
const StaticData &staticData = StaticData::Instance();
bool labeledOutput = staticData.IsLabeledNBestList();
bool reportAllFactors = staticData.GetReportAllFactorsNBest();
bool includeAlignment = staticData.NBestIncludesAlignment();
bool includeSegmentation = staticData.NBestIncludesSegmentation();
bool includeWordAlignment = staticData.PrintAlignmentInfoInNbest();
TrellisPathList::const_iterator iter;
@ -432,8 +432,8 @@ void OutputNBest(std::ostream& out, const Moses::TrellisPathList &nBestList, con
// total
out << " ||| " << path.GetTotalScore();
//phrase-to-phrase alignment
if (includeAlignment) {
//phrase-to-phrase segmentation
if (includeSegmentation) {
out << " |||";
for (int currEdge = (int)edges.size() - 2 ; currEdge >= 0 ; currEdge--) {
const Hypothesis &edge = *edges[currEdge];

View File

@ -439,7 +439,7 @@ public:
bool IsLabeledNBestList() const {
return m_labeledNBestList;
}
bool NBestIncludesAlignment() const {
bool NBestIncludesSegmentation() const {
return m_nBestIncludesSegmentation;
}