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 02:05:00 +0300
committerUlrich Germann <Ulrich.Germann@gmail.com>2015-12-10 02:05:00 +0300
commit240b88c6834c9c94e8a6448a34dc4ad33bdf3fbd (patch)
treee9f43dba3717e8a430557c16a1d6543a13628ddf /moses/Sentence.h
parentad5e27ae56298564dfd73637c160a682b5f5f028 (diff)
Passing around AllOptions or references thereto everywhere,
strong them locally where appropriate, so that compontents can become independent of StaticData once instantiated.
Diffstat (limited to 'moses/Sentence.h')
-rw-r--r--moses/Sentence.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/moses/Sentence.h b/moses/Sentence.h
index 518350d24..147cf43a2 100644
--- a/moses/Sentence.h
+++ b/moses/Sentence.h
@@ -63,9 +63,8 @@ protected:
std::vector<std::map<std::string,std::string> > m_dlt_meta;
public:
- Sentence();
- Sentence(size_t const transId, std::string const& stext,
- AllOptions const& opts,
+ Sentence(AllOptions::ptr const& opts);
+ 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();
@@ -117,8 +116,8 @@ public:
void
- init(std::string line, std::vector<FactorType> const& factorOrder,
- AllOptions const& opts);
+ init(AllOptions::ptr const& opts, std::string line,
+ std::vector<FactorType> const& factorOrder);
std::vector<std::map<std::string,std::string> > const&
GetDltMeta() const {