mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
Mira works with BLEU and WER both
This commit is contained in:
parent
a31fe2e80c
commit
85dca3a4da
@ -31,6 +31,10 @@ public:
|
||||
|
||||
virtual float calculateScore(const std::vector<ScoreStatsType>& comps) const;
|
||||
|
||||
virtual float getReferenceLength(const std::vector<ScoreStatsType>& totals) const{
|
||||
return totals[1];
|
||||
}
|
||||
|
||||
private:
|
||||
bool m_allowed_long_jumps;
|
||||
|
||||
|
@ -44,10 +44,11 @@ protected:
|
||||
*/
|
||||
virtual statscore_t calculateScore(const std::vector<ScoreStatsType>& totals) const = 0;
|
||||
|
||||
virtual float getReferenceLength(const std::vector<ScoreStatsType>& totals) const {
|
||||
UTIL_THROW(util::Exception, "getReferenceLength not implemented for this scorer type.");
|
||||
return 0;
|
||||
}
|
||||
virtual float getReferenceLength(const std::vector<ScoreStatsType>& totals) const{}
|
||||
// {
|
||||
// UTIL_THROW(util::Exception, "getReferenceLength not implemented for this scorer type.");
|
||||
// return 0;
|
||||
// }
|
||||
|
||||
// regularisation
|
||||
RegularisationType m_regularization_type;
|
||||
|
Loading…
Reference in New Issue
Block a user