From aa5f96417ff81408b15b54aab35a3c16b845adf8 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Mon, 29 Aug 2011 22:02:45 +0200 Subject: big update: working iterating, pretty output, test scripts and more --- dtrain/score.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'dtrain/score.h') diff --git a/dtrain/score.h b/dtrain/score.h index e9130e18..4314157b 100644 --- a/dtrain/score.h +++ b/dtrain/score.h @@ -29,6 +29,7 @@ struct ScorePair double GetScore() { return score_; } }; + typedef vector Scores; @@ -55,6 +56,14 @@ struct NgramCounts } } + const NgramCounts + operator+( const NgramCounts &other ) const + { + NgramCounts result = *this; + result += other; + return result; + } + void add( size_t count, size_t ref_count, size_t i ) { -- cgit v1.2.3