FST  openfst-1.7.1
OpenFst Library
Namespaces | Macros | Typedefs | Functions
linearscript.h File Reference
#include <istream>
#include <sstream>
#include <string>
#include <vector>
#include <fst/compat.h>
#include <fst/extensions/linear/linear-fst-data-builder.h>
#include <fst/extensions/linear/linear-fst.h>
#include <fstream>
#include <fst/symbol-table.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
 

Macros

#define REGISTER_FST_LINEAR_OPERATIONS(Arc)   REGISTER_FST_OPERATION(LinearCompileTpl, Arc, LinearCompileArgs);
 

Typedefs

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

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 string &str, SymbolTable *syms)
 
template<class Arc >
void fst::script::SplitAndPush (const 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 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 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 string &vocab, SymbolTable *isyms, SymbolTable *fsyms, SymbolTable *osyms, LinearFstDataBuilder< Arc > *builder)
 
template<class Arc >
void fst::script::AddVocab (const string &vocab, SymbolTable *isyms, SymbolTable *fsyms, SymbolTable *osyms, LinearClassifierFstDataBuilder< Arc > *builder)
 
template<class Arc >
void fst::script::AddModel (const string &model, SymbolTable *fsyms, SymbolTable *osyms, LinearFstDataBuilder< Arc > *builder)
 
template<class Arc >
void fst::script::AddModel (const string &model, SymbolTable *fsyms, SymbolTable *osyms, LinearClassifierFstDataBuilder< Arc > *builder)
 
void fst::script::SplitByWhitespace (const string &str, std::vector< 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 string &arc_type, const string &epsilon_symbol, const string &unknown_symbol, const string &vocab, char **models, int models_len, const string &out, const string &save_isymbols, const string &save_fsymbols, const string &save_osymbols)
 

Macro Definition Documentation

#define REGISTER_FST_LINEAR_OPERATIONS (   Arc)    REGISTER_FST_OPERATION(LinearCompileTpl, Arc, LinearCompileArgs);

Definition at line 388 of file linearscript.h.

Function Documentation

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