diff options
author | nicolabertoldi <nicolabertoldi@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-05-14 18:16:05 +0400 |
---|---|---|
committer | nicolabertoldi <nicolabertoldi@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-05-14 18:16:05 +0400 |
commit | 9202738527586ef1e5f603998b4537912b2788ac (patch) | |
tree | 319ff6f34ceac2d0b294f3e83685b719061b4674 /mert/FeatureArray.h | |
parent | 87efff7d66760ccf74b57eb9c6adb3d804670f86 (diff) |
support for mergin; other small changes
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1657 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'mert/FeatureArray.h')
-rw-r--r-- | mert/FeatureArray.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mert/FeatureArray.h b/mert/FeatureArray.h index db1fc3e15..62533c757 100644 --- a/mert/FeatureArray.h +++ b/mert/FeatureArray.h @@ -9,7 +9,7 @@ #ifndef FEATURE_ARRAY_H #define FEATURE_ARRAY_H -#define FEATURES_TXT_BEGIN "FEATURES_TXTB_BEGIN_0" +#define FEATURES_TXT_BEGIN "FEATURES_TXT_BEGIN_0" #define FEATURES_TXT_END "FEATURES_TXT_END_0" #define FEATURES_BIN_BEGIN "FEATURES_BIN_BEGIN_0" #define FEATURES_BIN_END "FEATURES_BIN_END_0" @@ -47,7 +47,9 @@ public: inline FeatureStats& get(int i){ return array_.at(i); } inline const FeatureStats& get(int i)const{ return array_.at(i); } void add(FeatureStats e){ array_.push_back(e); } - + + void merge(FeatureArray& e); + inline size_t size(){ return array_.size(); } inline size_t memsize(){ return bufLen_; } |