diff options
author | Patrick Simianer <p@simianer.de> | 2011-08-29 22:02:45 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2011-09-23 19:13:58 +0200 |
commit | aa5f96417ff81408b15b54aab35a3c16b845adf8 (patch) | |
tree | cb9715696bf11d095215a97e299e22fed940ec02 /dtrain/score.h | |
parent | 7a562c98d69abfe9ec921f37828f827f44d5dc82 (diff) |
big update: working iterating, pretty output, test scripts and more
Diffstat (limited to 'dtrain/score.h')
-rw-r--r-- | dtrain/score.h | 9 |
1 files changed, 9 insertions, 0 deletions
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<ScorePair> 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 ) { |