MosesTuning::Reference Class Reference

#include <Reference.h>

Collaboration diagram for MosesTuning::Reference:

Collaboration graph
[legend]

List of all members.

Public Types

typedef std::vector
< std::size_t >::iterator 
iterator
typedef std::vector
< std::size_t >
::const_iterator 
const_iterator

Public Member Functions

 Reference ()
 ~Reference ()
NgramCountsget_counts ()
const NgramCountsget_counts () const
iterator begin ()
const_iterator begin () const
iterator end ()
const_iterator end () const
void push_back (std::size_t len)
std::size_t num_references () const
int CalcAverage () const
int CalcClosest (std::size_t length) const
int CalcShortest () const
void clear ()


Detailed Description

Reference class represents reference translations for an output translation used in calculating BLEU score.

Definition at line 18 of file Reference.h.


Member Typedef Documentation

typedef std::vector<std::size_t>::const_iterator MosesTuning::Reference::const_iterator

Definition at line 23 of file Reference.h.

typedef std::vector<std::size_t>::iterator MosesTuning::Reference::iterator

Definition at line 22 of file Reference.h.


Constructor & Destructor Documentation

MosesTuning::Reference::Reference (  )  [inline]

Definition at line 25 of file Reference.h.

MosesTuning::Reference::~Reference (  )  [inline]

Definition at line 26 of file Reference.h.


Member Function Documentation

const_iterator MosesTuning::Reference::begin (  )  const [inline]

Definition at line 40 of file Reference.h.

iterator MosesTuning::Reference::begin (  )  [inline]

Definition at line 37 of file Reference.h.

Referenced by BOOST_AUTO_TEST_CASE().

Here is the caller graph for this function:

int MosesTuning::Reference::CalcAverage (  )  const [inline]

Definition at line 76 of file Reference.h.

Referenced by BOOST_AUTO_TEST_CASE(), and MosesTuning::BleuScorer::CalcReferenceLength().

Here is the caller graph for this function:

int MosesTuning::Reference::CalcClosest ( std::size_t  length  )  const [inline]

Definition at line 86 of file Reference.h.

Referenced by BOOST_AUTO_TEST_CASE(), and MosesTuning::BleuScorer::CalcReferenceLength().

Here is the caller graph for this function:

int MosesTuning::Reference::CalcShortest (  )  const [inline]

Definition at line 108 of file Reference.h.

References min_element().

Referenced by BOOST_AUTO_TEST_CASE(), and MosesTuning::BleuScorer::CalcReferenceLength().

Here is the call graph for this function:

Here is the caller graph for this function:

void MosesTuning::Reference::clear (  )  [inline]

Definition at line 62 of file Reference.h.

References MosesTuning::NgramCounts::clear().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

const_iterator MosesTuning::Reference::end (  )  const [inline]

Definition at line 46 of file Reference.h.

iterator MosesTuning::Reference::end (  )  [inline]

Definition at line 43 of file Reference.h.

Referenced by BOOST_AUTO_TEST_CASE().

Here is the caller graph for this function:

const NgramCounts* MosesTuning::Reference::get_counts (  )  const [inline]

Definition at line 33 of file Reference.h.

NgramCounts* MosesTuning::Reference::get_counts (  )  [inline]

Definition at line 30 of file Reference.h.

Referenced by BOOST_AUTO_TEST_CASE(), MosesTuning::BleuScorer::CalcBleuStats(), and MosesTuning::BleuScorer::ProcessReferenceLine().

Here is the caller graph for this function:

std::size_t MosesTuning::Reference::num_references (  )  const [inline]

Definition at line 54 of file Reference.h.

Referenced by BOOST_AUTO_TEST_CASE().

Here is the caller graph for this function:

void MosesTuning::Reference::push_back ( std::size_t  len  )  [inline]

Definition at line 50 of file Reference.h.

Referenced by BOOST_AUTO_TEST_CASE(), and MosesTuning::BleuScorer::ProcessReferenceLine().

Here is the caller graph for this function:


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

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