MosesTuning Namespace Reference


Namespaces

namespace  M2

Classes

class  BleuDocScorer
class  BleuScorer
class  CderScorer
class  Data
class  FeatureArray
class  FeatureData
class  FileFormatException
class  FeatureDataItem
class  FeatureDataIterator
class  SparseVector
class  FeatureStats
struct  NgramHash
struct  NgramEquals
class  ReferenceSet
struct  VertexState
class  HgBleuScorer
struct  HgHypothesis
struct  HopeFearData
class  HopeFearDecoder
class  NbestHopeFearDecoder
class  HypergraphHopeFearDecoder
class  HwcmScorer
class  FixedAllocator
class  Vocab
class  Edge
class  Vertex
class  Graph
class  HypergraphException
class  HypPackEnumerator
class  StreamingHypPackEnumerator
class  RandomAccessHypPackEnumerator
class  InternalTree
class  InterpolatedScorer
class  M2Scorer
class  MeteorScorer
class  MiraFeatureVector
class  MiraWeightVector
class  AvgWeightVector
class  NgramCounts
class  Optimizer
class  SimpleOptimizer
class  RandomDirectionOptimizer
class  RandomOptimizer
class  OptimizerFactory
class  Permutation
class  PermutationScorer
class  PerScorer
class  Point
class  SampledPair
class  Reference
class  ScopedVector
class  ScoreArray
class  ScoreData
class  ScoreDataIterator
class  Scorer
class  ScorerFactory
class  ScoreStats
class  SemposOverlapping
class  SemposOverlappingFactory
class  CapMicroOverlapping
class  CapMacroOverlapping
class  SemposScorer
class  SentenceLevelScorer
class  Singleton
class  StatisticsBasedScorer
class  TerScorer
class  Timer

Typedefs

typedef boost::shared_ptr
< ScoreData
ScoreDataHandle
typedef boost::shared_ptr
< FeatureData
FeatureDataHandle
typedef pair< const Edge
*, FeatureStatsType
BackPointer
typedef boost::unordered_map
< WordVec, size_t, NgramHash,
NgramEquals
NgramCounter
typedef unsigned int WordIndex
typedef std::vector< const
Vocab::Entry * > 
WordVec
typedef boost::shared_ptr
< SparseVector
FeaturePtr
typedef boost::shared_ptr
< InternalTree
TreePointer
typedef int NTLabel
typedef FeatureStatsType ValType
typedef std::vector< float > ScoreDataItem
typedef std::pair< std::string,
std::string > 
str_item_t
typedef std::vector< str_item_tstr_sentence_t
typedef
str_sentence_t::const_iterator 
str_sentence_it
typedef std::pair< int, int > item_t
typedef std::multiset< item_tsentence_t
typedef sentence_t::const_iterator sentence_it
typedef float parameter_t
typedef std::vector< std::pair
< unsigned int, unsigned int > > 
diff_t
typedef std::pair< float, diff_tthreshold
typedef std::vector< diff_tdiffs_t
typedef std::vector< unsigned int > candidates_t
typedef float statscore_t
typedef std::vector< statscore_tstatscores_t
typedef float FeatureStatsType
typedef FeatureStatsTypefeatstats_t
typedef std::vector< FeatureStatsfeatarray_t
typedef std::vector< FeatureArrayfeatdata_t
typedef float ScoreStatsType
typedef ScoreStatsTypescorestats_t
typedef std::vector< ScoreStatsscorearray_t
typedef std::vector< ScoreArrayscoredata_t
typedef std::map< std::size_t,
int > 
idx2name
typedef std::map< int,
std::size_t > 
name2idx

Enumerations

enum  ScorerRegularisationStrategy { REG_NONE, REG_AVERAGE, REG_MINIMUM }
enum  distanceMetric_t { HAMMING_DISTANCE = 0, KENDALL_DISTANCE }
enum  distanceMetricReferenceChoice_t { REFERENCE_CHOICE_AVERAGE = 0, REFERENCE_CHOICE_CLOSEST }

Functions

