mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-08-17 07:20:48 +03:00
change argument -include-alignment-in-n-best to -include-segmentation-in-n-best. Avoids confusion with word alignment
This commit is contained in:
parent
1a596181d1
commit
623289465c
@ -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];
|
||||
|
@ -439,7 +439,7 @@ public:
|
||||
bool IsLabeledNBestList() const {
|
||||
return m_labeledNBestList;
|
||||
}
|
||||
bool NBestIncludesAlignment() const {
|
||||
bool NBestIncludesSegmentation() const {
|
||||
return m_nBestIncludesSegmentation;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user