/disk4/html/www/moses/doxygen/mosesdecoder/mert/BleuScorerTest.cpp File Reference

#include "BleuScorer.h"
#include <boost/test/unit_test.hpp>
#include <cmath>
#include "Ngram.h"
#include "Vocabulary.h"
#include "Util.h"

Go to the source code of this file.

Defines

#define BOOST_TEST_MODULE   MertBleuScorer

Functions

 BOOST_AUTO_TEST_CASE (bleu_reference_type)
 BOOST_AUTO_TEST_CASE (bleu_reference_type_with_config)
 BOOST_AUTO_TEST_CASE (bleu_count_ngrams)
 BOOST_AUTO_TEST_CASE (bleu_clipped_counts)
 BOOST_AUTO_TEST_CASE (calculate_actual_score)
 BOOST_AUTO_TEST_CASE (sentence_level_bleu)


Define Documentation

#define BOOST_TEST_MODULE   MertBleuScorer

Definition at line 3 of file BleuScorerTest.cpp.


Function Documentation

BOOST_AUTO_TEST_CASE ( sentence_level_bleu   ) 

Definition at line 263 of file BleuScorerTest.cpp.

References MosesTuning::kBleuNgramOrder, MosesTuning::smoothedSentenceBleu(), and Moses::stats.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( calculate_actual_score   ) 

Definition at line 235 of file BleuScorerTest.cpp.

References MosesTuning::BleuScorer::calculateScore(), MosesTuning::kBleuNgramOrder, and Moses::stats.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( bleu_clipped_counts   ) 

BOOST_AUTO_TEST_CASE ( bleu_count_ngrams   ) 

BOOST_AUTO_TEST_CASE ( bleu_reference_type_with_config   ) 

Definition at line 139 of file BleuScorerTest.cpp.

References MosesTuning::BleuScorer::GetReferenceLengthType().

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( bleu_reference_type   ) 

Definition at line 126 of file BleuScorerTest.cpp.

References MosesTuning::BleuScorer::GetReferenceLengthType(), and MosesTuning::BleuScorer::SetReferenceLengthType().

Here is the call graph for this function:


Generated on Thu Jul 6 00:31:26 2017 for Moses by  doxygen 1.5.9