float smoothedSentenceBleu (const std::vector< float > &stats, float smoothing, bool smoothBP)
float sentenceLevelBackgroundBleu (const std::vector< float > &sent, const std::vector< float > &bg)
int ParseInt (const StringPiece &str)
float ParseFloat (const StringPiece &str)
bool operator== (FeatureDataItem const &item1, FeatureDataItem const &item2)
size_t hash_value (FeatureDataItem const &item)
SparseVector operator- (const SparseVector &lhs, const SparseVector &rhs)
FeatureStatsType inner_product (const SparseVector &lhs, const SparseVector &rhs)
bool operator== (SparseVector const &item1, SparseVector const &item2)
std::size_t hash_value (SparseVector const &item)
ostream & operator<< (ostream &o, const FeatureStats &e)
bool operator== (const FeatureStats &f1, const FeatureStats &f2)
std::ostream & operator<< (std::ostream &out, const WordVec &wordVec)
void Viterbi (const Graph &graph, const SparseVector &weights, float bleuWeight, const ReferenceSet &references, size_t sentenceId, const std::vector< FeatureStatsType > &backgroundBleu, HgHypothesis *bestHypo)
std::pair< MiraWeightVector
*, size_t > 
InitialiseWeights (const string &denseInitFile, const string &sparseInitFile, const string &type, bool verbose)
std::pair< MiraWeightVector
*, size_t > 
InitialiseWeights (const std::string &denseInitFile, const std::string &sparseInitFile, const std::string &type, bool verbose)
StringPiece NextLine (util::FilePiece &from)
void ReadGraph (util::FilePiece &from, Graph &graph)
 $generator (leafNT)
std::vector< ScoreStatsTyperandomStats (float decay, int max)
float sentenceM2 (const std::vector< ScoreStatsType > &stats)
MiraFeatureVector operator- (const MiraFeatureVector &a, const MiraFeatureVector &b)
bool operator== (const MiraFeatureVector &a, const MiraFeatureVector &b)
ostream & operator<< (ostream &o, const MiraFeatureVector &e)
ostream & operator<< (ostream &o, const MiraWeightVector &e)
map< float, diff_t >::iterator AddThreshold (map< float, diff_t > &thresholdmap, float newt, const pair< unsigned, unsigned > &newdiff)
ostream & operator<< (ostream &o, const Point &P)
ostream & operator<< (ostream &o, const ScoreStats &e)
bool operator== (const ScoreStats &s1, const ScoreStats &s2)
std::ostream & operator<< (std::ostream &os, const Timer &t)
int verboselevel ()
int setverboselevel (int v)
size_t getNextPound (std::string &str, std::string &substr, const std::string &delimiter)
void split (const std::string &s, char delim, std::vector< std::string > &elems)
void Tokenize (const char *str, const char delim, std::vector< std::string > *res)
void ResetUserTime ()
void PrintUserTime (const std::string &message)
double GetUserTime ()
template<typename T >
bool IsAlmostEqual (T expected, T actual, float round=kEPS)
template<typename T >
T Scan (const std::string &input)
bool EndsWith (const std::string &str, const char *suffix)
template<typename T >
std::string stringify (T x)
ScoreStatsType ConvertCharToScoreStatsType (const char *str)
ScoreStatsType ConvertStringToScoreStatsType (const std::string &str)
FeatureStatsType ConvertCharToFeatureStatsType (const char *str)
FeatureStatsType ConvertStringToFeatureStatsType (const std::string &str)
std::string trimStr (const std::string &Src, const std::string &c=" \r\n")

Variables

const size_t kBleuNgramOrder = 4
const char FEATURES_TXT_BEGIN [] = "FEATURES_TXT_BEGIN_0"
const char FEATURES_TXT_END [] = "FEATURES_TXT_END_0"
const char FEATURES_BIN_BEGIN [] = "FEATURES_BIN_BEGIN_0"
const char FEATURES_BIN_END [] = "FEATURES_BIN_END_0"
const size_t kHwcmOrder = 4
double_conversion::StringToDoubleConverter converter (double_conversion::StringToDoubleConverter::NO_FLAGS, NAN, NAN,"inf","nan")
const WordIndex kMaxWordIndex = UINT_MAX
const FeatureStatsType kMinScore = -1e10
const char SCORES_TXT_BEGIN [] = "SCORES_TXT_BEGIN_0"
const char SCORES_TXT_END [] = "SCORES_TXT_END_0"
const char SCORES_BIN_BEGIN [] = "SCORES_BIN_BEGIN_0"
const char SCORES_BIN_END [] = "SCORES_BIN_END_0"
const int kMaxNOC = 50
const char kDefaultDelimiterSymbol [] = " "
const float kEPS = 0.0001f

Typedef Documentation

