FST  openfst-1.8.3
OpenFst Library
Namespaces | Functions
linearscript.cc File Reference
#include <fst/compat.h>
#include <fst/extensions/linear/linearscript.h>
#include <cctype>
#include <cstddef>
#include <functional>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#include <fst/flags.h>
#include <fst/log.h>
#include <fst/extensions/linear/linear-fst.h>
#include <fst/arc.h>
#include <fst/cache.h>
#include <fstream>
#include <fst/float-weight.h>
#include <fst/script/script-impl.h>
#include <unordered_map>
Include dependency graph for linearscript.cc:

Go to the source code of this file.

Namespaces

 fst
 
 fst::script
 

Functions

 DEFINE_string (delimiter,"|","Single non-white-space character delimiter inside sequences of ""feature symbols and output symbols")
 
 DEFINE_string (empty_symbol,"<empty>","Special symbol that designates an empty sequence")
 
 DEFINE_string (start_symbol,"<s>","Start of sentence symbol")
 
 DEFINE_string (end_symbol,"</s>","End of sentence symbol")
 
 DEFINE_bool (classifier, false,"Treat input model as a classifier instead of a tagger")
 
bool fst::script::ValidateDelimiter ()
 
bool fst::script::ValidateEmptySymbol ()
 
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)
 
 fst::script::REGISTER_FST_OPERATION_3ARCS (LinearCompileTpl, LinearCompileArgs)
 
void fst::script::SplitByWhitespace (const std::string &str, std::vector< std::string > *out)
 
int fst::script::ScanNumClasses (char **models, int models_len)
 

Function Documentation

DEFINE_bool ( classifier  ,
false  ,
"Treat input model as a classifier instead of a tagger"   
)
DEFINE_string ( delimiter  ,
"|"  ,
"Single non-white-space character delimiter inside sequences of ""feature symbols and output symbols"   
)
DEFINE_string ( empty_symbol  ,
"<empty>"  ,
"Special symbol that designates an empty sequence"   
)
DEFINE_string ( start_symbol  ,
"<s>"  ,
"Start of sentence symbol"   
)
DEFINE_string ( end_symbol  ,
"</s>"  ,
"End of sentence symbol"   
)