diff options
author | Michael Denkowski <mdenkows@amazon.com> | 2016-06-24 02:40:28 +0300 |
---|---|---|
committer | Michael Denkowski <mdenkows@amazon.com> | 2016-08-12 13:05:12 +0300 |
commit | d29916bbb3973b18acd80b1ef19841399f7247b0 (patch) | |
tree | 2926cd2cdcc1d0130d69ae8944c9a9d342e47fb7 /moses/InputType.h | |
parent | 5c2b8d843c273ac27462e9522f9f67cdaa1f2959 (diff) |
Roll back to just tracking coordinates in mmsapt
(distance wants to be a separate FF)
Diffstat (limited to 'moses/InputType.h')
-rw-r--r-- | moses/InputType.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/moses/InputType.h b/moses/InputType.h index 30b86180d..e2dce5147 100644 --- a/moses/InputType.h +++ b/moses/InputType.h @@ -68,8 +68,13 @@ public: size_t m_frontSpanCoveredLength; // how many words from the beginning are covered - // coordinates in some space, populated by xml tag "coord" - boost::shared_ptr<std::vector<float> > m_coord; + // Coordinates in user-defined spaces, indexed by phrase dictionary pointer + // Looking up PD* returns a vector of the input's coordinates in each space + // known to the PD, in order (vector of pointers to float vectors). This + // allows different models to use different subsets of all named spaces. + typedef std::vector<boost::shared_ptr<std::vector<float> > > INCOORD; + typedef std::map<PhraseDictionary const*, INCOORD> PD2IC; + boost::shared_ptr<PD2IC> m_pd2InputCoord; InputType(AllOptions::ptr const& opts, long translationId = 0); virtual ~InputType(); |