diff options
author | nicolabertoldi <nicolabertoldi@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-05-27 20:50:52 +0400 |
---|---|---|
committer | nicolabertoldi <nicolabertoldi@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-05-27 20:50:52 +0400 |
commit | 291260abf74ed3fe0c9218465cff6e658d0a1b23 (patch) | |
tree | 474b29cf0ba2b37c5ed41b4c805a85121362a3a7 /mert/Point.h | |
parent | 89194be5ebb641072795d9e949312002ac6262e6 (diff) |
- made output more compliant with old version
- added PerSCorer.h and BleuScorer.h
- stored feature names
- fixed bug about output of best Point
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1796 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'mert/Point.h')
-rw-r--r-- | mert/Point.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mert/Point.h b/mert/Point.h index ac6dd6ccb..00dc7968f 100644 --- a/mert/Point.h +++ b/mert/Point.h @@ -36,7 +36,9 @@ class Point:public vector<parameter_t>{ Point operator*(float)const; /**write the Whole featureweight to a stream (ie pdim float)*/ friend ostream& operator<<(ostream& o,const Point& P); - void Normalize(); + void Normalize(){ NormalizeL2(); }; + void NormalizeL2(); + void NormalizeL1(); /**return a vector of size pdim where all weights have been put(including fixed ones)*/ vector<parameter_t> GetAllWeights()const; statscore_t GetScore()const { return score; }; |