Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2012-11-14 20:43:06 +0400
committerHieu Hoang <hieuhoang@gmail.com>2012-11-14 20:43:06 +0400
commit4e9d2f3ae12da225b81861b5bbdf73384b0980b3 (patch)
tree8c175b11adbb513539a1813a22d5ca8eb8e427b5
parent065597dc9fe44cc30a04059db176a9610ae9f6e5 (diff)
delete print-alignment-info arg. Not used anymore
-rw-r--r--moses/Parameter.cpp1
-rw-r--r--moses/StaticData.cpp5
-rw-r--r--moses/StaticData.h4
3 files changed, 0 insertions, 10 deletions
diff --git a/moses/Parameter.cpp b/moses/Parameter.cpp
index f03ba78d8..147339662 100644
--- a/moses/Parameter.cpp
+++ b/moses/Parameter.cpp
@@ -180,7 +180,6 @@ Parameter::Parameter()
AddParam("include-alignment-in-n-best", "include word alignment 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", "Output word-to-word alignment into the log file. 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");
AddParam("sort-word-alignment", "Sort word alignments for more consistent display. 0=no sort (default), 1=target order");
diff --git a/moses/StaticData.cpp b/moses/StaticData.cpp
index 212dd300e..a255b72d8 100644
--- a/moses/StaticData.cpp
+++ b/moses/StaticData.cpp
@@ -175,15 +175,10 @@ bool StaticData::LoadData(Parameter *parameter)
//word-to-word alignment
SetBooleanParameter( &m_UseAlignmentInfo, "use-alignment-info", false );
- SetBooleanParameter( &m_PrintAlignmentInfo, "print-alignment-info", false );
SetBooleanParameter( &m_PrintAlignmentInfoNbest, "print-alignment-info-in-n-best", false );
SetBooleanParameter( &m_outputHypoScore, "output-hypo-score", false );
- if (!m_UseAlignmentInfo && m_PrintAlignmentInfo) {
- TRACE_ERR("--print-alignment-info should only be used together with \"--use-alignment-info true\". Continue forcing to false.\n");
- m_PrintAlignmentInfo=false;
- }
if (!m_UseAlignmentInfo && m_PrintAlignmentInfoNbest) {
TRACE_ERR("--print-alignment-info-in-n-best should only be used together with \"--use-alignment-info true\". Continue forcing to false.\n");
m_PrintAlignmentInfoNbest=false;
diff --git a/moses/StaticData.h b/moses/StaticData.h
index 6391fb995..ee6175eb6 100644
--- a/moses/StaticData.h
+++ b/moses/StaticData.h
@@ -172,7 +172,6 @@ protected:
std::string m_detailedTranslationReportingFilePath;
bool m_onlyDistinctNBest;
bool m_UseAlignmentInfo;
- bool m_PrintAlignmentInfo;
bool m_PrintAlignmentInfoNbest;
std::string m_alignmentOutputFile;
@@ -561,9 +560,6 @@ public:
void UseAlignmentInfo(bool a) {
m_UseAlignmentInfo=a;
};
- bool PrintAlignmentInfo() const {
- return m_PrintAlignmentInfo;
- }
bool PrintAlignmentInfoInNbest() const {
return m_PrintAlignmentInfoNbest;
}