Definition at line 319 of file ForestRescore.cpp.

typedef std::vector<unsigned int> MosesTuning::candidates_t

Definition at line 24 of file Types.h.

typedef std::vector<std::pair<unsigned int, unsigned int> > MosesTuning::diff_t

Definition at line 21 of file Types.h.

typedef std::vector<diff_t> MosesTuning::diffs_t

Definition at line 23 of file Types.h.

typedef std::vector<FeatureStats> MosesTuning::featarray_t

Definition at line 33 of file Types.h.

typedef std::vector<FeatureArray> MosesTuning::featdata_t

Definition at line 34 of file Types.h.

Definition at line 31 of file Types.h.

typedef boost::shared_ptr<FeatureData> MosesTuning::FeatureDataHandle

Definition at line 25 of file Data.h.

typedef boost::shared_ptr<SparseVector> MosesTuning::FeaturePtr

Definition at line 127 of file Hypergraph.h.

Definition at line 30 of file Types.h.

typedef std::map<std::size_t, int> MosesTuning::idx2name

Definition at line 42 of file Types.h.

typedef std::pair<int,int> MosesTuning::item_t

Definition at line 25 of file SemposOverlapping.h.

typedef std::map<int, std::size_t> MosesTuning::name2idx

Definition at line 43 of file Types.h.

typedef boost::unordered_map<WordVec, size_t, NgramHash, NgramEquals> MosesTuning::NgramCounter

Definition at line 48 of file ForestRescore.h.

typedef int MosesTuning::NTLabel

Definition at line 17 of file InternalTree.h.

typedef float MosesTuning::parameter_t

Definition at line 17 of file Types.h.

typedef std::vector<ScoreStats> MosesTuning::scorearray_t

Definition at line 39 of file Types.h.

typedef std::vector<ScoreArray> MosesTuning::scoredata_t

Definition at line 40 of file Types.h.

typedef boost::shared_ptr<ScoreData> MosesTuning::ScoreDataHandle

Definition at line 22 of file Data.h.

typedef std::vector<float> MosesTuning::ScoreDataItem

Definition at line 45 of file ScoreDataIterator.h.

Definition at line 37 of file Types.h.

Definition at line 36 of file Types.h.

typedef sentence_t::const_iterator MosesTuning::sentence_it

Definition at line 27 of file SemposOverlapping.h.

typedef std::multiset<item_t> MosesTuning::sentence_t

Definition at line 26 of file SemposOverlapping.h.

typedef float MosesTuning::statscore_t

Definition at line 26 of file Types.h.

typedef std::vector<statscore_t> MosesTuning::statscores_t

Definition at line 27 of file Types.h.

typedef std::pair<std::string, std::string> MosesTuning::str_item_t

Definition at line 21 of file SemposOverlapping.h.

typedef str_sentence_t::const_iterator MosesTuning::str_sentence_it

Definition at line 23 of file SemposOverlapping.h.

Definition at line 22 of file SemposOverlapping.h.

typedef std::pair<float,diff_t > MosesTuning::threshold

Definition at line 22 of file Types.h.

typedef boost::shared_ptr<InternalTree> MosesTuning::TreePointer

Definition at line 15 of file InternalTree.h.

Definition at line 24 of file MiraFeatureVector.h.

typedef unsigned int MosesTuning::WordIndex

Definition at line 43 of file Hypergraph.h.

typedef std::vector<const Vocab::Entry*> MosesTuning::WordVec

Definition at line 125 of file Hypergraph.h.


Enumeration Type Documentation

Enumerator:
HAMMING_DISTANCE 
KENDALL_DISTANCE 

Definition at line 45 of file Types.h.

Enumerator:
REFERENCE_CHOICE_AVERAGE 
REFERENCE_CHOICE_CLOSEST 

Definition at line 46 of file Types.h.

Enumerator:
REG_NONE 
REG_AVERAGE 
REG_MINIMUM 

Definition at line 25 of file Scorer.h.


Function Documentation

MosesTuning::$generator ( leafNT   ) 

Definition at line 59 of file InternalTree.h.

References MosesTuning::InternalTree::GetChildren().

Here is the call graph for this function:

map<float,diff_t >::iterator MosesTuning::AddThreshold ( map< float, diff_t > &  thresholdmap,
float  newt,
const pair< unsigned, unsigned > &  newdiff 
)

Definition at line 74 of file Optimizer.cpp.

