diff options
author | Hieu Hoang <fishandfrolick@gmail.com> | 2012-06-24 06:51:48 +0400 |
---|---|---|
committer | Hieu Hoang <fishandfrolick@gmail.com> | 2012-06-24 06:51:48 +0400 |
commit | 0cb63edcb9335448166a7d77939835e75c03b3ff (patch) | |
tree | 9ce5a75c1420a6057fd188b8f1d527458928f17e /mert/PermutationScorer.cpp | |
parent | f48c3485080e4529ae62a3bdffce0a16b7704364 (diff) |
merge Lexi Birch's LRScore from mert_mtm5 branch. Compiles and run. Hack, must double check with barry or lexi
Diffstat (limited to 'mert/PermutationScorer.cpp')
-rw-r--r-- | mert/PermutationScorer.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/mert/PermutationScorer.cpp b/mert/PermutationScorer.cpp index a7dc21484..ca385e912 100644 --- a/mert/PermutationScorer.cpp +++ b/mert/PermutationScorer.cpp @@ -6,7 +6,7 @@ using namespace std; const int PermutationScorer::SCORE_PRECISION = 5; PermutationScorer::PermutationScorer(const string &distanceMetric, const string &config) - :SentenceLevelScorer(distanceMetric,config) + :StatisticsBasedScorer(distanceMetric,config) { //configure regularisation @@ -206,14 +206,8 @@ void PermutationScorer::prepareStats(size_t sid, const string& text, ScoreStats& //cout << tempStream.str(); } -void PermutationScorer::score(const candidates_t& candidates, const diffs_t& diffs, - statscores_t& scores) const -{ - assert(false); -} - //Will just be final score -statscore_t PermutationScorer::calculateScore(const vector<statscore_t>& comps) +statscore_t PermutationScorer::calculateScore(const vector<int>& comps) const { //cerr << "*******PermutationScorer::calculateScore" ; //cerr << " " << comps[0] << endl; |