diff options
author | jfouet <jfouet@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-05-15 18:04:42 +0400 |
---|---|---|
committer | jfouet <jfouet@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-05-15 18:04:42 +0400 |
commit | c66aec9e834cf1988ac9a13574f9f8d2e5df171b (patch) | |
tree | 5145ef9088171890e279e8234163a627d5949381 /mert/Point.cpp | |
parent | 94d47101cae71158754f6a9f0ef46ad9b58545cb (diff) |
implementation of the main
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1698 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'mert/Point.cpp')
-rw-r--r-- | mert/Point.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mert/Point.cpp b/mert/Point.cpp index a5f56a460..c1adbc13b 100644 --- a/mert/Point.cpp +++ b/mert/Point.cpp @@ -59,6 +59,13 @@ Point Point::operator*(float l)const{ return Res; }; + ostream& operator<<(ostream& o,const Point& P){ + vector<lambda> w=P.GetAllWeights(); + for(int i=0;i<Point::pdim;i++) + o<<w[i]<<' '; + o<<endl; + return o; +}; vector<lambda> Point::GetAllWeights()const{ vector<lambda> w; |