References UTIL_THROW_IF.

Referenced by MosesTuning::Optimizer::LineOptimize().

Here is the caller graph for this function:

FeatureStatsType MosesTuning::ConvertCharToFeatureStatsType ( const char *  str  )  [inline]

Definition at line 123 of file Util.h.

Referenced by ConvertStringToFeatureStatsType().

Here is the caller graph for this function:

ScoreStatsType MosesTuning::ConvertCharToScoreStatsType ( const char *  str  )  [inline]

Definition at line 113 of file Util.h.

Referenced by ConvertStringToScoreStatsType().

Here is the caller graph for this function:

FeatureStatsType MosesTuning::ConvertStringToFeatureStatsType ( const std::string &  str  )  [inline]

Definition at line 128 of file Util.h.

References ConvertCharToFeatureStatsType().

Here is the call graph for this function:

ScoreStatsType MosesTuning::ConvertStringToScoreStatsType ( const std::string &  str  )  [inline]

Definition at line 118 of file Util.h.

References ConvertCharToScoreStatsType().

Here is the call graph for this function:

bool MosesTuning::EndsWith ( const std::string &  str,
const char *  suffix 
) [inline]

Returns true iff "str" ends with "suffix". e.g., Given str = "abc:" and suffix = ":", this function returns true.

Definition at line 99 of file Util.h.

Referenced by BOOST_AUTO_TEST_CASE().

Here is the caller graph for this function:

size_t MosesTuning::getNextPound ( std::string &  str,
std::string &  substr,
const std::string &  delimiter = kDefaultDelimiterSymbol 
)

Find the specified delimiter for the string 'str', and 'str' is assigned to a substring object that starts at the position of first occurrence of the delimiter in 'str'. 'substr' is copied from 'str' ranging from the start position of 'str' to the position of first occurrence of the delimiter.

It returns the position of first occurrence in the queried string. If the content is not found, std::string::npos is returned.

Definition at line 42 of file Util.cpp.

Referenced by BOOST_AUTO_TEST_CASE(), and main().

Here is the caller graph for this function:

double MosesTuning::GetUserTime (  ) 

Total wall time that the global timer has been in the "running" state since it was first "started".

Definition at line 91 of file Util.cpp.

References Moses::g_timer, MosesTuning::Timer::get_elapsed_cpu_time(), and Moses::Timer::get_elapsed_time().

Here is the call graph for this function:

std::size_t MosesTuning::hash_value ( SparseVector const &  item  ) 

Definition at line 184 of file FeatureStats.cpp.

References util::MurmurHashNative().

Here is the call graph for this function:

std::size_t MosesTuning::hash_value ( FeatureDataItem const &  item  ) 

std::pair<MiraWeightVector*,size_t> MosesTuning::InitialiseWeights ( const std::string &  denseInitFile,
const std::string &  sparseInitFile,
const std::string &  type,
bool  verbose 
)

Initialise weights from files. Returns weight vector and number of dense features

std::pair<MiraWeightVector*,size_t> MosesTuning::InitialiseWeights ( const string &  denseInitFile,
const string &  sparseInitFile,
const string &  type,
bool  verbose 
)

Definition at line 43 of file HopeFearDecoder.cpp.

References MosesTuning::SparseVector::encode(), and UTIL_THROW_IF.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

FeatureStatsType MosesTuning::inner_product ( const SparseVector &  lhs,
const SparseVector &  rhs 
)

Definition at line 139 of file FeatureStats.cpp.

References MosesTuning::SparseVector::inner_product(), and MosesTuning::SparseVector::size().

Referenced by MosesTuning::Edge::GetScore().

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename T >
bool MosesTuning::IsAlmostEqual ( T  expected,
T  actual,
float  round = kEPS 
) [inline]

Definition at line 52 of file Util.h.

Referenced by BOOST_AUTO_TEST_CASE().

Here is the caller graph for this function:

StringPiece MosesTuning::NextLine ( util::FilePiece from  ) 

Definition at line 37 of file Hypergraph.cpp.

References util::FilePiece::ReadLine(), and starts_with().

Referenced by ReadGraph().

Here is the call graph for this function:

Here is the caller graph for this function:

MiraFeatureVector MosesTuning::operator- ( const MiraFeatureVector &  a,
const MiraFeatureVector &  b 
)

Definition at line 110 of file MiraFeatureVector.cpp.

