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:
Diffstat (limited to 'phrase-extract/SentenceAlignmentWithSyntax.h')
-rw-r--r--phrase-extract/SentenceAlignmentWithSyntax.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/phrase-extract/SentenceAlignmentWithSyntax.h b/phrase-extract/SentenceAlignmentWithSyntax.h
index 604b6d0e2..be7ee52d3 100644
--- a/phrase-extract/SentenceAlignmentWithSyntax.h
+++ b/phrase-extract/SentenceAlignmentWithSyntax.h
@@ -18,8 +18,6 @@
***********************************************************************/
#pragma once
-#ifndef SENTENCEALIGNMENTWITHSYNTAX_H_INCLUDED_
-#define SENTENCEALIGNMENTWITHSYNTAX_H_INCLUDED_
#include <map>
#include <set>
@@ -42,18 +40,20 @@ public:
std::set<std::string> & m_sourceLabelCollection;
std::map<std::string, int> & m_targetTopLabelCollection;
std::map<std::string, int> & m_sourceTopLabelCollection;
- const RuleExtractionOptions & m_options;
+ const bool m_targetSyntax, m_sourceSyntax;
SentenceAlignmentWithSyntax(std::set<std::string> & tgtLabelColl,
std::set<std::string> & srcLabelColl,
std::map<std::string,int> & tgtTopLabelColl,
std::map<std::string,int> & srcTopLabelColl,
- const RuleExtractionOptions & options)
+ bool targetSyntax,
+ bool sourceSyntax)
: m_targetLabelCollection(tgtLabelColl)
, m_sourceLabelCollection(srcLabelColl)
, m_targetTopLabelCollection(tgtTopLabelColl)
, m_sourceTopLabelCollection(srcTopLabelColl)
- , m_options(options) {
+ , m_targetSyntax(targetSyntax)
+ , m_sourceSyntax(sourceSyntax) {
}
virtual ~SentenceAlignmentWithSyntax() {}
@@ -67,4 +67,3 @@ public:
}
-#endif