Cambridge SMT System
MertCommon.cpp File Reference
#include "MertCommon.h"
Include dependency graph for MertCommon.cpp:

Go to the source code of this file.

Functions

std::string Time ()
 
void ReplacePattern (std::string &newname, std::string pattern, const char *pat, std::string rep)
 
void ReplacePattern (std::string &newname, std::string pattern, const char *pat, float f)
 
void ReplacePattern (std::string &newname, std::string pattern, const char *pat, int i)
 
std::string ExpandPath (std::string pattern, const int idx)
 
void InitializeFromLimits (std::vector< Sid > &ids, const std::string range)
 
void InitializeFromScript (std::vector< Sid > &ids, const std::string filename)
 
std::ostream & operator<< (std::ostream &o, const Sentence &s)
 
std::vector< PARAMSInitializeVectorsFromFile (const string &filename)
 
std::vector< PARAMSInitializeVectorsFromAxes (unsigned int dim)
 
std::vector< PARAMSInitializeVectorsFromRandom ()
 
std::vector< PARAMSInitializeVectors (const std::string &pattern)
 
std::string ReadWeight (const std::string &filename)
 
std::ostream & operator<< (std::ostream &strm, const PARAMS &vw)
 
PARAMS operator- (const PARAMS &vw1, const PARAMS &vw2)
 
PARAMS operator+ (const PARAMS &vw1, const PARAMS &vw2)
 
std::vector< std::string > InitRefDataFilenames (int argc, char **argv)
 

Variables

MertOpt opts
 

Function Documentation

std::string ExpandPath ( std::string  pattern,
const int  idx 
)

Definition at line 51 of file MertCommon.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void InitializeFromLimits ( std::vector< Sid > &  ids,
const std::string  range 
)

Definition at line 56 of file MertCommon.cpp.

Here is the caller graph for this function:

void InitializeFromScript ( std::vector< Sid > &  ids,
const std::string  filename 
)

Definition at line 65 of file MertCommon.cpp.

Here is the caller graph for this function:

std::vector<PARAMS> InitializeVectors ( const std::string &  pattern)

Definition at line 126 of file MertCommon.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::vector<PARAMS> InitializeVectorsFromAxes ( unsigned int  dim)

Definition at line 108 of file MertCommon.cpp.

std::vector<PARAMS> InitializeVectorsFromFile ( const string &  filename)

Definition at line 91 of file MertCommon.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::vector<PARAMS> InitializeVectorsFromRandom ( )

Definition at line 121 of file MertCommon.cpp.

std::vector<std::string> InitRefDataFilenames ( int  argc,
char **  argv 
)

Definition at line 192 of file MertCommon.cpp.

Here is the caller graph for this function:

PARAMS operator+ ( const PARAMS vw1,
const PARAMS vw2 
)

Definition at line 176 of file MertCommon.cpp.

PARAMS operator- ( const PARAMS vw1,
const PARAMS vw2 
)

Definition at line 163 of file MertCommon.cpp.

std::ostream& operator<< ( std::ostream &  o,
const Sentence s 
)

Definition at line 78 of file MertCommon.cpp.

std::ostream& operator<< ( std::ostream &  strm,
const PARAMS vw 
)

Definition at line 152 of file MertCommon.cpp.

std::string ReadWeight ( const std::string &  filename)

Definition at line 140 of file MertCommon.cpp.

Here is the caller graph for this function:

void ReplacePattern ( std::string &  newname,
std::string  pattern,
const char *  pat,
std::string  rep 
)

Definition at line 26 of file MertCommon.cpp.

Here is the caller graph for this function:

void ReplacePattern ( std::string &  newname,
std::string  pattern,
const char *  pat,
float  f 
)

Definition at line 36 of file MertCommon.cpp.

Here is the call graph for this function:

void ReplacePattern ( std::string &  newname,
std::string  pattern,
const char *  pat,
int  i 
)

Definition at line 44 of file MertCommon.cpp.

Here is the call graph for this function:

std::string Time ( )

Definition at line 16 of file MertCommon.cpp.

Variable Documentation

MertOpt opts

Definition at line 14 of file MertCommon.cpp.