blob: 2abb8a2851bc547d8020991cf92e19c644399ff1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#ifndef MERT_MERGE_SCORER_H_
#define MERT_MERGE_SCORER_H_
#include <string>
#include <vector>
#include "StatisticsBasedScorer.h"
class PerScorer;
class ScoreStats;
const int kMergeScorerLength = 4;
/**
* Merge scoring.
*/
class MergeScorer: public StatisticsBasedScorer {
public:
explicit MergeScorer(const std::string& config = "");
~MergeScorer();
virtual void setReferenceFiles(const std::vector<std::string>& referenceFiles);
virtual void prepareStats(std::size_t sid, const std::string& text, ScoreStats& entry);
virtual std::size_t NumberOfScores() const { return 0; }
protected:
friend class PerScorer;
virtual float calculateScore(const std::vector<int>& comps) const;
private:
// no copying allowed
MergeScorer(const MergeScorer&);
MergeScorer& operator=(const MergeScorer&);
};
#endif // MERT_MERGE_SCORER_H_
|