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:
authorphikoehn <pkoehn@inf.ed.ac.uk>2012-09-03 10:24:07 +0400
committerphikoehn <pkoehn@inf.ed.ac.uk>2012-09-03 10:24:07 +0400
commite072a7f9a76f8c6a6589451ee186256cb4dabc5e (patch)
tree5b441dcd2bc068cac7c614fefb08fb78b254e4fd /phrase-extract/PhraseExtractionOptions.h
parent0e783dc5297841b663149f558646d82881151c40 (diff)
merge issues
Diffstat (limited to 'phrase-extract/PhraseExtractionOptions.h')
-rw-r--r--phrase-extract/PhraseExtractionOptions.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/phrase-extract/PhraseExtractionOptions.h b/phrase-extract/PhraseExtractionOptions.h
index d541144b7..400b587ed 100644
--- a/phrase-extract/PhraseExtractionOptions.h
+++ b/phrase-extract/PhraseExtractionOptions.h
@@ -44,6 +44,7 @@ class PhraseExtractionOptions {
bool orientationFlag;
bool translationFlag;
bool sentenceIdFlag; //create extract file with sentence id
+ bool includeSentenceIdFlag; //include sentence id in extract file
bool onlyOutputSpanInfo;
bool gzOutput;
@@ -60,10 +61,9 @@ public:
orientationFlag(false),
translationFlag(true),
sentenceIdFlag(false),
+ includeSentenceIdFlag(false),
onlyOutputSpanInfo(false),
gzOutput(false){}
-
-
//functions for initialization of options
void initAllModelsOutputFlag(const bool initallModelsOutputFlag){
@@ -96,6 +96,9 @@ public:
void initSentenceIdFlag(const bool initsentenceIdFlag){
sentenceIdFlag=initsentenceIdFlag;
}
+ void initIncludeSentenceIdFlag(const bool initincludeSentenceIdFlag){
+ sentenceIdFlag=initincludeSentenceIdFlag;
+ }
void initOnlyOutputSpanInfo(const bool initonlyOutputSpanInfo){
onlyOutputSpanInfo= initonlyOutputSpanInfo;
}
@@ -133,6 +136,9 @@ public:
bool isSentenceIdFlag() const {
return sentenceIdFlag;
}
+ bool isIncludeSentenceIdFlag() const {
+ return includeSentenceIdFlag;
+ }
bool isOnlyOutputSpanInfo() const {
return onlyOutputSpanInfo;
}