diff options
author | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-12-10 02:05:00 +0300 |
---|---|---|
committer | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-12-10 02:05:00 +0300 |
commit | 240b88c6834c9c94e8a6448a34dc4ad33bdf3fbd (patch) | |
tree | e9f43dba3717e8a430557c16a1d6543a13628ddf /moses/Sentence.h | |
parent | ad5e27ae56298564dfd73637c160a682b5f5f028 (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.h | 9 |
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 { |