mosesdecoder/mira/Main.h File Reference

#include <vector>
#include "moses/ScoreComponentCollection.h"
#include "moses/Word.h"
#include "moses/FF/FeatureFunction.h"
#include "Decoder.h"

Go to the source code of this file.

Classes

struct  RandomIndex

Typedefs

typedef std::map< const
Moses::FeatureFunction
*, std::vector< float > > 
ProducerWeightMap
typedef std::pair< const
Moses::FeatureFunction
*, std::vector< float > > 
ProducerWeightPair

Functions

template<class T >
bool from_string (T &t, const std::string &s, std::ios_base &(*f)(std::ios_base &))
bool loadSentences (const std::string &filename, std::vector< std::string > &sentences)
bool evaluateModulo (size_t shard_position, size_t mix_or_dump_base, size_t actual_batch_size)
void printFeatureValues (std::vector< std::vector< Moses::ScoreComponentCollection > > &featureValues)
void ignoreCoreFeatures (std::vector< std::vector< Moses::ScoreComponentCollection > > &featureValues, ProducerWeightMap &coreWeightMap)
void takeLogs (std::vector< std::vector< Moses::ScoreComponentCollection > > &featureValues, size_t base)
void deleteTranslations (std::vector< std::vector< const Moses::Word * > > &translations)
void decodeHopeOrFear (size_t rank, size_t size, size_t decode, std::string decode_filename, std::vector< std::string > &inputSentences, Mira::MosesDecoder *decoder, size_t n, float bleuWeight)
void applyLearningRates (std::vector< std::vector< Moses::ScoreComponentCollection > > &featureValues, float core_r0, float sparse_r0)
void applyPerFeatureLearningRates (std::vector< std::vector< Moses::ScoreComponentCollection > > &featureValues, Moses::ScoreComponentCollection featureLearningRates, float sparse_r0)
void scaleFeatureScore (const Moses::FeatureFunction *sp, float scaling_factor, std::vector< std::vector< Moses::ScoreComponentCollection > > &featureValues, size_t rank, size_t epoch)
void scaleFeatureScores (const Moses::FeatureFunction *sp, float scaling_factor, std::vector< std::vector< Moses::ScoreComponentCollection > > &featureValues, size_t rank, size_t epoch)


Typedef Documentation

typedef std::map<const Moses::FeatureFunction*, std::vector< float > > ProducerWeightMap

Definition at line 29 of file Main.h.

typedef std::pair<const Moses::FeatureFunction*, std::vector< float > > ProducerWeightPair

Definition at line 30 of file Main.h.


Function Documentation

void applyLearningRates ( std::vector< std::vector< Moses::ScoreComponentCollection > > &  featureValues,
float  core_r0,
float  sparse_r0 
)

void applyPerFeatureLearningRates ( std::vector< std::vector< Moses::ScoreComponentCollection > > &  featureValues,
Moses::ScoreComponentCollection  featureLearningRates,
float  sparse_r0 
)

void decodeHopeOrFear ( size_t  rank,
size_t  size,
size_t  decode,
std::string  decode_filename,
std::vector< std::string > &  inputSentences,
Mira::MosesDecoder decoder,
size_t  n,
float  bleuWeight 
)

void deleteTranslations ( std::vector< std::vector< const Moses::Word * > > &  translations  ) 

bool evaluateModulo ( size_t  shard_position,
size_t  mix_or_dump_base,
size_t  actual_batch_size 
)

Definition at line 1695 of file Main.cpp.

Referenced by main().

Here is the caller graph for this function:

template<class T >
bool from_string ( T &  t,
const std::string &  s,
std::ios_base &(*)(std::ios_base &)  f 
) [inline]

Definition at line 32 of file Main.h.

void ignoreCoreFeatures ( std::vector< std::vector< Moses::ScoreComponentCollection > > &  featureValues,
ProducerWeightMap coreWeightMap 
)

bool loadSentences ( const std::string &  filename,
std::vector< std::string > &  sentences 
)

void printFeatureValues ( std::vector< std::vector< Moses::ScoreComponentCollection > > &  featureValues  ) 

void scaleFeatureScore ( const Moses::FeatureFunction sp,
float  scaling_factor,
std::vector< std::vector< Moses::ScoreComponentCollection > > &  featureValues,
size_t  rank,
size_t  epoch 
)

void scaleFeatureScores ( const Moses::FeatureFunction sp,
float  scaling_factor,
std::vector< std::vector< Moses::ScoreComponentCollection > > &  featureValues,
size_t  rank,
size_t  epoch 
)

void takeLogs ( std::vector< std::vector< Moses::ScoreComponentCollection > > &  featureValues,
size_t  base 
)


Generated on Thu Jun 4 00:30:55 2015 for Moses by  doxygen 1.5.9