Contains convenience functions to write and read fsts.
More...
#include <fst/script/print.h>
Go to the source code of this file.
|
template<class Arc > |
void | fst::PrintFst (const Fst< Arc > &fst, std::ostream *os) |
| Templated method that writes an fst in openfst text format to a stream. More...
|
|
bool | fst::DetectFstFile (std::string const &filename, std::string const &extname="fst") |
| Detect trivially by extension whether it is an fst or not. More...
|
|
template<class Arc > |
Fst< Arc > * | fst::FstRead (const std::string &filename) |
| Templated method that reads an fst. More...
|
|
template<class Arc > |
VectorFst< Arc > * | fst::VectorFstRead (const std::string &filename) |
| Templated method that reads VectorFst. More...
|
|
template<class Arc > |
ConstFst< Arc > * | fst::ConstFstRead (const std::string &filename) |
| Templated method that reads ConstFst. More...
|
|
template<class Arc > |
void | fst::FstWrite (const Fst< Arc > &fst, const std::string &filename, const std::string &txtname="txt") |
| Templated method that writes an fst either in binary or text format. More...
|
|
template<class Arc , class HypT > |
void | fst::printStrings (const VectorFst< Arc > &fst, std::vector< HypT > *hyps) |
| Traverses an fst and stores the hypotheses in a vector. Typically the fst is the result of ShortestPath. The fst should not have cycles. More...
|
|
Contains convenience functions to write and read fsts.
- Date
- 8-8-2012
- Author
- Gonzalo Iglesias
Definition in file fstio.hpp.