change argument -include-alignment-in-n-best to -include-segmentation-in-n-best. This is what it actually does

This commit is contained in:
Hieu Hoang 2012-11-14 16:47:16 +00:00
parent 4e9d2f3ae1
commit 1a596181d1
3 changed files with 4 additions and 4 deletions

View File

@ -178,7 +178,7 @@ Parameter::Parameter()
AddParam("minlexr-memory", "Load lexical reordering table in minlexr format into memory");
AddParam("minphr-memory", "Load phrase table in minphr format into memory");
AddParam("include-alignment-in-n-best", "include word alignment in the n-best list. default is false");
AddParam("include-segmentation-in-n-best", "include phrasal segmentation in the n-best list. default is false");
AddParam("use-alignment-info", "Use word-to-word alignment: actually it is only used to output the word-to-word alignment. Word-to-word alignments are taken from the phrase table if any. Default is false.");
AddParam("print-alignment-info-in-n-best", "Include word-to-word alignment in the n-best list. Word-to-word alignments are takne from the phrase table if any. Default is false");
AddParam("alignment-output-file", "print output word alignments into given file");

View File

@ -270,7 +270,7 @@ bool StaticData::LoadData(Parameter *parameter)
SetBooleanParameter( &m_labeledNBestList, "labeled-n-best-list", true );
// include word alignment in the n-best list
SetBooleanParameter( &m_nBestIncludesAlignment, "include-alignment-in-n-best", false );
SetBooleanParameter( &m_nBestIncludesSegmentation, "include-segmentation-in-n-best", false );
// printing source phrase spans
SetBooleanParameter( &m_reportSegmentation, "report-segmentation", false );

View File

@ -144,7 +144,7 @@ protected:
m_constraintFileName;
std::string m_nBestFilePath, m_latticeSamplesFilePath;
bool m_fLMsLoaded, m_labeledNBestList,m_nBestIncludesAlignment;
bool m_fLMsLoaded, m_labeledNBestList,m_nBestIncludesSegmentation;
bool m_dropUnknown; //! false = treat unknown words as unknowns, and translate them as themselves; true = drop (ignore) them
bool m_wordDeletionEnabled;
@ -440,7 +440,7 @@ public:
return m_labeledNBestList;
}
bool NBestIncludesAlignment() const {
return m_nBestIncludesAlignment;
return m_nBestIncludesSegmentation;
}
bool UseMinphrInMemory() const {