SparseVector MosesTuning::operator- ( const SparseVector &  lhs,
const SparseVector &  rhs 
)

Definition at line 132 of file FeatureStats.cpp.

std::ostream& MosesTuning::operator<< ( std::ostream &  os,
const Timer t 
) [inline]

Allow timers to be printed to ostreams using the syntax 'os << t' for an ostream 'os' and a timer 't'. For example, "cout << t" will print out the total amount of time 't' has been "running".

Definition at line 102 of file Timer.h.

References MosesTuning::Timer::is_running(), and MosesTuning::Timer::ToString().

Here is the call graph for this function:

ostream& MosesTuning::operator<< ( ostream &  o,
const ScoreStats &  e 
)

Definition at line 136 of file ScoreStats.cpp.

References MosesTuning::ScoreStats::get(), and MosesTuning::ScoreStats::size().

Here is the call graph for this function:

ostream& MosesTuning::operator<< ( ostream &  o,
const Point &  P 
)

Definition at line 114 of file Point.cpp.

References MosesTuning::Point::GetAllWeights().

Here is the call graph for this function:

ostream& MosesTuning::operator<< ( ostream &  o,
const MiraWeightVector &  e 
)

Definition at line 144 of file MiraWeightVector.cpp.

ostream& MosesTuning::operator<< ( ostream &  o,
const MiraFeatureVector &  e 
)

Definition at line 185 of file MiraFeatureVector.cpp.

References MosesTuning::MiraFeatureVector::feat(), MosesTuning::MiraFeatureVector::size(), and MosesTuning::MiraFeatureVector::val().

Here is the call graph for this function:

std::ostream & MosesTuning::operator<< ( std::ostream &  out,
const WordVec &  wordVec 
)

Definition at line 37 of file ForestRescore.cpp.

ostream& MosesTuning::operator<< ( ostream &  o,
const FeatureStats &  e 
)

bool MosesTuning::operator== ( const ScoreStats &  s1,
const ScoreStats &  s2 
)

Definition at line 143 of file ScoreStats.cpp.

References MosesTuning::ScoreStats::get(), k, and MosesTuning::ScoreStats::size().

Here is the call graph for this function:

bool MosesTuning::operator== ( const MiraFeatureVector &  a,
const MiraFeatureVector &  b 
)

Definition at line 168 of file MiraFeatureVector.cpp.

bool MosesTuning::operator== ( const FeatureStats &  f1,
const FeatureStats &  f2 
)

Definition at line 339 of file FeatureStats.cpp.

References MosesTuning::FeatureStats::get(), k, and MosesTuning::FeatureStats::size().

Here is the call graph for this function:

bool MosesTuning::operator== ( SparseVector const &  item1,
SparseVector const &  item2 
)

Definition at line 178 of file FeatureStats.cpp.

bool MosesTuning::operator== ( FeatureDataItem const &  item1,
FeatureDataItem const &  item2 
)

float MosesTuning::ParseFloat ( const StringPiece str  ) 

Assumes a delimiter, so only apply to tokens

Definition at line 48 of file FeatureDataIterator.cpp.

References StringPiece::data().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int MosesTuning::ParseInt ( const StringPiece str  ) 

Assumes a delimiter, so only apply to tokens

Definition at line 37 of file FeatureDataIterator.cpp.

References StringPiece::data().

Here is the call graph for this function:

void MosesTuning::PrintUserTime ( const std::string &  message  ) 

Print out an optional message followed by the current global timer timing.

Definition at line 86 of file Util.cpp.

References MosesTuning::Timer::check(), Moses::Timer::check(), and Moses::g_timer.

Here is the call graph for this function:

std::vector<ScoreStatsType> MosesTuning::randomStats ( float  decay,
int  max 
)

Definition at line 86 of file M2Scorer.cpp.

References util::rand(), and Moses::stats.

Here is the call graph for this function:

void MosesTuning::ReadGraph ( util::FilePiece from,
Graph &  graph 
)

Read from "Kenneth's hypergraph" aka cdec target_graph format (with comments)

Definition at line 292 of file Hypergraph.cpp.

References StringPiece::compare(), MosesTuning::Graph::NewVertex(), NextLine(), util::FilePiece::ReadLine(), MosesTuning::Graph::SetCounts(), and UTIL_THROW_IF.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void MosesTuning::ResetUserTime (  ) 

Start global timer.

Definition at line 81 of file Util.cpp.

