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:
authorUlrich Germann <Ulrich.Germann@gmail.com>2015-12-10 06:17:36 +0300
committerUlrich Germann <Ulrich.Germann@gmail.com>2015-12-10 06:17:36 +0300
commit831dc83778f4594375e9de6a4e2831a02b3e1314 (patch)
treefdeb1aa98f940a073d7d5e197ce58b67db0418d1 /moses/Sentence.h
parent240b88c6834c9c94e8a6448a34dc4ad33bdf3fbd (diff)
Code cleanup and refactoring.
Diffstat (limited to 'moses/Sentence.h')
-rw-r--r--moses/Sentence.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/moses/Sentence.h b/moses/Sentence.h
index 147cf43a2..219307218 100644
--- a/moses/Sentence.h
+++ b/moses/Sentence.h
@@ -64,8 +64,8 @@ protected:
public:
Sentence(AllOptions::ptr const& opts);
- Sentence(AllOptions::ptr const& opts, size_t const transId, std::string stext,
- std::vector<FactorType> const* IFO = NULL);
+ Sentence(AllOptions::ptr const& opts, size_t const transId, std::string stext);
+ // std::vector<FactorType> const* IFO = NULL);
// Sentence(size_t const transId, std::string const& stext);
~Sentence();
@@ -94,11 +94,11 @@ public:
//! populates vector argument with XML force translation options for the specific range passed
void GetXmlTranslationOptions(std::vector<TranslationOption*> &list) const;
void GetXmlTranslationOptions(std::vector<TranslationOption*> &list, size_t startPos, size_t endPos) const;
- std::vector<ChartTranslationOptions*> GetXmlChartTranslationOptions(AllOptions const& opts) const;
+ std::vector<ChartTranslationOptions*> GetXmlChartTranslationOptions() const;
virtual int
- Read(std::istream& in, const std::vector<FactorType>& factorOrder,
- AllOptions const& opts);
+ Read(std::istream& in);
+ // , const std::vector<FactorType>& factorOrder, AllOptions const& opts);
void Print(std::ostream& out) const;
@@ -115,9 +115,7 @@ public:
}
- void
- init(AllOptions::ptr const& opts, std::string line,
- std::vector<FactorType> const& factorOrder);
+ void init(std::string line);
std::vector<std::map<std::string,std::string> > const&
GetDltMeta() const {
@@ -139,7 +137,7 @@ private:
void
aux_interpret_xml
- (AllOptions const& opts, std::string& line, std::vector<size_t> & xmlWalls,
+ (std::string& line, std::vector<size_t> & xmlWalls,
std::vector<std::pair<size_t, std::string> >& placeholders);
void