FST  openfst-1.8.3
OpenFst Library
Namespaces | Typedefs | Functions
linearscript.h File Reference
#include <cstddef>
#include <istream>
#include <sstream>
#include <string>
#include <tuple>
#include <vector>
#include <fst/compat.h>
#include <fst/log.h>
#include <fst/extensions/linear/linear-fst-data-builder.h>
#include <fst/extensions/linear/linear-fst-data.h>
#include <fst/extensions/linear/linear-fst.h>
#include <fstream>
#include <fst/fst.h>
#include <fst/symbol-table.h>
#include <fst/util.h>
#include <fst/script/arg-packs.h>
#include <fst/script/script-impl.h>
Include dependency graph for linearscript.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 fst
 
 fst::script
 

Typedefs

using fst::script::LinearCompileArgs = std::tuple< const std::string &, const std::string &, const std::string &, char **, int, const std::string &, const std::string &, const std::string &, const std::string & >
 

Functions

 DECLARE_string (delimiter)
 
 DECLARE_string (empty_symbol)
 
 DECLARE_string (start_symbol)
 
 DECLARE_string (end_symbol)
 
 DECLARE_bool (classifier)
 
bool fst::script::ValidateDelimiter ()
 
bool fst::script::ValidateEmptySymbol ()
 
template<class Arc >
Arc::Label fst::script::LookUp (const std::string &str, SymbolTable *syms)
 
template<class Arc >
void fst::script::SplitAndPush (const std::string &str, const char delim, SymbolTable *syms, std::vector< typename Arc::Label > *output)
 
template<class InputIterator , class OutputIterator , class T >
size_t fst::script::ReplaceCopy (InputIterator first, InputIterator last, OutputIterator result, const T &old_value, const T &new_value)
 
template<class Arc >
bool fst::script::GetVocabRecord (const std::string &vocab, std::istream &strm, SymbolTable *isyms, SymbolTable *fsyms, SymbolTable *osyms, typename Arc::Label *word, std::vector< typename Arc::Label > *feature_labels, std::vector< typename Arc::Label > *possible_labels, size_t *num_line)
 
template<class Arc >
bool fst::script::GetModelRecord (const std::string &model, std::istream &strm, SymbolTable *fsyms, SymbolTable *osyms, std::vector< typename Arc::Label > *input_labels, std::vector< typename Arc::Label > *output_labels, typename Arc::Weight *weight, size_t *num_line)
 
template<class Arc >
void fst::script::AddVocab (const std::string &vocab, SymbolTable *isyms, SymbolTable *fsyms, SymbolTable *osyms, LinearFstDataBuilder< Arc > *builder)
 
template<class Arc >
void fst::script::AddVocab (const std::string &vocab, SymbolTable *isyms, SymbolTable *fsyms, SymbolTable *osyms, LinearClassifierFstDataBuilder< Arc > *builder)
 
template<class Arc >
void fst::script::AddModel (const std::string &model, SymbolTable *fsyms, SymbolTable *osyms, LinearFstDataBuilder< Arc > *builder)
 
template<class Arc >
void fst::script::AddModel (const std::string &model, SymbolTable *fsyms, SymbolTable *osyms, LinearClassifierFstDataBuilder< Arc > *builder)
 
void fst::script::SplitByWhitespace (const std::string &str, std::vector< std::string > *out)
 
int fst::script::ScanNumClasses (char **models, int models_len)
 
template<class Arc >
void fst::script::LinearCompileTpl (LinearCompileArgs *args)
 
void fst::script::LinearCompile (const std::string &arc_type, const std::string &epsilon_symbol, const std::string &unknown_symbol, const std::string &vocab, char **models, int models_len, const std::string &out, const std::string &save_isymbols, const std::string &save_fsymbols, const std::string &save_osymbols)
 

Function Documentation

DECLARE_bool ( classifier  )
DECLARE_string ( delimiter  )
DECLARE_string ( empty_symbol  )
DECLARE_string ( start_symbol  )
DECLARE_string ( end_symbol  )