References Moses::g_timer, MosesTuning::Timer::start(), and Moses::Timer::start().

Here is the call graph for this function:

template<typename T >
T MosesTuning::Scan ( const std::string &  input  )  [inline]

Definition at line 87 of file Util.h.

References T.

float MosesTuning::sentenceLevelBackgroundBleu ( const std::vector< float > &  sent,
const std::vector< float > &  bg 
)

Computes sentence-level BLEU score given a background corpus. This function is used in batch MIRA.

Definition at line 275 of file BleuScorer.cpp.

References Moses::stats, and UTIL_THROW_IF.

float MosesTuning::sentenceM2 ( const std::vector< ScoreStatsType > &  stats  ) 

Definition at line 105 of file M2Scorer.cpp.

int MosesTuning::setverboselevel ( int  v  ) 

Definition at line 36 of file Util.cpp.

float MosesTuning::smoothedSentenceBleu ( const std::vector< float > &  stats,
float  smoothing = 1.0,
bool  smoothBP = false 
)

Computes sentence-level BLEU+1 score. This function is used in PRO.

Definition at line 256 of file BleuScorer.cpp.

References UTIL_THROW_IF.

Referenced by BOOST_AUTO_TEST_CASE(), and main().

Here is the caller graph for this function:

void MosesTuning::split ( const std::string &  s,
char  delim,
std::vector< std::string > &  elems 
)

template<typename T >
std::string MosesTuning::stringify ( T  x  )  [inline]

Definition at line 105 of file Util.h.

void MosesTuning::Tokenize ( const char *  str,
const char  delim,
std::vector< std::string > *  res 
)

Split the string 'str' with specified delimitter 'delim' into tokens. The resulting tokens are set to 'res'.

ex. "a,b,c" => {"a", "b", "c"}.

Definition at line 69 of file Util.cpp.

References begin.

std::string MosesTuning::trimStr ( const std::string &  Src,
const std::string &  c = " \r\n" 
) [inline]

Definition at line 133 of file Util.h.

int MosesTuning::verboselevel (  ) 

void MosesTuning::Viterbi ( const Graph &  graph,
const SparseVector &  weights,
float  bleuWeight,
const ReferenceSet &  references,
size_t  sentenceId,
const std::vector< FeatureStatsType > &  backgroundBleu,
HgHypothesis *  bestHypo 
)


Variable Documentation

double_conversion::StringToDoubleConverter MosesTuning::converter(double_conversion::StringToDoubleConverter::NO_FLAGS, NAN, NAN,"inf","nan")

const char MosesTuning::FEATURES_BIN_BEGIN[] = "FEATURES_BIN_BEGIN_0"

Definition at line 22 of file FeatureArray.h.

const char MosesTuning::FEATURES_BIN_END[] = "FEATURES_BIN_END_0"

Definition at line 23 of file FeatureArray.h.

const char MosesTuning::FEATURES_TXT_BEGIN[] = "FEATURES_TXT_BEGIN_0"

Definition at line 20 of file FeatureArray.h.

const char MosesTuning::FEATURES_TXT_END[] = "FEATURES_TXT_END_0"

Definition at line 21 of file FeatureArray.h.

const size_t MosesTuning::kBleuNgramOrder = 4

Definition at line 43 of file Util.h.

const float MosesTuning::kEPS = 0.0001f

Definition at line 49 of file Util.h.

const size_t MosesTuning::kHwcmOrder = 4

Definition at line 15 of file HwcmScorer.h.

Referenced by MosesTuning::HwcmScorer::NumberOfScores().

const int MosesTuning::kMaxNOC = 50

Definition at line 44 of file Hypergraph.h.

Definition at line 45 of file Hypergraph.h.

Referenced by MosesTuning::Graph::Prune(), and Viterbi().

const char MosesTuning::SCORES_BIN_BEGIN[] = "SCORES_BIN_BEGIN_0"

Definition at line 23 of file ScoreArray.h.

const char MosesTuning::SCORES_BIN_END[] = "SCORES_BIN_END_0"

Definition at line 24 of file ScoreArray.h.

const char MosesTuning::SCORES_TXT_BEGIN[] = "SCORES_TXT_BEGIN_0"

Definition at line 21 of file ScoreArray.h.

const char MosesTuning::SCORES_TXT_END[] = "SCORES_TXT_END_0"

Definition at line 22 of file ScoreArray.h.


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