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:
authorMichael Denkowski <mdenkows@amazon.com>2016-08-08 17:33:24 +0300
committerMichael Denkowski <mdenkows@amazon.com>2016-08-12 13:05:12 +0300
commitae1e51d81ad450f7ee497386eea16ebe3792f68b (patch)
treebaa538edd1b5b92bb7e08e3ece5a1face44483d5 /moses/InputType.h
parentd29916bbb3973b18acd80b1ef19841399f7247b0 (diff)
Support storing coordinates of target phrase
- Keep track of named spaces in StaticData - Adding coords to phrases implemented for Mmsapt
Diffstat (limited to 'moses/InputType.h')
-rw-r--r--moses/InputType.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/moses/InputType.h b/moses/InputType.h
index e2dce5147..ce25cbc96 100644
--- a/moses/InputType.h
+++ b/moses/InputType.h
@@ -68,13 +68,8 @@ public:
size_t m_frontSpanCoveredLength;
// how many words from the beginning are covered
- // 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;
+ // Coordinates in user-defined spaces (see "coord" XML tag)
+ SPTR<std::map<size_t const, std::vector<float> > > m_coordMap;
InputType(AllOptions::ptr const& opts, long translationId = 0);
virtual ~InputType();