mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
mert now compiles with PermScorer. However, didn't implement score() - assert(false). Update Jamfile
This commit is contained in:
parent
7d19fe13ae
commit
b1ca36387f
@ -45,6 +45,9 @@ CderScorer.cpp
|
||||
MergeScorer.cpp
|
||||
Vocabulary.cpp
|
||||
PreProcessFilter.cpp
|
||||
SentenceLevelScorer.cpp
|
||||
Permutation.cpp
|
||||
PermutationScorer.cpp
|
||||
../util//kenutil m ..//z ;
|
||||
|
||||
exe mert : mert.cpp mert_lib ../moses/src//ThreadPool ;
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <cassert>
|
||||
#include "PermutationScorer.h"
|
||||
|
||||
using namespace std;
|
||||
@ -205,6 +206,12 @@ 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)
|
||||
{
|
||||
|
@ -39,6 +39,9 @@ public:
|
||||
return true;
|
||||
};
|
||||
|
||||
void score(const candidates_t& candidates, const diffs_t& diffs,
|
||||
statscores_t& scores) const;
|
||||
|
||||
protected:
|
||||
statscore_t calculateScore(const std::vector<statscore_t>& scores);
|
||||
PermutationScorer(const PermutationScorer&);
|
||||
|
Loading…
Reference in New Issue
Block a user