FST  openfst-1.7.1
OpenFst Library
Namespaces | Functions
linearscript.cc File Reference
#include <cctype>
#include <cstdio>
#include <set>
#include <fst/compat.h>
#include <fst/flags.h>
#include <fst/extensions/linear/linearscript.h>
#include <fst/arc.h>
#include <fstream>
#include <fst/script/script-impl.h>
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 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)
 
 fst::script::REGISTER_FST_LINEAR_OPERATIONS (StdArc)
 
 fst::script::REGISTER_FST_LINEAR_OPERATIONS (LogArc)
 
void fst::script::SplitByWhitespace (const string &str, std::vector< 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"   
)