Main file for printstrings tool.
More...
Go to the source code of this file.
|
struct | HypW< Arc > |
| Same as Hyp but the printing will convert integer ids to words. More...
|
|
|
template<class ArcT > |
VectorFst< ArcT > * | createIntersectionSpace (std::string const &filename) |
|
template<class Arc > |
void | printWeight (typename Arc::Weight const &weight, std::ostream &os, unsigned precision=myPrecision) |
| Templated method that prints an arc weight. By default, reuses the operator<< already defined for each weight. More...
|
|
template<> |
void | printWeight< TupleArc32 > (const TupleW32 &weight, std::ostream &os, unsigned precision) |
| Template specialization of printWeight for a tropical sparse tuple weight. Uses the global var sparseformat. For the non sparse format, the comma separator is hard coded. More...
|
|
ucam::fsttools::SentenceIdx | RemoveUnprintable (const ucam::fsttools::SentenceIdx &h) |
|
template<class Arc > |
std::ostream & | operator<< (std::ostream &os, const Hyp< Arc > &obj) |
| Operator<< overloading to print a hypothesis. More...
|
|
template<class Arc > |
std::ostream & | operator<< (std::ostream &os, const HypW< Arc > &obj) |
| Operator<< overloading to print a hypothesis. Integer are converted to words using the global variable wmap. More...
|
|
template<class Arc , class HypT > |
int | run (ucam::util::RegistryPO const &rg) |
|
int | main (int argc, const char *argv[]) |
|
Main file for printstrings tool.
- Date
- 8-8-2012
- Author
- Gonzalo Iglesias
Definition in file printstrings.main.cpp.
typedef std::unordered_map<std::size_t, std::string> labelmap_t |
template<class ArcT >
VectorFst<ArcT>* createIntersectionSpace |
( |
std::string const & |
filename | ) |
|
int main |
( |
int |
argc, |
|
|
const char * |
argv[] |
|
) |
| |
template<class Arc >
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const Hyp< Arc > & |
obj |
|
) |
| |
template<class Arc >
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const HypW< Arc > & |
obj |
|
) |
| |
Operator<< overloading to print a hypothesis. Integer are converted to words using the global variable wmap.
Definition at line 204 of file printstrings.main.cpp.
template<class Arc >
void printWeight |
( |
typename Arc::Weight const & |
weight, |
|
|
std::ostream & |
os, |
|
|
unsigned |
precision = myPrecision |
|
) |
| |
Templated method that prints an arc weight. By default, reuses the operator<< already defined for each weight.
- Parameters
-
weight | The arc weight to be printed |
os | The output stream to print to |
Definition at line 83 of file printstrings.main.cpp.
Template specialization of printWeight for a tropical sparse tuple weight. Uses the global var sparseformat. For the non sparse format, the comma separator is hard coded.
- Parameters
-
weight | The arc weight to be printed |
sparseformat | Whether to print in sparse format or not. |
os | The output stream to print to |
Definition at line 99 of file printstrings.main.cpp.
template<class Arc , class HypT >
bool liblinrankformat = false |
bool sparseformat = false |