#include <string>
#include <iomanip>
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <cstdlib>
#include "tropical-sparse-tuple-weight.h"
#include "tropical-sparse-tuple-weight-decls.h"
Go to the source code of this file.
|
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 limits) |
|
void | InitializeFromScript (std::vector< Sid > &ids, const std::string filename) |
|
std::vector< PARAMS > | InitializeVectorsFromFile (const std::string &) |
|
std::vector< PARAMS > | InitializeVectorsFromAxes (unsigned int) |
|
std::vector< PARAMS > | InitializeVectorsFromRandom () |
|
std::vector< PARAMS > | InitializeVectors (const std::string &) |
|
std::string | ReadWeight (const std::string &) |
|
std::ostream & | operator<< (std::ostream &strm, const PARAMS &) |
|
std::ostream & | operator<< (std::ostream &o, const Sentence &s) |
|
PARAMS | operator- (const PARAMS &, const PARAMS &) |
|
PARAMS | operator+ (const PARAMS &, const PARAMS &) |
|
std::vector< std::string > | InitRefDataFilenames (int, char **) |
|
#define tracer std::cerr << Time() |
std::string ExpandPath |
( |
std::string |
pattern, |
|
|
const int |
idx |
|
) |
| |
void InitializeFromLimits |
( |
std::vector< Sid > & |
ids, |
|
|
const std::string |
limits |
|
) |
| |
void InitializeFromScript |
( |
std::vector< Sid > & |
ids, |
|
|
const std::string |
filename |
|
) |
| |
std::vector<PARAMS> InitializeVectors |
( |
const std::string & |
| ) |
|
std::vector<PARAMS> InitializeVectorsFromAxes |
( |
unsigned |
int | ) |
|
std::vector<PARAMS> InitializeVectorsFromFile |
( |
const std::string & |
| ) |
|
std::vector<PARAMS> InitializeVectorsFromRandom |
( |
| ) |
|
std::vector<std::string> InitRefDataFilenames |
( |
int |
, |
|
|
char ** |
|
|
) |
| |
std::ostream& operator<< |
( |
std::ostream & |
strm, |
|
|
const PARAMS & |
|
|
) |
| |
std::ostream& operator<< |
( |
std::ostream & |
o, |
|
|
const Sentence & |
s |
|
) |
| |
std::string ReadWeight |
( |
const std::string & |
| ) |
|
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 |
|
) |
| |
const double kDoubleDelta = 1.0F / 4096.0F |