MosesTuning::BleuDocScorer Class Reference

#include <BleuDocScorer.h>

Inheritance diagram for MosesTuning::BleuDocScorer:

Inheritance graph
Collaboration diagram for MosesTuning::BleuDocScorer:

Collaboration graph

List of all members.

Public Member Functions

 BleuDocScorer (const std::string &config="")
 ~BleuDocScorer ()
virtual void prepareStats (std::size_t sid, const std::string &text, ScoreStats &entry)
virtual statscore_t calculateScore (const std::vector< int > &comps) const
int CalcReferenceLength (std::size_t doc_id, std::size_t sentence_id, std::size_t length)
virtual bool OpenReferenceStream (std::istream *is, std::size_t file_id)

Detailed Description

Bleu document scoring

Needs xml reference files, and nbest lists where sentences are separated by '

Definition at line 21 of file BleuDocScorer.h.

Constructor & Destructor Documentation

MosesTuning::BleuDocScorer::BleuDocScorer ( const std::string &  config = ""  )  [explicit]

MosesTuning::BleuDocScorer::~BleuDocScorer (  ) 

Definition at line 58 of file BleuDocScorer.cpp.

Member Function Documentation

int MosesTuning::BleuDocScorer::CalcReferenceLength ( std::size_t  doc_id,
std::size_t  sentence_id,
std::size_t  length 

virtual statscore_t MosesTuning::BleuDocScorer::calculateScore ( const std::vector< int > &  comps  )  const [virtual]

virtual bool MosesTuning::BleuDocScorer::OpenReferenceStream ( std::istream *  is,
std::size_t  file_id 
) [virtual]

Reimplemented from MosesTuning::BleuScorer.

virtual void MosesTuning::BleuDocScorer::prepareStats ( std::size_t  sindex,
const std::string &  text,
ScoreStats entry 
) [virtual]

Process the given guessed text, corresponding to the given reference sindex and add the appropriate statistics to the entry.

Reimplemented from MosesTuning::BleuScorer.

The documentation for this class was generated from the following files:

Generated on Thu Jul 6 00:34:13 2017 for Moses by  doxygen 1.5.9