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_t > | str_sentence_t |
typedef str_sentence_t::const_iterator | str_sentence_it |
typedef std::pair< int, int > | item_t |
typedef std::multiset< item_t > | sentence_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_t > | threshold |
typedef std::vector< diff_t > | diffs_t |
typedef std::vector< unsigned int > | candidates_t |
typedef float | statscore_t |
typedef std::vector< statscore_t > | statscores_t |
typedef float | FeatureStatsType |
typedef FeatureStatsType * | featstats_t |
typedef std::vector< FeatureStats > | featarray_t |
typedef std::vector< FeatureArray > | featdata_t |
typedef float | ScoreStatsType |
typedef ScoreStatsType * | scorestats_t |
typedef std::vector< ScoreStats > | scorearray_t |
typedef std::vector< ScoreArray > | scoredata_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< ScoreStatsType > | randomStats (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 pair<const Edge*,FeatureStatsType> MosesTuning::BackPointer |
Definition at line 319 of file ForestRescore.cpp.
typedef std::vector<unsigned int> MosesTuning::candidates_t |
typedef std::vector<std::pair<unsigned int, unsigned int> > MosesTuning::diff_t |
typedef std::vector<diff_t> MosesTuning::diffs_t |
typedef std::vector<FeatureStats> MosesTuning::featarray_t |
typedef std::vector<FeatureArray> MosesTuning::featdata_t |
typedef FeatureStatsType* MosesTuning::featstats_t |
typedef boost::shared_ptr<FeatureData> MosesTuning::FeatureDataHandle |
typedef boost::shared_ptr<SparseVector> MosesTuning::FeaturePtr |
Definition at line 127 of file Hypergraph.h.
typedef float MosesTuning::FeatureStatsType |
typedef std::map<std::size_t, int> MosesTuning::idx2name |
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 |
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 |
typedef std::vector<ScoreStats> MosesTuning::scorearray_t |
typedef std::vector<ScoreArray> MosesTuning::scoredata_t |
typedef boost::shared_ptr<ScoreData> MosesTuning::ScoreDataHandle |
typedef std::vector<float> MosesTuning::ScoreDataItem |
Definition at line 45 of file ScoreDataIterator.h.
typedef ScoreStatsType* MosesTuning::scorestats_t |
typedef float MosesTuning::ScoreStatsType |
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 |
typedef std::vector<statscore_t> MosesTuning::statscores_t |
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.
typedef std::vector<str_item_t> MosesTuning::str_sentence_t |
Definition at line 22 of file SemposOverlapping.h.
typedef std::pair<float,diff_t > MosesTuning::threshold |
typedef boost::shared_ptr<InternalTree> MosesTuning::TreePointer |
Definition at line 15 of file InternalTree.h.
typedef FeatureStatsType MosesTuning::ValType |
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.
MosesTuning::$generator | ( | leafNT | ) |
Definition at line 59 of file InternalTree.h.
References MosesTuning::InternalTree::GetChildren().
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().
FeatureStatsType MosesTuning::ConvertCharToFeatureStatsType | ( | const char * | str | ) | [inline] |
Definition at line 123 of file Util.h.
Referenced by ConvertStringToFeatureStatsType().
ScoreStatsType MosesTuning::ConvertCharToScoreStatsType | ( | const char * | str | ) | [inline] |
Definition at line 113 of file Util.h.
Referenced by ConvertStringToScoreStatsType().
FeatureStatsType MosesTuning::ConvertStringToFeatureStatsType | ( | const std::string & | str | ) | [inline] |
Definition at line 128 of file Util.h.
References ConvertCharToFeatureStatsType().
ScoreStatsType MosesTuning::ConvertStringToScoreStatsType | ( | const std::string & | str | ) | [inline] |
Definition at line 118 of file Util.h.
References ConvertCharToScoreStatsType().
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().
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().
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().
std::size_t MosesTuning::hash_value | ( | SparseVector const & | item | ) |
Definition at line 184 of file FeatureStats.cpp.
References util::MurmurHashNative().
std::size_t MosesTuning::hash_value | ( | FeatureDataItem const & | item | ) |
Definition at line 63 of file FeatureDataIterator.cpp.
References MosesTuning::FeatureDataItem::dense, and MosesTuning::FeatureDataItem::sparse.
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().
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().
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().
StringPiece MosesTuning::NextLine | ( | util::FilePiece & | from | ) |
Definition at line 37 of file Hypergraph.cpp.
References util::FilePiece::ReadLine(), and starts_with().
Referenced by ReadGraph().
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().
ostream& MosesTuning::operator<< | ( | ostream & | o, | |
const ScoreStats & | e | |||
) |
Definition at line 136 of file ScoreStats.cpp.
References MosesTuning::ScoreStats::get(), and MosesTuning::ScoreStats::size().
ostream& MosesTuning::operator<< | ( | ostream & | o, | |
const Point & | P | |||
) |
Definition at line 114 of file Point.cpp.
References MosesTuning::Point::GetAllWeights().
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().
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 | |||
) |
Definition at line 327 of file FeatureStats.cpp.
References MosesTuning::FeatureStats::get(), MosesTuning::FeatureStats::getSparse(), MosesTuning::FeatureStats::size(), and MosesTuning::SparseVector::write().
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().
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().
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 | |||
) |
Definition at line 58 of file FeatureDataIterator.cpp.
References MosesTuning::FeatureDataItem::dense, and MosesTuning::FeatureDataItem::sparse.
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().
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().
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.
std::vector<ScoreStatsType> MosesTuning::randomStats | ( | float | decay, | |
int | max | |||
) |
Definition at line 86 of file M2Scorer.cpp.
References util::rand(), and Moses::stats.
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().
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().
T MosesTuning::Scan | ( | const std::string & | input | ) | [inline] |
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.
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().
void MosesTuning::split | ( | const std::string & | s, | |
char | delim, | |||
std::vector< std::string > & | elems | |||
) |
Definition at line 60 of file Util.cpp.
Referenced by Moses::TabbedSentence::CreateFromString(), Moses::WordTranslationFeature::Load(), Moses::PhrasePairFeature::Load(), main(), MosesTraining::Syntax::Pcfg::Read(), Moses::TabbedSentence::Read(), MosesTuning::M2::M2::ReadM2(), Moses::ReformatHieroRule(), and MosesTuning::M2::M2::SufStats().
std::string MosesTuning::stringify | ( | T | x | ) | [inline] |
void MosesTuning::Tokenize | ( | const char * | str, | |
const char | delim, | |||
std::vector< std::string > * | res | |||
) |
std::string MosesTuning::trimStr | ( | const std::string & | Src, | |
const std::string & | c = " \r\n" | |||
) | [inline] |
int MosesTuning::verboselevel | ( | ) |
Definition at line 31 of file Util.cpp.
Referenced by MosesTuning::Optimizer::LineOptimize(), main(), MosesTuning::Optimizer::Run(), MosesTuning::RandomDirectionOptimizer::TrueRun(), and MosesTuning::SimpleOptimizer::TrueRun().
void MosesTuning::Viterbi | ( | const Graph & | graph, | |
const SparseVector & | weights, | |||
float | bleuWeight, | |||
const ReferenceSet & | references, | |||
size_t | sentenceId, | |||
const std::vector< FeatureStatsType > & | backgroundBleu, | |||
HgHypothesis * | bestHypo | |||
) |
Definition at line 347 of file ForestRescore.cpp.
References MosesTuning::HgHypothesis::bleuStats, count, MosesTuning::Vertex::GetIncoming(), MosesTuning::Graph::GetVertex(), init(), MosesTuning::Graph::IsBoundary(), k, kBleuNgramOrder, kMinScore, MosesTuning::ReferenceSet::Length(), MosesTuning::ReferenceSet::NgramMatches(), NULL, MosesTuning::HgHypothesis::text, and MosesTuning::Graph::VertexSize().
Referenced by BOOST_AUTO_TEST_CASE(), and main().
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 19 of file BleuScorer.h.
Referenced by MosesTuning::ReferenceSet::AddLine(), BOOST_AUTO_TEST_CASE(), MosesTuning::BleuScorer::CalcBleuStats(), MosesTuning::BleuScorer::getReferenceLength(), MosesTuning::BleuScorer::NumberOfScores(), MosesTuning::BleuScorer::ProcessReferenceLine(), and Viterbi().
const char MosesTuning::kDefaultDelimiterSymbol[] = " " |
const float MosesTuning::kEPS = 0.0001f |
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 19 of file SemposOverlapping.h.
Referenced by MosesTuning::CapMacroOverlapping::NumberOfScores(), and MosesTuning::CapMacroOverlapping::prepareStats().
const WordIndex MosesTuning::kMaxWordIndex = UINT_MAX |
Definition at line 44 of file Hypergraph.h.
const FeatureStatsType MosesTuning::kMinScore = -1e10 |
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.