FST  openfst-1.8.3
OpenFst Library
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
fst::script Namespace Reference

Namespaces

 internal
 

Classes

class  AllFstOperationsRegisterer
 
struct  ArcClass
 
class  ArcIteratorClass
 
class  ArcIteratorClassImpl
 
class  ArcIteratorImplBase
 
struct  DeterminizeOptions
 
struct  DisambiguateOptions
 
class  EncodeMapperClass
 
class  EncodeMapperClassImpl
 
class  EncodeMapperClassIORegister
 
struct  EncodeMapperClassIORegistration
 
struct  EncodeMapperClassRegEntry
 
class  EncodeMapperImplBase
 
struct  FarCompileStringsArgs
 
struct  FarCreateArgs
 
struct  FarPrintStringsArgs
 
class  FarReaderClass
 
class  FarReaderClassImpl
 
class  FarReaderImplBase
 
class  FarWriterClass
 
class  FarWriterClassImpl
 
class  FarWriterImplBase
 
class  FstClass
 
class  FstClassBase
 
class  FstClassImpl
 
class  FstClassImplBase
 
class  FstClassIORegister
 
struct  FstClassIORegistration
 
struct  FstClassRegEntry
 
struct  FstCompileInnerArgs
 
struct  FstDrawArgs
 
struct  FstPrintArgs
 
class  GenericOperationRegister
 
class  MutableArcIteratorClass
 
class  MutableArcIteratorClassImpl
 
class  MutableArcIteratorImplBase
 
class  MutableFstClass
 
struct  Operation
 
struct  PdtExpandOptions
 
struct  PdtShortestPathOptions
 
struct  ReplaceOptions
 
struct  RmEpsilonOptions
 
struct  ShortestDistanceOptions
 
struct  ShortestPathOptions
 
class  StateIteratorClass
 
class  StateIteratorClassImpl
 
class  StateIteratorImplBase
 
class  VectorFstClass
 
class  WeightClass
 
class  WeightClassImpl
 
class  WeightClassRegister
 
class  WeightImplBase
 
struct  WithReturnValue
 

Typedefs

using CompressInnerArgs = std::tuple< const FstClass &, const std::string & >
 
using CompressArgs = WithReturnValue< bool, CompressInnerArgs >
 
using DecompressInnerArgs = std::tuple< const std::string &, MutableFstClass * >
 
using DecompressArgs = WithReturnValue< bool, DecompressInnerArgs >
 
using OpenFarReaderClassArgs = WithReturnValue< std::unique_ptr< FarReaderClass >, const std::vector< std::string > & >
 
using CreateFarWriterClassInnerArgs = std::pair< const std::string &, FarType >
 
using CreateFarWriterClassArgs = WithReturnValue< std::unique_ptr< FarWriterClass >, CreateFarWriterClassInnerArgs >
 
using FarConvertArgs = std::tuple< FarReaderClass &, FarWriterClass &, std::string_view >
 
using FarDecodeArgs = std::tuple< FarReaderClass &, FarWriterClass &, const EncodeMapperClass & >
 
using FarEncodeArgs = std::tuple< FarReaderClass &, FarWriterClass &, EncodeMapperClass * >
 
using FarEqualInnerArgs = std::tuple< FarReaderClass &, FarReaderClass &, float, std::string_view, std::string_view >
 
using FarEqualArgs = WithReturnValue< bool, FarEqualInnerArgs >
 
using FarExtractArgs = std::tuple< FarReaderClass &, int32_t, const std::string &, const std::string &, const std::string &, const std::string &, const std::string & >
 
using FarInfoArgs = std::tuple< const std::vector< std::string > &, const std::string &, const std::string &, const bool >
 
using FarGetInfoArgs = std::tuple< const std::vector< std::string > &, const std::string &, const std::string &, const bool, FarInfoData * >
 
using FarIsomorphicInnerArgs = std::tuple< FarReaderClass &, FarReaderClass &, float, std::string_view, std::string_view >
 
using FarIsomorphicArgs = WithReturnValue< bool, FarIsomorphicInnerArgs >
 
using 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 & >
 
using MPdtComposeArgs = std::tuple< const FstClass &, const FstClass &, const std::vector< std::pair< int64_t, int64_t >> &, const std::vector< int64_t > &, MutableFstClass *, const MPdtComposeOptions &, bool >
 
using MPdtExpandArgs = std::tuple< const FstClass &, const std::vector< std::pair< int64_t, int64_t >> &, const std::vector< int64_t > &, MutableFstClass *, const MPdtExpandOptions & >
 
using MPdtReverseArgs = std::tuple< const FstClass &, const std::vector< std::pair< int64_t, int64_t >> &, std::vector< int64_t > *, MutableFstClass * >
 
using MPdtInfoArgs = std::tuple< const FstClass &, const std::vector< std::pair< int64_t, int64_t >> &, const std::vector< int64_t > & >
 
using PdtComposeArgs = std::tuple< const FstClass &, const FstClass &, const std::vector< std::pair< int64_t, int64_t >> &, MutableFstClass *, const PdtComposeOptions &, bool >
 
using PdtExpandArgs = std::tuple< const FstClass &, const std::vector< std::pair< int64_t, int64_t >> &, MutableFstClass *, const PdtExpandOptions & >
 
using PdtReplaceArgs = std::tuple< const std::vector< std::pair< int64_t, const FstClass * >> &, MutableFstClass *, std::vector< std::pair< int64_t, int64_t >> *, int64_t, PdtParserType, int64_t, const std::string &, const std::string & >
 
using PdtReverseArgs = std::tuple< const FstClass &, const std::vector< std::pair< int64_t, int64_t >> &, MutableFstClass * >
 
using PdtShortestPathArgs = std::tuple< const FstClass &, const std::vector< std::pair< int64_t, int64_t >> &, MutableFstClass *, const PdtShortestPathOptions & >
 
using PdtInfoArgs = std::pair< const FstClass &, const std::vector< std::pair< int64_t, int64_t >> & >
 
using InitArcIteratorClassArgs = std::tuple< const FstClass &, int64_t, ArcIteratorClass * >
 
using InitMutableArcIteratorClassArgs = std::tuple< MutableFstClass *, int64_t, MutableArcIteratorClass * >
 
using FstArcSortArgs = std::pair< MutableFstClass *, ArcSortType >
 
using FstClosureArgs = std::pair< MutableFstClass *, const ClosureType >
 
using FstCompileArgs = WithReturnValue< std::unique_ptr< FstClass >, FstCompileInnerArgs >
 
using FstComposeArgs = std::tuple< const FstClass &, const FstClass &, MutableFstClass *, const ComposeOptions & >
 
using FstConcatArgs1 = std::pair< MutableFstClass *, const FstClass & >
 
using FstConcatArgs2 = std::pair< const FstClass &, MutableFstClass * >
 
using FstConcatArgs3 = std::pair< const std::vector< FstClass * > &, MutableFstClass * >
 
using FstConvertInnerArgs = std::pair< const FstClass &, const std::string & >
 
using FstConvertArgs = WithReturnValue< std::unique_ptr< FstClass >, FstConvertInnerArgs >
 
using FstDecodeArgs = std::pair< MutableFstClass *, const EncodeMapperClass & >
 
using FstDeterminizeArgs = std::tuple< const FstClass &, MutableFstClass *, const DeterminizeOptions & >
 
using FstDifferenceArgs = std::tuple< const FstClass &, const FstClass &, MutableFstClass *, const ComposeOptions & >
 
using FstDisambiguateArgs = std::tuple< const FstClass &, MutableFstClass *, const DisambiguateOptions & >
 
using FstEncodeArgs = std::tuple< MutableFstClass *, EncodeMapperClass * >
 
using FstEpsNormalizeArgs = std::tuple< const FstClass &, MutableFstClass *, EpsNormalizeType >
 
using FstEqualInnerArgs = std::tuple< const FstClass &, const FstClass &, float >
 
using FstEqualArgs = WithReturnValue< bool, FstEqualInnerArgs >
 
using FstEquivalentInnerArgs = std::tuple< const FstClass &, const FstClass &, float, bool * >
 
using FstEquivalentArgs = WithReturnValue< bool, FstEquivalentInnerArgs >
 
using FstInfoArgs = std::tuple< const FstClass &, bool, ArcFilterType, const std::string &, bool >
 
using FstIntersectArgs = std::tuple< const FstClass &, const FstClass &, MutableFstClass *, const ComposeOptions & >
 
using FstIsomorphicInnerArgs = std::tuple< const FstClass &, const FstClass &, float >
 
using FstIsomorphicArgs = WithReturnValue< bool, FstIsomorphicInnerArgs >
 
using FstMapInnerArgs = std::tuple< const FstClass &, MapType, float, double, const WeightClass & >
 
using FstMapArgs = WithReturnValue< std::unique_ptr< FstClass >, FstMapInnerArgs >
 
using FstMinimizeArgs = std::tuple< MutableFstClass *, MutableFstClass *, float, bool >
 
using FstProjectArgs = std::pair< MutableFstClass *, ProjectType >
 
using FstPruneArgs1 = std::tuple< const FstClass &, MutableFstClass *, const WeightClass &, int64_t, float >
 
using FstPruneArgs2 = std::tuple< MutableFstClass *, const WeightClass &, int64_t, float >
 
using FstPushArgs1 = std::tuple< MutableFstClass *, ReweightType, float, bool >
 
using FstPushArgs2 = std::tuple< const FstClass &, MutableFstClass *, uint8_t, ReweightType, float >
 
using FstRandEquivalentInnerArgs = std::tuple< const FstClass &, const FstClass &, int32_t, const RandGenOptions< RandArcSelection > &, float, uint64_t >
 
using FstRandEquivalentArgs = WithReturnValue< bool, FstRandEquivalentInnerArgs >
 
using FstRandGenArgs = std::tuple< const FstClass &, MutableFstClass *, const RandGenOptions< RandArcSelection > &, uint64_t >
 
using FstRelabelArgs1 = std::tuple< MutableFstClass *, const SymbolTable *, const SymbolTable *, const std::string &, bool, const SymbolTable *, const SymbolTable *, const std::string &, bool >
 
using FstRelabelArgs2 = std::tuple< MutableFstClass *, const std::vector< std::pair< int64_t, int64_t >> &, const std::vector< std::pair< int64_t, int64_t >> & >
 
using FstReplaceArgs = std::tuple< const std::vector< std::pair< int64_t, const FstClass * >> &, MutableFstClass *, const ReplaceOptions & >
 
using FstReverseArgs = std::tuple< const FstClass &, MutableFstClass *, bool >
 
using FstReweightArgs = std::tuple< MutableFstClass *, const std::vector< WeightClass > &, ReweightType >
 
using FstRmEpsilonArgs = std::pair< MutableFstClass *, const RmEpsilonOptions & >
 
using FstShortestDistanceArgs1 = std::tuple< const FstClass &, std::vector< WeightClass > *, const ShortestDistanceOptions & >
 
using FstShortestDistanceArgs2 = std::tuple< const FstClass &, std::vector< WeightClass > *, bool, double >
 
using FstShortestDistanceInnerArgs3 = std::tuple< const FstClass &, double >
 
using FstShortestDistanceArgs3 = WithReturnValue< WeightClass, FstShortestDistanceInnerArgs3 >
 
using FstShortestPathArgs = std::tuple< const FstClass &, MutableFstClass *, const ShortestPathOptions & >
 
using InitStateIteratorClassArgs = std::pair< const FstClass &, StateIteratorClass * >
 
using FstSynchronizeArgs = std::pair< const FstClass &, MutableFstClass * >
 
using FstTopSortArgs = WithReturnValue< bool, MutableFstClass * >
 
using FstUnionArgs1 = std::pair< MutableFstClass *, const FstClass & >
 
using FstUnionArgs2 = std::tuple< MutableFstClass *, const std::vector< const FstClass * > & >
 
using FstVerifyArgs = WithReturnValue< bool, const FstClass & >
 
using StrToWeightImplBaseT = std::unique_ptr< WeightImplBase >(*)(std::string_view str)
 
using WeightClassRegisterer = GenericRegisterer< WeightClassRegister >
 

Enumerations

enum  ArcFilterType : uint8_t { ArcFilterType::ANY, ArcFilterType::EPSILON, ArcFilterType::INPUT_EPSILON, ArcFilterType::OUTPUT_EPSILON }
 
enum  ArcSortType : uint8_t { ArcSortType::ILABEL, ArcSortType::OLABEL }
 
enum  MapType : uint8_t {
  MapType::ARC_SUM, MapType::ARC_UNIQUE, MapType::IDENTITY, MapType::INPUT_EPSILON,
  MapType::INVERT, MapType::OUTPUT_EPSILON, MapType::PLUS, MapType::POWER,
  MapType::QUANTIZE, MapType::RMWEIGHT, MapType::SUPERFINAL, MapType::TIMES,
  MapType::TO_LOG, MapType::TO_LOG64, MapType::TO_STD
}
 
enum  RandArcSelection : uint8_t { RandArcSelection::UNIFORM, RandArcSelection::LOG_PROB, RandArcSelection::FAST_LOG_PROB }
 

Functions

bool Compress (const FstClass &fst, const std::string &source)
 
 REGISTER_FST_OPERATION_3ARCS (Compress, CompressArgs)
 
bool Decompress (const std::string &source, MutableFstClass *fst)
 
 REGISTER_FST_OPERATION_3ARCS (Decompress, DecompressArgs)
 
 REGISTER_FST_OPERATION (OpenFarReaderClass, StdArc, OpenFarReaderClassArgs)
 
 REGISTER_FST_OPERATION (OpenFarReaderClass, LogArc, OpenFarReaderClassArgs)
 
 REGISTER_FST_OPERATION (OpenFarReaderClass, Log64Arc, OpenFarReaderClassArgs)
 
 REGISTER_FST_OPERATION (OpenFarReaderClass, ErrorArc, OpenFarReaderClassArgs)
 
 REGISTER_FST_OPERATION (CreateFarWriterClass, StdArc, CreateFarWriterClassArgs)
 
 REGISTER_FST_OPERATION (CreateFarWriterClass, LogArc, CreateFarWriterClassArgs)
 
 REGISTER_FST_OPERATION (CreateFarWriterClass, Log64Arc, CreateFarWriterClassArgs)
 
 REGISTER_FST_OPERATION (CreateFarWriterClass, ErrorArc, CreateFarWriterClassArgs)
 
void CompileStrings (const std::vector< std::string > &sources, FarWriterClass &writer, std::string_view fst_type, int32_t generate_keys, FarEntryType fet, TokenType tt, const std::string &symbols_source, const std::string &unknown_symbol, bool keep_symbols, bool initial_symbols, const std::string &key_prefix, const std::string &key_suffix)
 
 REGISTER_FST_OPERATION_4ARCS (CompileStrings, FarCompileStringsArgs)
 
void Convert (FarReaderClass &reader, FarWriterClass &writer, std::string_view fst_type)
 
 REGISTER_FST_OPERATION_4ARCS (Convert, FarConvertArgs)
 
void Create (const std::vector< std::string > &sources, FarWriterClass &writer, const int32_t generate_keys, const std::string &key_prefix, const std::string &key_suffix)
 
 REGISTER_FST_OPERATION_4ARCS (Create, FarCreateArgs)
 
void Decode (FarReaderClass &reader, FarWriterClass &writer, const EncodeMapperClass &encoder)
 
 REGISTER_FST_OPERATION_4ARCS (Decode, FarDecodeArgs)
 
void Encode (FarReaderClass &reader, FarWriterClass &writer, EncodeMapperClass *encoder)
 
 REGISTER_FST_OPERATION_4ARCS (Encode, FarEncodeArgs)
 
bool Equal (FarReaderClass &reader1, FarReaderClass &reader2, float delta, std::string_view begin_key, std::string_view end_key)
 
 REGISTER_FST_OPERATION_4ARCS (Equal, FarEqualArgs)
 
void Extract (FarReaderClass &reader, int32_t generate_sources, const std::string &keys, const std::string &key_separator, const std::string &range_delimiter, const std::string &source_prefix, const std::string &source_suffix)
 
 REGISTER_FST_OPERATION_4ARCS (Extract, FarExtractArgs)
 
void GetInfo (const std::vector< std::string > &sources, const std::string &arc_type, const std::string &begin_key, const std::string &end_key, bool list_fsts, FarInfoData *data)
 
 REGISTER_FST_OPERATION_4ARCS (GetInfo, FarGetInfoArgs)
 
void Info (const std::vector< std::string > &sources, const std::string &arc_type, const std::string &begin_key, const std::string &end_key, bool list_fsts)
 
 REGISTER_FST_OPERATION_4ARCS (Info, FarInfoArgs)
 
bool Isomorphic (FarReaderClass &reader1, FarReaderClass &reader2, float delta, std::string_view begin_key, std::string_view end_key)
 
 REGISTER_FST_OPERATION_4ARCS (Isomorphic, FarIsomorphicArgs)
 
void PrintStrings (FarReaderClass &reader, const FarEntryType entry_type, const TokenType token_type, const std::string &begin_key, const std::string &end_key, bool print_key, bool print_weight, const std::string &symbols_source, bool initial_symbols, const int32_t generate_sources, const std::string &source_prefix, const std::string &source_suffix)
 
 REGISTER_FST_OPERATION_4ARCS (PrintStrings, FarPrintStringsArgs)
 
bool GetFarType (std::string_view str, FarType *far_type)
 
bool GetFarEntryType (std::string_view str, FarEntryType *entry_type)
 
void ExpandArgs (int argc, char **argv, int *argcp, char ***argvp)
 
std::string LoadArcTypeFromFar (const std::string &far_source)
 
std::string LoadArcTypeFromFst (const std::string &fst_source)
 
bool ValidateDelimiter ()
 
bool ValidateEmptySymbol ()
 
void 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)
 
 REGISTER_FST_OPERATION_3ARCS (LinearCompileTpl, LinearCompileArgs)
 
void SplitByWhitespace (const std::string &str, std::vector< std::string > *out)
 
int ScanNumClasses (char **models, int models_len)
 
void Compose (const FstClass &ifst1, const FstClass &ifst2, const std::vector< std::pair< int64_t, int64_t >> &parens, const std::vector< int64_t > &assignments, MutableFstClass *ofst, const MPdtComposeOptions &copts, bool left_pdt)
 
 REGISTER_FST_OPERATION_3ARCS (Compose, MPdtComposeArgs)
 
void Expand (const FstClass &ifst, const std::vector< std::pair< int64_t, int64_t >> &parens, const std::vector< int64_t > &assignments, MutableFstClass *ofst, const MPdtExpandOptions &opts)
 
 REGISTER_FST_OPERATION_3ARCS (Expand, MPdtExpandArgs)
 
void Expand (const FstClass &ifst, const std::vector< std::pair< int64_t, int64_t >> &parens, const std::vector< int64_t > &assignments, MutableFstClass *ofst, bool connect)
 
void Reverse (const FstClass &ifst, const std::vector< std::pair< int64_t, int64_t >> &parens, std::vector< int64_t > *assignments, MutableFstClass *ofst)
 
 REGISTER_FST_OPERATION_3ARCS (Reverse, MPdtReverseArgs)
 
void Info (const FstClass &ifst, const std::vector< std::pair< int64_t, int64_t >> &parens, const std::vector< int64_t > &assignments)
 
 REGISTER_FST_OPERATION_3ARCS (Info, MPdtInfoArgs)
 
bool GetPdtComposeFilter (std::string_view str, PdtComposeFilter *cf)
 
bool GetPdtParserType (std::string_view str, PdtParserType *pt)
 
void Compose (const FstClass &ifst1, const FstClass &ifst2, const std::vector< std::pair< int64_t, int64_t >> &parens, MutableFstClass *ofst, const PdtComposeOptions &copts, bool left_pdt)
 
 REGISTER_FST_OPERATION_3ARCS (Compose, PdtComposeArgs)
 
void Expand (const FstClass &ifst, const std::vector< std::pair< int64_t, int64_t >> &parens, MutableFstClass *ofst, const PdtExpandOptions &opts)
 
 REGISTER_FST_OPERATION_3ARCS (Expand, PdtExpandArgs)
 
void Expand (const FstClass &ifst, const std::vector< std::pair< int64_t, int64_t >> &parens, MutableFstClass *ofst, bool connect, bool keep_parentheses, const WeightClass &weight_threshold)
 
void Replace (const std::vector< std::pair< int64_t, const FstClass * >> &pairs, MutableFstClass *ofst, std::vector< std::pair< int64_t, int64_t >> *parens, int64_t root, PdtParserType parser_type, int64_t start_paren_labels, const std::string &left_paren_prefix, const std::string &right_paren_prefix)
 
 REGISTER_FST_OPERATION_3ARCS (Replace, PdtReplaceArgs)
 
void Reverse (const FstClass &ifst, const std::vector< std::pair< int64_t, int64_t >> &parens, MutableFstClass *ofst)
 
 REGISTER_FST_OPERATION_3ARCS (Reverse, PdtReverseArgs)
 
void ShortestPath (const FstClass &ifst, const std::vector< std::pair< int64_t, int64_t >> &parens, MutableFstClass *ofst, const PdtShortestPathOptions &opts)
 
 REGISTER_FST_OPERATION_3ARCS (ShortestPath, PdtShortestPathArgs)
 
void Info (const FstClass &ifst, const std::vector< std::pair< int64_t, int64_t >> &parens)
 
 REGISTER_FST_OPERATION_3ARCS (Info, PdtInfoArgs)
 
template<class Arc >
void Compress (CompressArgs *args)
 
template<class Arc >
void Decompress (DecompressArgs *args)
 
template<class Arc >
void OpenFarReaderClass (OpenFarReaderClassArgs *args)
 
template<class Arc >
void CreateFarWriterClass (CreateFarWriterClassArgs *args)
 
template<class Arc >
void CompileStrings (FarCompileStringsArgs *args)
 
template<class Arc >
void Convert (FarConvertArgs *args)
 
template<class Arc >
void Create (FarCreateArgs *args)
 
template<class Arc >
void Decode (FarDecodeArgs *args)
 
template<class Arc >
void Encode (FarEncodeArgs *args)
 
template<class Arc >
void Equal (FarEqualArgs *args)
 
template<class Arc >
void Extract (FarExtractArgs *args)
 
template<class Arc >
void Info (FarInfoArgs *args)
 
template<class Arc >
void GetInfo (FarGetInfoArgs *args)
 
template<class Arc >
void Isomorphic (FarIsomorphicArgs *args)
 
template<class Arc >
void PrintStrings (FarPrintStringsArgs *args)
 
template<class Arc >
Arc::Label LookUp (const std::string &str, SymbolTable *syms)
 
template<class Arc >
void 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 ReplaceCopy (InputIterator first, InputIterator last, OutputIterator result, const T &old_value, const T &new_value)
 
template<class Arc >
bool 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 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 AddVocab (const std::string &vocab, SymbolTable *isyms, SymbolTable *fsyms, SymbolTable *osyms, LinearFstDataBuilder< Arc > *builder)
 
template<class Arc >
void AddVocab (const std::string &vocab, SymbolTable *isyms, SymbolTable *fsyms, SymbolTable *osyms, LinearClassifierFstDataBuilder< Arc > *builder)
 
template<class Arc >
void AddModel (const std::string &model, SymbolTable *fsyms, SymbolTable *osyms, LinearFstDataBuilder< Arc > *builder)
 
template<class Arc >
void AddModel (const std::string &model, SymbolTable *fsyms, SymbolTable *osyms, LinearClassifierFstDataBuilder< Arc > *builder)
 
template<class Arc >
void LinearCompileTpl (LinearCompileArgs *args)
 
template<class Arc >
void Compose (MPdtComposeArgs *args)
 
template<class Arc >
void Expand (MPdtExpandArgs *args)
 
template<class Arc >
void Reverse (MPdtReverseArgs *args)
 
template<class Arc >
void Info (MPdtInfoArgs *args)
 
template<class Arc >
void Compose (PdtComposeArgs *args)
 
template<class Arc >
void Expand (PdtExpandArgs *args)
 
template<class Arc >
void Replace (PdtReplaceArgs *args)
 
template<class Arc >
void Reverse (PdtReverseArgs *args)
 
template<class Arc >
void ShortestPath (PdtShortestPathArgs *args)
 
template<class Arc >
void Info (PdtInfoArgs *args)
 
template<class Arc >
void InitArcIteratorClass (InitArcIteratorClassArgs *args)
 
template<class Arc >
void InitMutableArcIteratorClass (InitMutableArcIteratorClassArgs *args)
 
template<class Arc >
void ArcSort (FstArcSortArgs *args)
 
void ArcSort (MutableFstClass *ofst, ArcSortType)
 
template<class Arc >
void Closure (FstClosureArgs *args)
 
void Closure (MutableFstClass *ofst, ClosureType closure_type)
 
template<class Arc >
void CompileInternal (FstCompileArgs *args)
 
void Compile (std::istream &istrm, const std::string &source, const std::string &dest, const std::string &fst_type, const std::string &arc_type, const SymbolTable *isyms, const SymbolTable *osyms, const SymbolTable *ssyms, bool accep, bool ikeep, bool okeep, bool nkeep)
 
std::unique_ptr< FstClassCompileInternal (std::istream &istrm, const std::string &source, const std::string &fst_type, const std::string &arc_type, const SymbolTable *isyms, const SymbolTable *osyms, const SymbolTable *ssyms, bool accep, bool ikeep, bool okeep, bool nkeep)
 
template<class Arc >
void Compose (FstComposeArgs *args)
 
void Compose (const FstClass &ifst1, const FstClass &ifst2, MutableFstClass *ofst, const ComposeOptions &opts=ComposeOptions())
 
template<class Arc >
void Concat (FstConcatArgs1 *args)
 
template<class Arc >
void Concat (FstConcatArgs2 *args)
 
template<class Arc >
void Concat (FstConcatArgs3 *args)
 
void Concat (MutableFstClass *fst1, const FstClass &fst2)
 
void Concat (const FstClass &fst1, MutableFstClass *fst2)
 
void Concat (const std::vector< FstClass * > &fsts1, MutableFstClass *fst2)
 
template<class Arc >
void Connect (MutableFstClass *fst)
 
template<class Arc >
void Convert (FstConvertArgs *args)
 
std::unique_ptr< FstClassConvert (const FstClass &fst, const std::string &new_type)
 
template<class Arc >
void Decode (FstDecodeArgs *args)
 
void Decode (MutableFstClass *fst, const EncodeMapperClass &encoder)
 
template<class Arc >
void Determinize (FstDeterminizeArgs *args)
 
void Determinize (const FstClass &ifst, MutableFstClass *ofst, const DeterminizeOptions &opts)
 
template<class Arc >
void Difference (FstDifferenceArgs *args)
 
void Difference (const FstClass &ifst1, const FstClass &ifst2, MutableFstClass *ofst, const ComposeOptions &opts=ComposeOptions())
 
template<class Arc >
void Disambiguate (FstDisambiguateArgs *args)
 
void Disambiguate (const FstClass &ifst, MutableFstClass *ofst, const DisambiguateOptions &opts)
 
template<class Arc >
void Draw (FstDrawArgs *args)
 
void Draw (const FstClass &fst, const SymbolTable *isyms, const SymbolTable *osyms, const SymbolTable *ssyms, bool accep, const std::string &title, float width, float height, bool portrait, bool vertical, float ranksep, float nodesep, int fontsize, int precision, const std::string &float_format, bool show_weight_one, std::ostream &ostrm, const std::string &dest)
 
template<class Arc >
void Encode (FstEncodeArgs *args)
 
void Encode (MutableFstClass *fst, EncodeMapperClass *mapper)
 
template<class Arc >
void EpsNormalize (FstEpsNormalizeArgs *args)
 
void EpsNormalize (const FstClass &ifst, MutableFstClass *ofst, EpsNormalizeType norm_type=EPS_NORM_INPUT)
 
template<class Arc >
void Equal (FstEqualArgs *args)
 
bool Equal (const FstClass &fst1, const FstClass &fst2, float delta=kDelta)
 
template<class Arc >
void Equivalent (FstEquivalentArgs *args)
 
bool Equivalent (const FstClass &fst1, const FstClass &fst2, float delta=kDelta, bool *error=nullptr)
 
bool GetArcFilterType (std::string_view str, ArcFilterType *arc_filter_type)
 
bool GetArcSortType (std::string_view str, ArcSortType *sort_type)
 
bool GetClosureType (std::string_view str, ClosureType *closure_type)
 
bool GetComposeFilter (std::string_view str, ComposeFilter *compose_filter)
 
bool GetDeterminizeType (std::string_view str, DeterminizeType *det_type)
 
uint8_t GetEncodeFlags (bool encode_labels, bool encode_weights)
 
bool GetEpsNormalizeType (std::string_view str, EpsNormalizeType *eps_norm_type)
 
bool GetMapType (std::string_view str, MapType *map_type)
 
bool GetProjectType (std::string_view str, ProjectType *project_type)
 
uint8_t GetPushFlags (bool push_weights, bool push_labels, bool remove_total_weight, bool remove_common_affix)
 
bool GetQueueType (std::string_view str, QueueType *queue_type)
 
bool GetRandArcSelection (std::string_view str, RandArcSelection *ras)
 
bool GetReplaceLabelType (std::string_view str, bool epsilon_on_replace, ReplaceLabelType *rlt)
 
bool GetReweightType (std::string_view str, ReweightType *reweight_type)
 
uint64_t GetSeed (uint64_t seed)
 
bool GetTokenType (std::string_view str, TokenType *token_type)
 
template<class Arc >
void Info (FstInfoArgs *args)
 
void Info (const FstClass &fst, bool test_properties, ArcFilterType arc_filter, const std::string &info_type, bool verify)
 
template<class Arc >
void Intersect (FstIntersectArgs *args)
 
void Intersect (const FstClass &ifst, const FstClass &ifst2, MutableFstClass *ofst, const ComposeOptions &opts=ComposeOptions())
 
template<class Arc >
void Invert (MutableFstClass *fst)
 
template<class Arc >
void Isomorphic (FstIsomorphicArgs *args)
 
bool Isomorphic (const FstClass &fst1, const FstClass &fst2, float delta=kDelta)
 
template<class M >
std::unique_ptr< Fst< typename M::ToArc > > ArcMap (const Fst< typename M::FromArc > &fst, const M &mapper)
 
template<class M >
std::unique_ptr< Fst< typename M::ToArc > > StateMap (const Fst< typename M::FromArc > &fst, const M &mapper)
 
template<class Arc >
void Map (FstMapArgs *args)
 
std::unique_ptr< FstClassMap (const FstClass &ifst, MapType map_type, float delta, double power, const WeightClass &weight)
 
template<class Arc >
void Minimize (FstMinimizeArgs *args)
 
void Minimize (MutableFstClass *ofst1, MutableFstClass *ofst2=nullptr, float delta=kShortestDelta, bool allow_nondet=false)
 
template<class Arc >
void Print (FstPrintArgs *args)
 
void Print (const FstClass &fst, std::ostream &ostrm, const std::string &dest, const SymbolTable *isyms=nullptr, const SymbolTable *osyms=nullptr, const SymbolTable *ssyms=nullptr, bool accept=true, bool show_weight_one=true, const std::string &missing_sym="")
 
void PrintFst (const FstClass &fst, std::ostream &ostrm, const std::string &dest, const SymbolTable *isyms, const SymbolTable *osyms, const SymbolTable *ssyms, bool accept, bool show_weight_one, const std::string &missing_sym="")
 
template<class Arc >
void PrintFst (const Fst< Arc > &fst, std::ostream &ostrm, std::string_view dest="", const SymbolTable *isyms=nullptr, const SymbolTable *osyms=nullptr, const SymbolTable *ssyms=nullptr)
 
template<class Arc >
void Project (FstProjectArgs *args)
 
void Project (MutableFstClass *fst, ProjectType project_type)
 
template<class Arc >
void Prune (FstPruneArgs1 *args)
 
template<class Arc >
void Prune (FstPruneArgs2 *args)
 
void Prune (const FstClass &ifst, MutableFstClass *ofst, const WeightClass &weight_threshold, int64_t state_threshold=kNoStateId, float delta=kDelta)
 
void Prune (MutableFstClass *fst, const WeightClass &weight_threshold, int64_t state_threshold=kNoStateId, float delta=kDelta)
 
template<class Arc >
void Push (FstPushArgs1 *args)
 
template<class Arc >
void Push (FstPushArgs2 *args)
 
void Push (MutableFstClass *fst, ReweightType type=REWEIGHT_TO_INITIAL, float delta=kShortestDelta, bool remove_total_weight=false)
 
void Push (const FstClass &ifst, MutableFstClass *ofst, uint8_t flags, ReweightType rew_type, float delta=kShortestDelta)
 
template<class Arc >
void RandEquivalent (FstRandEquivalentArgs *args)
 
bool RandEquivalent (const FstClass &fst1, const FstClass &fst2, int32_t npath=1, const RandGenOptions< RandArcSelection > &opts=RandGenOptions< RandArcSelection >(RandArcSelection::UNIFORM), float delta=kDelta, uint64_t seed=std::random_device()())
 
template<class Arc >
void RandGen (FstRandGenArgs *args)
 
void RandGen (const FstClass &ifst, MutableFstClass *ofst, const RandGenOptions< RandArcSelection > &opts=RandGenOptions< RandArcSelection >(RandArcSelection::UNIFORM), uint64_t seed=std::random_device()())
 
template<class Arc >
void Relabel (FstRelabelArgs1 *args)
 
template<class Arc >
void Relabel (FstRelabelArgs2 *args)
 
void Relabel (MutableFstClass *ofst, const SymbolTable *old_isymbols, const SymbolTable *new_isymbols, const std::string &unknown_isymbol, bool attach_new_isymbols, const SymbolTable *old_osymbols, const SymbolTable *new_osymbols, const std::string &unknown_osymbol, bool attach_new_osymbols)
 
void Relabel (MutableFstClass *ofst, const std::vector< std::pair< int64_t, int64_t >> &ipairs, const std::vector< std::pair< int64_t, int64_t >> &opairs)
 
template<class Arc >
void Replace (FstReplaceArgs *args)
 
void Replace (const std::vector< std::pair< int64_t, const FstClass * >> &pairs, MutableFstClass *ofst, const ReplaceOptions &opts)
 
template<class Arc >
void Reverse (FstReverseArgs *args)
 
void Reverse (const FstClass &ifst, MutableFstClass *ofst, bool require_superinitial=true)
 
template<class Arc >
void Reweight (FstReweightArgs *args)
 
void Reweight (MutableFstClass *fst, const std::vector< WeightClass > &potentials, ReweightType reweight_type)
 
template<class Arc >
void RmEpsilon (FstRmEpsilonArgs *args)
 
void RmEpsilon (MutableFstClass *fst, const RmEpsilonOptions &opts)
 
template<class OpReg >
void Apply (const std::string &op_name, const std::string &arc_type, typename OpReg::ArgPack *args)
 
std::vector< std::pair< int64_t, const FstClass * > > BorrowPairs (const std::vector< std::pair< int64_t, std::unique_ptr< const FstClass >>> &pairs)
 
template<class Arc >
void ShortestDistance (FstShortestDistanceArgs1 *args)
 
template<class Arc >
void ShortestDistance (FstShortestDistanceArgs2 *args)
 
template<class Arc >
void ShortestDistance (FstShortestDistanceArgs3 *args)
 
void ShortestDistance (const FstClass &fst, std::vector< WeightClass > *distance, const ShortestDistanceOptions &opts)
 
void ShortestDistance (const FstClass &ifst, std::vector< WeightClass > *distance, bool reverse=false, double delta=fst::kShortestDelta)
 
WeightClass ShortestDistance (const FstClass &ifst, double delta=fst::kShortestDelta)
 
template<class Arc >
void ShortestPath (FstShortestPathArgs *args)
 
void ShortestPath (const FstClass &ifst, MutableFstClass *ofst, const ShortestPathOptions &opts)
 
template<class Arc >
void InitStateIteratorClass (InitStateIteratorClassArgs *args)
 
template<class Arc >
void Synchronize (FstSynchronizeArgs *args)
 
void Synchronize (const FstClass &ifst, MutableFstClass *ofst)
 
bool ReadPotentials (std::string_view weight_type, const std::string &source, std::vector< WeightClass > *potentials)
 
bool WritePotentials (const std::string &source, const std::vector< WeightClass > &potentials)
 
template<class Arc >
void TopSort (FstTopSortArgs *args)
 
bool TopSort (MutableFstClass *fst)
 
template<class Arc >
void Union (FstUnionArgs1 *args)
 
template<class Arc >
void Union (FstUnionArgs2 *args)
 
void Union (MutableFstClass *fst1, const FstClass &fst2)
 
void Union (MutableFstClass *fst1, const std::vector< const FstClass * > &fsts2)
 
template<class Arc >
void Verify (FstVerifyArgs *args)
 
bool Verify (const FstClass &fst)
 
bool operator== (const WeightClass &lhs, const WeightClass &rhs)
 
bool operator!= (const WeightClass &lhs, const WeightClass &rhs)
 
WeightClass Plus (const WeightClass &lhs, const WeightClass &rhs)
 
WeightClass Times (const WeightClass &lhs, const WeightClass &rhs)
 
WeightClass Divide (const WeightClass &lhs, const WeightClass &rhs)
 
WeightClass Power (const WeightClass &w, size_t n)
 
std::ostream & operator<< (std::ostream &o, const WeightClass &c)
 
template<class W >
std::unique_ptr< WeightImplBaseStrToWeightImplBase (std::string_view str)
 
 REGISTER_FST_OPERATION_3ARCS (InitArcIteratorClass, InitArcIteratorClassArgs)
 
 REGISTER_FST_OPERATION_3ARCS (InitMutableArcIteratorClass, InitMutableArcIteratorClassArgs)
 
 REGISTER_FST_OPERATION_3ARCS (ArcSort, FstArcSortArgs)
 
 REGISTER_FST_OPERATION_3ARCS (Closure, FstClosureArgs)
 
 REGISTER_FST_OPERATION_3ARCS (CompileInternal, FstCompileArgs)
 
 REGISTER_FST_OPERATION_3ARCS (Compose, FstComposeArgs)
 
 REGISTER_FST_OPERATION_3ARCS (Concat, FstConcatArgs1)
 
 REGISTER_FST_OPERATION_3ARCS (Concat, FstConcatArgs2)
 
 REGISTER_FST_OPERATION_3ARCS (Concat, FstConcatArgs3)
 
 REGISTER_FST_OPERATION_3ARCS (Connect, MutableFstClass)
 
 REGISTER_FST_OPERATION_3ARCS (Convert, FstConvertArgs)
 
 REGISTER_FST_OPERATION_3ARCS (Decode, FstDecodeArgs)
 
 REGISTER_FST_OPERATION_3ARCS (Determinize, FstDeterminizeArgs)
 
 REGISTER_FST_OPERATION_3ARCS (Difference, FstDifferenceArgs)
 
 REGISTER_FST_OPERATION_3ARCS (Disambiguate, FstDisambiguateArgs)
 
 REGISTER_FST_OPERATION_3ARCS (Draw, FstDrawArgs)
 
 REGISTER_FST_OPERATION_3ARCS (Encode, FstEncodeArgs)
 
 REGISTER_ENCODEMAPPER_CLASS (StdArc)
 
 REGISTER_ENCODEMAPPER_CLASS (LogArc)
 
 REGISTER_ENCODEMAPPER_CLASS (Log64Arc)
 
 REGISTER_FST_OPERATION_3ARCS (EpsNormalize, FstEpsNormalizeArgs)
 
 REGISTER_FST_OPERATION_3ARCS (Equal, FstEqualArgs)
 
 REGISTER_FST_OPERATION_3ARCS (Equivalent, FstEquivalentArgs)
 
 REGISTER_FST_CLASSES (StdArc)
 
 REGISTER_FST_CLASSES (LogArc)
 
 REGISTER_FST_CLASSES (Log64Arc)
 
 REGISTER_FST_OPERATION_3ARCS (Info, FstInfoArgs)
 
 REGISTER_FST_OPERATION_3ARCS (Intersect, FstIntersectArgs)
 
 REGISTER_FST_OPERATION_3ARCS (Invert, MutableFstClass)
 
 REGISTER_FST_OPERATION_3ARCS (Isomorphic, FstIsomorphicArgs)
 
 REGISTER_FST_OPERATION_3ARCS (Map, FstMapArgs)
 
 REGISTER_FST_OPERATION_3ARCS (Minimize, FstMinimizeArgs)
 
 REGISTER_FST_OPERATION_3ARCS (Print, FstPrintArgs)
 
 REGISTER_FST_OPERATION_3ARCS (Project, FstProjectArgs)
 
 REGISTER_FST_OPERATION_3ARCS (Prune, FstPruneArgs1)
 
 REGISTER_FST_OPERATION_3ARCS (Prune, FstPruneArgs2)
 
 REGISTER_FST_OPERATION_3ARCS (Push, FstPushArgs1)
 
 REGISTER_FST_OPERATION_3ARCS (Push, FstPushArgs2)
 
 REGISTER_FST_OPERATION_3ARCS (RandEquivalent, FstRandEquivalentArgs)
 
 REGISTER_FST_OPERATION_3ARCS (RandGen, FstRandGenArgs)
 
 REGISTER_FST_OPERATION_3ARCS (Relabel, FstRelabelArgs1)
 
 REGISTER_FST_OPERATION_3ARCS (Relabel, FstRelabelArgs2)
 
 REGISTER_FST_OPERATION_3ARCS (Replace, FstReplaceArgs)
 
 REGISTER_FST_OPERATION_3ARCS (Reverse, FstReverseArgs)
 
 REGISTER_FST_OPERATION_3ARCS (Reweight, FstReweightArgs)
 
 REGISTER_FST_OPERATION_3ARCS (RmEpsilon, FstRmEpsilonArgs)
 
 REGISTER_FST_OPERATION_3ARCS (ShortestDistance, FstShortestDistanceArgs1)
 
 REGISTER_FST_OPERATION_3ARCS (ShortestDistance, FstShortestDistanceArgs2)
 
 REGISTER_FST_OPERATION_3ARCS (ShortestDistance, FstShortestDistanceArgs3)
 
 REGISTER_FST_OPERATION_3ARCS (ShortestPath, FstShortestPathArgs)
 
 REGISTER_FST_OPERATION_3ARCS (InitStateIteratorClass, InitStateIteratorClassArgs)
 
 REGISTER_FST_OPERATION_3ARCS (Synchronize, FstSynchronizeArgs)
 
 REGISTER_FST_OPERATION_3ARCS (TopSort, FstTopSortArgs)
 
 REGISTER_FST_OPERATION_3ARCS (Union, FstUnionArgs1)
 
 REGISTER_FST_OPERATION_3ARCS (Union, FstUnionArgs2)
 
 REGISTER_FST_OPERATION_3ARCS (Verify, FstVerifyArgs)
 
 REGISTER_FST_WEIGHT (StdArc::Weight)
 

Variables

constexpr uint64_t kDefaultSeed = std::numeric_limits<uint64_t>::max()
 

Typedef Documentation

Definition at line 35 of file compressscript.h.

using fst::script::CompressInnerArgs = typedef std::tuple<const FstClass &, const std::string &>

Definition at line 33 of file compressscript.h.

Definition at line 227 of file far-class.h.

using fst::script::CreateFarWriterClassInnerArgs = typedef std::pair<const std::string &, FarType>

Definition at line 223 of file far-class.h.

Definition at line 48 of file compressscript.h.

using fst::script::DecompressInnerArgs = typedef std::tuple<const std::string &, MutableFstClass *>

Definition at line 46 of file compressscript.h.

using fst::script::FarConvertArgs = typedef std::tuple<FarReaderClass &, FarWriterClass &, std::string_view>

Definition at line 88 of file farscript.h.

Definition at line 123 of file farscript.h.

Definition at line 137 of file farscript.h.

Definition at line 153 of file farscript.h.

using fst::script::FarEqualInnerArgs = typedef std::tuple<FarReaderClass &, FarReaderClass &, float, std::string_view, std::string_view>

Definition at line 151 of file farscript.h.

using fst::script::FarExtractArgs = typedef std::tuple<FarReaderClass &, int32_t, const std::string &, const std::string &, const std::string &, const std::string &, const std::string &>

Definition at line 171 of file farscript.h.

using fst::script::FarGetInfoArgs = typedef std::tuple<const std::vector<std::string> &, const std::string &, const std::string &, const bool, FarInfoData *>

Definition at line 203 of file farscript.h.

using fst::script::FarInfoArgs = typedef std::tuple<const std::vector<std::string> &, const std::string &, const std::string &, const bool>

Definition at line 189 of file farscript.h.

Definition at line 220 of file farscript.h.

using fst::script::FarIsomorphicInnerArgs = typedef std::tuple<FarReaderClass &, FarReaderClass &, float, std::string_view, std::string_view>

Definition at line 218 of file farscript.h.

Definition at line 33 of file arcsort.h.

using fst::script::FstClosureArgs = typedef std::pair<MutableFstClass *, const ClosureType>

Definition at line 31 of file closure.h.

Definition at line 61 of file compile.h.

using fst::script::FstComposeArgs = typedef std::tuple<const FstClass &, const FstClass &, MutableFstClass *, const ComposeOptions &>

Definition at line 32 of file compose.h.

using fst::script::FstConcatArgs1 = typedef std::pair<MutableFstClass *, const FstClass &>

Definition at line 32 of file concat.h.

using fst::script::FstConcatArgs2 = typedef std::pair<const FstClass &, MutableFstClass *>

Definition at line 41 of file concat.h.

using fst::script::FstConcatArgs3 = typedef std::pair<const std::vector<FstClass *> &, MutableFstClass *>

Definition at line 51 of file concat.h.

Definition at line 36 of file convert.h.

using fst::script::FstConvertInnerArgs = typedef std::pair<const FstClass &, const std::string &>

Definition at line 33 of file convert.h.

using fst::script::FstDecodeArgs = typedef std::pair<MutableFstClass *, const EncodeMapperClass &>

Definition at line 32 of file decode.h.

using fst::script::FstDeterminizeArgs = typedef std::tuple<const FstClass &, MutableFstClass *, const DeterminizeOptions &>

Definition at line 55 of file determinize.h.

using fst::script::FstDifferenceArgs = typedef std::tuple<const FstClass &, const FstClass &, MutableFstClass *, const ComposeOptions &>

Definition at line 34 of file difference.h.

using fst::script::FstDisambiguateArgs = typedef std::tuple<const FstClass &, MutableFstClass *, const DisambiguateOptions &>

Definition at line 50 of file disambiguate.h.

Definition at line 32 of file encode.h.

Definition at line 32 of file epsnormalize.h.

Definition at line 34 of file equal.h.

using fst::script::FstEqualInnerArgs = typedef std::tuple<const FstClass &, const FstClass &, float>

Definition at line 32 of file equal.h.

Definition at line 35 of file equivalent.h.

using fst::script::FstEquivalentInnerArgs = typedef std::tuple<const FstClass &, const FstClass &, float, bool *>

Definition at line 33 of file equivalent.h.

using fst::script::FstInfoArgs = typedef std::tuple<const FstClass &, bool, ArcFilterType, const std::string &, bool>

Definition at line 34 of file info.h.

using fst::script::FstIntersectArgs = typedef std::tuple<const FstClass &, const FstClass &, MutableFstClass *, const ComposeOptions &>

Definition at line 34 of file intersect.h.

Definition at line 35 of file isomorphic.h.

using fst::script::FstIsomorphicInnerArgs = typedef std::tuple<const FstClass &, const FstClass &, float>

Definition at line 33 of file isomorphic.h.

Definition at line 77 of file map.h.

using fst::script::FstMapInnerArgs = typedef std::tuple<const FstClass &, MapType, float, double, const WeightClass &>

Definition at line 75 of file map.h.

using fst::script::FstMinimizeArgs = typedef std::tuple<MutableFstClass *, MutableFstClass *, float, bool>

Definition at line 32 of file minimize.h.

Definition at line 30 of file project.h.

using fst::script::FstPruneArgs1 = typedef std::tuple<const FstClass &, MutableFstClass *, const WeightClass &, int64_t, float>

Definition at line 39 of file prune.h.

using fst::script::FstPruneArgs2 = typedef std::tuple<MutableFstClass *, const WeightClass &, int64_t, float>

Definition at line 56 of file prune.h.

using fst::script::FstPushArgs1 = typedef std::tuple<MutableFstClass *, ReweightType, float, bool>

Definition at line 34 of file push.h.

using fst::script::FstPushArgs2 = typedef std::tuple<const FstClass &, MutableFstClass *, uint8_t, ReweightType, float>

Definition at line 43 of file push.h.

Definition at line 40 of file randequivalent.h.

using fst::script::FstRandEquivalentInnerArgs = typedef std::tuple<const FstClass &, const FstClass &, int32_t, const RandGenOptions<RandArcSelection> &, float, uint64_t>

Definition at line 38 of file randequivalent.h.

using fst::script::FstRandGenArgs = typedef std::tuple<const FstClass &, MutableFstClass *, const RandGenOptions<RandArcSelection> &, uint64_t>

Definition at line 36 of file randgen.h.

using fst::script::FstRelabelArgs1 = typedef std::tuple<MutableFstClass *, const SymbolTable *, const SymbolTable *, const std::string &, bool, const SymbolTable *, const SymbolTable *, const std::string &, bool>

Definition at line 39 of file relabel.h.

using fst::script::FstRelabelArgs2 = typedef std::tuple<MutableFstClass *, const std::vector<std::pair<int64_t, int64_t>> &, const std::vector<std::pair<int64_t, int64_t>> &>

Definition at line 52 of file relabel.h.

using fst::script::FstReplaceArgs = typedef std::tuple<const std::vector<std::pair<int64_t, const FstClass *>> &, MutableFstClass *, const ReplaceOptions &>

Definition at line 56 of file replace.h.

using fst::script::FstReverseArgs = typedef std::tuple<const FstClass &, MutableFstClass *, bool>

Definition at line 31 of file reverse.h.

using fst::script::FstReweightArgs = typedef std::tuple<MutableFstClass *, const std::vector<WeightClass> &, ReweightType>

Definition at line 35 of file reweight.h.

using fst::script::FstRmEpsilonArgs = typedef std::pair<MutableFstClass *, const RmEpsilonOptions &>

Definition at line 124 of file rmepsilon.h.

using fst::script::FstShortestDistanceArgs1 = typedef std::tuple<const FstClass &, std::vector<WeightClass> *, const ShortestDistanceOptions &>

Definition at line 160 of file shortest-distance.h.

using fst::script::FstShortestDistanceArgs2 = typedef std::tuple<const FstClass &, std::vector<WeightClass> *, bool, double>

Definition at line 217 of file shortest-distance.h.

Definition at line 232 of file shortest-distance.h.

using fst::script::FstShortestDistanceInnerArgs3 = typedef std::tuple<const FstClass &, double>

Definition at line 229 of file shortest-distance.h.

using fst::script::FstShortestPathArgs = typedef std::tuple<const FstClass &, MutableFstClass *, const ShortestPathOptions &>

Definition at line 136 of file shortest-path.h.

using fst::script::FstSynchronizeArgs = typedef std::pair<const FstClass &, MutableFstClass *>

Definition at line 31 of file synchronize.h.

Definition at line 28 of file topsort.h.

using fst::script::FstUnionArgs1 = typedef std::pair<MutableFstClass *, const FstClass &>

Definition at line 33 of file union.h.

using fst::script::FstUnionArgs2 = typedef std::tuple<MutableFstClass *, const std::vector<const FstClass *> &>

Definition at line 43 of file union.h.

using fst::script::FstVerifyArgs = typedef WithReturnValue<bool, const FstClass &>

Definition at line 29 of file verify.h.

using fst::script::InitArcIteratorClassArgs = typedef std::tuple<const FstClass &, int64_t, ArcIteratorClass *>

Definition at line 93 of file arciterator-class.h.

Definition at line 184 of file arciterator-class.h.

Definition at line 67 of file stateiterator-class.h.

using fst::script::LinearCompileArgs = typedef 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 &>

Definition at line 52 of file linearscript.h.

using fst::script::MPdtComposeArgs = typedef std::tuple<const FstClass &, const FstClass &, const std::vector<std::pair<int64_t, int64_t>> &, const std::vector<int64_t> &, MutableFstClass *, const MPdtComposeOptions &, bool>

Definition at line 53 of file mpdtscript.h.

using fst::script::MPdtExpandArgs = typedef std::tuple< const FstClass &, const std::vector<std::pair<int64_t, int64_t>> &, const std::vector<int64_t> &, MutableFstClass *, const MPdtExpandOptions &>

Definition at line 84 of file mpdtscript.h.

using fst::script::MPdtInfoArgs = typedef std::tuple<const FstClass &, const std::vector<std::pair<int64_t, int64_t>> &, const std::vector<int64_t> &>

Definition at line 144 of file mpdtscript.h.

using fst::script::MPdtReverseArgs = typedef std::tuple<const FstClass &, const std::vector<std::pair<int64_t, int64_t>> &, std::vector<int64_t> *, MutableFstClass *>

Definition at line 114 of file mpdtscript.h.

using fst::script::OpenFarReaderClassArgs = typedef WithReturnValue<std::unique_ptr<FarReaderClass>, const std::vector<std::string> &>

Definition at line 101 of file far-class.h.

using fst::script::PdtComposeArgs = typedef std::tuple<const FstClass &, const FstClass &, const std::vector<std::pair<int64_t, int64_t>> &, MutableFstClass *, const PdtComposeOptions &, bool>

Definition at line 57 of file pdtscript.h.

using fst::script::PdtExpandArgs = typedef std::tuple<const FstClass &, const std::vector<std::pair<int64_t, int64_t>> &, MutableFstClass *, const PdtExpandOptions &>

Definition at line 95 of file pdtscript.h.

using fst::script::PdtInfoArgs = typedef std::pair<const FstClass &, const std::vector<std::pair<int64_t, int64_t>> &>

Definition at line 249 of file pdtscript.h.

using fst::script::PdtReplaceArgs = typedef std::tuple<const std::vector<std::pair<int64_t, const FstClass *>> &, MutableFstClass *, std::vector<std::pair<int64_t, int64_t>> *, int64_t, PdtParserType, int64_t, const std::string &, const std::string &>

Definition at line 128 of file pdtscript.h.

using fst::script::PdtReverseArgs = typedef std::tuple<const FstClass &, const std::vector<std::pair<int64_t, int64_t>> &, MutableFstClass *>

Definition at line 163 of file pdtscript.h.

using fst::script::PdtShortestPathArgs = typedef std::tuple<const FstClass &, const std::vector<std::pair<int64_t, int64_t>> &, MutableFstClass *, const PdtShortestPathOptions &>

Definition at line 198 of file pdtscript.h.

using fst::script::StrToWeightImplBaseT = typedef std::unique_ptr<WeightImplBase> (*)(std::string_view str)

Definition at line 203 of file weight-class.h.

Definition at line 229 of file weight-class.h.

Enumeration Type Documentation

enum fst::script::ArcFilterType : uint8_t
strong
Enumerator
ANY 
EPSILON 
INPUT_EPSILON 
OUTPUT_EPSILON 

Definition at line 25 of file arcfilter-impl.h.

enum fst::script::ArcSortType : uint8_t
strong
Enumerator
ILABEL 
OLABEL 

Definition at line 31 of file arcsort.h.

enum fst::script::MapType : uint8_t
strong
Enumerator
ARC_SUM 
ARC_UNIQUE 
IDENTITY 
INPUT_EPSILON 
INVERT 
OUTPUT_EPSILON 
PLUS 
POWER 
QUANTIZE 
RMWEIGHT 
SUPERFINAL 
TIMES 
TO_LOG 
TO_LOG64 
TO_STD 

Definition at line 56 of file map.h.

enum fst::script::RandArcSelection : uint8_t
strong
Enumerator
UNIFORM 
LOG_PROB 
FAST_LOG_PROB 

Definition at line 115 of file script-impl.h.

Function Documentation

template<class Arc >
void fst::script::AddModel ( const std::string &  model,
SymbolTable fsyms,
SymbolTable osyms,
LinearFstDataBuilder< Arc > *  builder 
)

Definition at line 193 of file linearscript.h.

template<class Arc >
void fst::script::AddModel ( const std::string &  model,
SymbolTable fsyms,
SymbolTable osyms,
LinearClassifierFstDataBuilder< Arc > *  builder 
)

Definition at line 247 of file linearscript.h.

template<class Arc >
void fst::script::AddVocab ( const std::string &  vocab,
SymbolTable isyms,
SymbolTable fsyms,
SymbolTable osyms,
LinearFstDataBuilder< Arc > *  builder 
)

Definition at line 131 of file linearscript.h.

template<class Arc >
void fst::script::AddVocab ( const std::string &  vocab,
SymbolTable isyms,
SymbolTable fsyms,
SymbolTable osyms,
LinearClassifierFstDataBuilder< Arc > *  builder 
)

Definition at line 156 of file linearscript.h.

template<class OpReg >
void fst::script::Apply ( const std::string &  op_name,
const std::string &  arc_type,
typename OpReg::ArgPack *  args 
)

Definition at line 178 of file script-impl.h.

template<class M >
std::unique_ptr<Fst<typename M::ToArc> > fst::script::ArcMap ( const Fst< typename M::FromArc > &  fst,
const M &  mapper 
)

Definition at line 39 of file map.h.

template<class Arc >
void fst::script::ArcSort ( FstArcSortArgs args)

Definition at line 36 of file arcsort.h.

void fst::script::ArcSort ( MutableFstClass ofst,
ArcSortType  sort_type 
)

Definition at line 26 of file arcsort.cc.

std::vector<std::pair<int64_t, const FstClass *> > fst::script::BorrowPairs ( const std::vector< std::pair< int64_t, std::unique_ptr< const FstClass >>> &  pairs)
inline

Definition at line 229 of file script-impl.h.

template<class Arc >
void fst::script::Closure ( FstClosureArgs args)

Definition at line 34 of file closure.h.

void fst::script::Closure ( MutableFstClass ofst,
ClosureType  closure_type 
)

Definition at line 27 of file closure.cc.

void fst::script::Compile ( std::istream &  istrm,
const std::string &  source,
const std::string &  dest,
const std::string &  fst_type,
const std::string &  arc_type,
const SymbolTable isyms,
const SymbolTable osyms,
const SymbolTable ssyms,
bool  accep,
bool  ikeep,
bool  okeep,
bool  nkeep 
)

Definition at line 32 of file compile.cc.

template<class Arc >
void fst::script::CompileInternal ( FstCompileArgs args)

Definition at line 64 of file compile.h.

std::unique_ptr< FstClass > fst::script::CompileInternal ( std::istream &  istrm,
const std::string &  source,
const std::string &  fst_type,
const std::string &  arc_type,
const SymbolTable isyms,
const SymbolTable osyms,
const SymbolTable ssyms,
bool  accep,
bool  ikeep,
bool  okeep,
bool  nkeep 
)

Definition at line 43 of file compile.cc.

void fst::script::CompileStrings ( const std::vector< std::string > &  sources,
FarWriterClass writer,
std::string_view  fst_type,
int32_t  generate_keys,
FarEntryType  fet,
TokenType  tt,
const std::string &  symbols_source,
const std::string &  unknown_symbol,
bool  keep_symbols,
bool  initial_symbols,
const std::string &  key_prefix,
const std::string &  key_suffix 
)

Definition at line 46 of file farscript.cc.

template<class Arc >
void fst::script::CompileStrings ( FarCompileStringsArgs args)

Definition at line 71 of file farscript.h.

template<class Arc >
void fst::script::Compose ( FstComposeArgs args)

Definition at line 35 of file compose.h.

void fst::script::Compose ( const FstClass ifst1,
const FstClass ifst2,
const std::vector< std::pair< int64_t, int64_t >> &  parens,
const std::vector< int64_t > &  assignments,
MutableFstClass ofst,
const MPdtComposeOptions copts,
bool  left_pdt 
)

Definition at line 41 of file mpdtscript.cc.

void fst::script::Compose ( const FstClass ifst1,
const FstClass ifst2,
MutableFstClass ofst,
const ComposeOptions opts = ComposeOptions() 
)

Definition at line 28 of file compose.cc.

void fst::script::Compose ( const FstClass ifst1,
const FstClass ifst2,
const std::vector< std::pair< int64_t, int64_t >> &  parens,
MutableFstClass ofst,
const PdtComposeOptions copts,
bool  left_pdt 
)

Definition at line 44 of file pdtscript.cc.

template<class Arc >
void fst::script::Compose ( MPdtComposeArgs args)

Definition at line 56 of file mpdtscript.h.

template<class Arc >
void fst::script::Compose ( PdtComposeArgs args)

Definition at line 60 of file pdtscript.h.

bool fst::script::Compress ( const FstClass fst,
const std::string &  source 
)

Definition at line 29 of file compressscript.cc.

template<class Arc >
void fst::script::Compress ( CompressArgs args)

Definition at line 38 of file compressscript.h.

template<class Arc >
void fst::script::Concat ( FstConcatArgs1 args)

Definition at line 35 of file concat.h.

template<class Arc >
void fst::script::Concat ( FstConcatArgs2 args)

Definition at line 44 of file concat.h.

template<class Arc >
void fst::script::Concat ( FstConcatArgs3 args)

Definition at line 54 of file concat.h.

void fst::script::Concat ( MutableFstClass fst1,
const FstClass fst2 
)

Definition at line 29 of file concat.cc.

void fst::script::Concat ( const FstClass fst1,
MutableFstClass fst2 
)

Definition at line 38 of file concat.cc.

void fst::script::Concat ( const std::vector< FstClass * > &  fsts1,
MutableFstClass fst2 
)

Definition at line 47 of file concat.cc.

template<class Arc >
void fst::script::Connect ( MutableFstClass fst)

Definition at line 28 of file connect.h.

template<class Arc >
void fst::script::Convert ( FstConvertArgs args)

Definition at line 39 of file convert.h.

std::unique_ptr< FstClass > fst::script::Convert ( const FstClass fst,
const std::string &  new_type 
)

Definition at line 30 of file convert.cc.

void fst::script::Convert ( FarReaderClass reader,
FarWriterClass writer,
std::string_view  fst_type 
)

Definition at line 71 of file farscript.cc.

template<class Arc >
void fst::script::Convert ( FarConvertArgs args)

Definition at line 91 of file farscript.h.

void fst::script::Create ( const std::vector< std::string > &  sources,
FarWriterClass writer,
const int32_t  generate_keys,
const std::string &  key_prefix,
const std::string &  key_suffix 
)

Definition at line 79 of file farscript.cc.

template<class Arc >
void fst::script::Create ( FarCreateArgs args)

Definition at line 112 of file farscript.h.

template<class Arc >
void fst::script::CreateFarWriterClass ( CreateFarWriterClassArgs args)

Definition at line 278 of file far-class.h.

template<class Arc >
void fst::script::Decode ( FstDecodeArgs args)

Definition at line 35 of file decode.h.

void fst::script::Decode ( MutableFstClass fst,
const EncodeMapperClass encoder 
)

Definition at line 28 of file decode.cc.

void fst::script::Decode ( FarReaderClass reader,
FarWriterClass writer,
const EncodeMapperClass encoder 
)

Definition at line 88 of file farscript.cc.

template<class Arc >
void fst::script::Decode ( FarDecodeArgs args)

Definition at line 126 of file farscript.h.

bool fst::script::Decompress ( const std::string &  source,
MutableFstClass fst 
)

Definition at line 38 of file compressscript.cc.

template<class Arc >
void fst::script::Decompress ( DecompressArgs args)

Definition at line 51 of file compressscript.h.

template<class Arc >
void fst::script::Determinize ( FstDeterminizeArgs args)

Definition at line 58 of file determinize.h.

void fst::script::Determinize ( const FstClass ifst,
MutableFstClass ofst,
const DeterminizeOptions opts 
)

Definition at line 27 of file determinize.cc.

template<class Arc >
void fst::script::Difference ( FstDifferenceArgs args)

Definition at line 37 of file difference.h.

void fst::script::Difference ( const FstClass ifst1,
const FstClass ifst2,
MutableFstClass ofst,
const ComposeOptions opts = ComposeOptions() 
)

Definition at line 28 of file difference.cc.

template<class Arc >
void fst::script::Disambiguate ( FstDisambiguateArgs args)

Definition at line 53 of file disambiguate.h.

void fst::script::Disambiguate ( const FstClass ifst,
MutableFstClass ofst,
const DisambiguateOptions opts 
)

Definition at line 27 of file disambiguate.cc.

WeightClass fst::script::Divide ( const WeightClass lhs,
const WeightClass rhs 
)

Definition at line 108 of file weight-class.cc.

template<class Arc >
void fst::script::Draw ( FstDrawArgs args)

Definition at line 57 of file draw.h.

void fst::script::Draw ( const FstClass fst,
const SymbolTable isyms,
const SymbolTable osyms,
const SymbolTable ssyms,
bool  accep,
const std::string &  title,
float  width,
float  height,
bool  portrait,
bool  vertical,
float  ranksep,
float  nodesep,
int  fontsize,
int  precision,
const std::string &  float_format,
bool  show_weight_one,
std::ostream &  ostrm,
const std::string &  dest 
)

Definition at line 30 of file draw.cc.

template<class Arc >
void fst::script::Encode ( FstEncodeArgs args)

Definition at line 35 of file encode.h.

void fst::script::Encode ( MutableFstClass fst,
EncodeMapperClass mapper 
)

Definition at line 28 of file encode.cc.

void fst::script::Encode ( FarReaderClass reader,
FarWriterClass writer,
EncodeMapperClass encoder 
)

Definition at line 100 of file farscript.cc.

template<class Arc >
void fst::script::Encode ( FarEncodeArgs args)

Definition at line 140 of file farscript.h.

template<class Arc >
void fst::script::EpsNormalize ( FstEpsNormalizeArgs args)

Definition at line 35 of file epsnormalize.h.

void fst::script::EpsNormalize ( const FstClass ifst,
MutableFstClass ofst,
EpsNormalizeType  norm_type = EPS_NORM_INPUT 
)

Definition at line 28 of file epsnormalize.cc.

template<class Arc >
void fst::script::Equal ( FstEqualArgs args)

Definition at line 37 of file equal.h.

bool fst::script::Equal ( const FstClass fst1,
const FstClass fst2,
float  delta = kDelta 
)

Definition at line 26 of file equal.cc.

bool fst::script::Equal ( FarReaderClass reader1,
FarReaderClass reader2,
float  delta,
std::string_view  begin_key,
std::string_view  end_key 
)

Definition at line 112 of file farscript.cc.

template<class Arc >
void fst::script::Equal ( FarEqualArgs args)

Definition at line 156 of file farscript.h.

template<class Arc >
void fst::script::Equivalent ( FstEquivalentArgs args)

Definition at line 38 of file equivalent.h.

bool fst::script::Equivalent ( const FstClass fst1,
const FstClass fst2,
float  delta = kDelta,
bool *  error = nullptr 
)

Definition at line 26 of file equivalent.cc.

void fst::script::Expand ( const FstClass ifst,
const std::vector< std::pair< int64_t, int64_t >> &  parens,
const std::vector< int64_t > &  assignments,
MutableFstClass ofst,
const MPdtExpandOptions opts 
)

Definition at line 55 of file mpdtscript.cc.

void fst::script::Expand ( const FstClass ifst,
const std::vector< std::pair< int64_t, int64_t >> &  parens,
MutableFstClass ofst,
const PdtExpandOptions opts 
)

Definition at line 58 of file pdtscript.cc.

void fst::script::Expand ( const FstClass ifst,
const std::vector< std::pair< int64_t, int64_t >> &  parens,
const std::vector< int64_t > &  assignments,
MutableFstClass ofst,
bool  connect 
)

Definition at line 65 of file mpdtscript.cc.

void fst::script::Expand ( const FstClass ifst,
const std::vector< std::pair< int64_t, int64_t >> &  parens,
MutableFstClass ofst,
bool  connect,
bool  keep_parentheses,
const WeightClass weight_threshold 
)

Definition at line 67 of file pdtscript.cc.

template<class Arc >
void fst::script::Expand ( MPdtExpandArgs args)

Definition at line 87 of file mpdtscript.h.

template<class Arc >
void fst::script::Expand ( PdtExpandArgs args)

Definition at line 98 of file pdtscript.h.

void fst::script::ExpandArgs ( int  argc,
char **  argv,
int *  argcp,
char ***  argvp 
)

Definition at line 60 of file getters.cc.

void fst::script::Extract ( FarReaderClass reader,
int32_t  generate_sources,
const std::string &  keys,
const std::string &  key_separator,
const std::string &  range_delimiter,
const std::string &  source_prefix,
const std::string &  source_suffix 
)

Definition at line 123 of file farscript.cc.

template<class Arc >
void fst::script::Extract ( FarExtractArgs args)

Definition at line 174 of file farscript.h.

bool fst::script::GetArcFilterType ( std::string_view  str,
ArcFilterType arc_filter_type 
)

Definition at line 40 of file getters.cc.

bool fst::script::GetArcSortType ( std::string_view  str,
ArcSortType sort_type 
)

Definition at line 55 of file getters.cc.

bool fst::script::GetClosureType ( std::string_view  str,
ClosureType closure_type 
)

Definition at line 66 of file getters.cc.

bool fst::script::GetComposeFilter ( std::string_view  str,
ComposeFilter compose_filter 
)

Definition at line 77 of file getters.cc.

bool fst::script::GetDeterminizeType ( std::string_view  str,
DeterminizeType det_type 
)

Definition at line 98 of file getters.cc.

uint8_t fst::script::GetEncodeFlags ( bool  encode_labels,
bool  encode_weights 
)
inline

Definition at line 61 of file getters.h.

bool fst::script::GetEpsNormalizeType ( std::string_view  str,
EpsNormalizeType eps_norm_type 
)

Definition at line 111 of file getters.cc.

bool fst::script::GetFarEntryType ( std::string_view  str,
FarEntryType entry_type 
)

Definition at line 49 of file getters.cc.

bool fst::script::GetFarType ( std::string_view  str,
FarType far_type 
)

Definition at line 34 of file getters.cc.

void fst::script::GetInfo ( const std::vector< std::string > &  sources,
const std::string &  arc_type,
const std::string &  begin_key,
const std::string &  end_key,
bool  list_fsts,
FarInfoData data 
)

Definition at line 136 of file farscript.cc.

template<class Arc >
void fst::script::GetInfo ( FarGetInfoArgs args)

Definition at line 206 of file farscript.h.

bool fst::script::GetMapType ( std::string_view  str,
MapType map_type 
)

Definition at line 123 of file getters.cc.

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 
)

Definition at line 390 of file linearscript.h.

bool fst::script::GetPdtComposeFilter ( std::string_view  str,
PdtComposeFilter cf 
)

Definition at line 29 of file getters.cc.

bool fst::script::GetPdtParserType ( std::string_view  str,
PdtParserType pt 
)

Definition at line 42 of file getters.cc.

bool fst::script::GetProjectType ( std::string_view  str,
ProjectType project_type 
)

Definition at line 160 of file getters.cc.

uint8_t fst::script::GetPushFlags ( bool  push_weights,
bool  push_labels,
bool  remove_total_weight,
bool  remove_common_affix 
)
inline

Definition at line 73 of file getters.h.

bool fst::script::GetQueueType ( std::string_view  str,
QueueType queue_type 
)

Definition at line 184 of file getters.cc.

bool fst::script::GetRandArcSelection ( std::string_view  str,
RandArcSelection ras 
)

Definition at line 171 of file getters.cc.

bool fst::script::GetReplaceLabelType ( std::string_view  str,
bool  epsilon_on_replace,
ReplaceLabelType rlt 
)

Definition at line 203 of file getters.cc.

bool fst::script::GetReweightType ( std::string_view  str,
ReweightType reweight_type 
)

Definition at line 219 of file getters.cc.

uint64_t fst::script::GetSeed ( uint64_t  seed)

Definition at line 230 of file getters.cc.

bool fst::script::GetTokenType ( std::string_view  str,
TokenType token_type 
)

Definition at line 234 of file getters.cc.

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 
)

Definition at line 360 of file linearscript.h.

template<class Arc >
void fst::script::Info ( FstInfoArgs args)

Definition at line 37 of file info.h.

void fst::script::Info ( const FstClass fst,
bool  test_properties,
ArcFilterType  arc_filter,
const std::string &  info_type,
bool  verify 
)

Definition at line 29 of file info.cc.

void fst::script::Info ( const FstClass ifst,
const std::vector< std::pair< int64_t, int64_t >> &  parens,
const std::vector< int64_t > &  assignments 
)

Definition at line 81 of file mpdtscript.cc.

void fst::script::Info ( const FstClass ifst,
const std::vector< std::pair< int64_t, int64_t >> &  parens 
)

Definition at line 118 of file pdtscript.cc.

void fst::script::Info ( const std::vector< std::string > &  sources,
const std::string &  arc_type,
const std::string &  begin_key,
const std::string &  end_key,
bool  list_fsts 
)

Definition at line 145 of file farscript.cc.

template<class Arc >
void fst::script::Info ( MPdtInfoArgs args)

Definition at line 147 of file mpdtscript.h.

template<class Arc >
void fst::script::Info ( FarInfoArgs args)

Definition at line 192 of file farscript.h.

template<class Arc >
void fst::script::Info ( PdtInfoArgs args)

Definition at line 252 of file pdtscript.h.

template<class Arc >
void fst::script::InitArcIteratorClass ( InitArcIteratorClassArgs args)

Definition at line 128 of file arciterator-class.h.

template<class Arc >
void fst::script::InitMutableArcIteratorClass ( InitMutableArcIteratorClassArgs args)

Definition at line 222 of file arciterator-class.h.

template<class Arc >
void fst::script::InitStateIteratorClass ( InitStateIteratorClassArgs args)

Definition at line 94 of file stateiterator-class.h.

template<class Arc >
void fst::script::Intersect ( FstIntersectArgs args)

Definition at line 37 of file intersect.h.

void fst::script::Intersect ( const FstClass ifst,
const FstClass ifst2,
MutableFstClass ofst,
const ComposeOptions opts = ComposeOptions() 
)

Definition at line 28 of file intersect.cc.

template<class Arc >
void fst::script::Invert ( MutableFstClass fst)

Definition at line 28 of file invert.h.

template<class Arc >
void fst::script::Isomorphic ( FstIsomorphicArgs args)

Definition at line 38 of file isomorphic.h.

bool fst::script::Isomorphic ( const FstClass fst1,
const FstClass fst2,
float  delta = kDelta 
)

Definition at line 26 of file isomorphic.cc.

bool fst::script::Isomorphic ( FarReaderClass reader1,
FarReaderClass reader2,
float  delta,
std::string_view  begin_key,
std::string_view  end_key 
)

Definition at line 154 of file farscript.cc.

template<class Arc >
void fst::script::Isomorphic ( FarIsomorphicArgs args)

Definition at line 223 of file farscript.h.

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 
)

Definition at line 68 of file linearscript.cc.

template<class Arc >
void fst::script::LinearCompileTpl ( LinearCompileArgs args)

Definition at line 302 of file linearscript.h.

std::string fst::script::LoadArcTypeFromFar ( const std::string &  far_source)

Definition at line 34 of file script-impl.cc.

std::string fst::script::LoadArcTypeFromFst ( const std::string &  fst_source)

Definition at line 43 of file script-impl.cc.

template<class Arc >
Arc::Label fst::script::LookUp ( const std::string &  str,
SymbolTable syms 
)
inline

Definition at line 65 of file linearscript.h.

template<class Arc >
void fst::script::Map ( FstMapArgs args)

Definition at line 80 of file map.h.

std::unique_ptr< FstClass > fst::script::Map ( const FstClass ifst,
MapType  map_type,
float  delta,
double  power,
const WeightClass weight 
)

Definition at line 30 of file map.cc.

template<class Arc >
void fst::script::Minimize ( FstMinimizeArgs args)

Definition at line 35 of file minimize.h.

void fst::script::Minimize ( MutableFstClass ofst1,
MutableFstClass ofst2 = nullptr,
float  delta = kShortestDelta,
bool  allow_nondet = false 
)

Definition at line 27 of file minimize.cc.

template<class Arc >
void fst::script::OpenFarReaderClass ( OpenFarReaderClassArgs args)

Definition at line 165 of file far-class.h.

bool fst::script::operator!= ( const WeightClass lhs,
const WeightClass rhs 
)

Definition at line 82 of file weight-class.cc.

std::ostream & fst::script::operator<< ( std::ostream &  o,
const WeightClass c 
)

Definition at line 126 of file weight-class.cc.

bool fst::script::operator== ( const WeightClass lhs,
const WeightClass rhs 
)

Definition at line 72 of file weight-class.cc.

WeightClass fst::script::Plus ( const WeightClass lhs,
const WeightClass rhs 
)

Definition at line 86 of file weight-class.cc.

WeightClass fst::script::Power ( const WeightClass w,
size_t  n 
)

Definition at line 119 of file weight-class.cc.

template<class Arc >
void fst::script::Print ( FstPrintArgs args)

Definition at line 53 of file print.h.

void fst::script::Print ( const FstClass fst,
std::ostream &  ostrm,
const std::string &  dest,
const SymbolTable isyms = nullptr,
const SymbolTable osyms = nullptr,
const SymbolTable ssyms = nullptr,
bool  accept = true,
bool  show_weight_one = true,
const std::string &  missing_sym = "" 
)

Definition at line 30 of file print.cc.

void fst::script::PrintFst ( const FstClass fst,
std::ostream &  ostrm,
const std::string &  dest,
const SymbolTable isyms,
const SymbolTable osyms,
const SymbolTable ssyms,
bool  accept,
bool  show_weight_one,
const std::string &  missing_sym = "" 
)

Definition at line 41 of file print.cc.

template<class Arc >
void fst::script::PrintFst ( const Fst< Arc > &  fst,
std::ostream &  ostrm,
std::string_view  dest = "",
const SymbolTable isyms = nullptr,
const SymbolTable osyms = nullptr,
const SymbolTable ssyms = nullptr 
)

Definition at line 76 of file print.h.

void fst::script::PrintStrings ( FarReaderClass reader,
const FarEntryType  entry_type,
const TokenType  token_type,
const std::string &  begin_key,
const std::string &  end_key,
bool  print_key,
bool  print_weight,
const std::string &  symbols_source,
bool  initial_symbols,
const int32_t  generate_sources,
const std::string &  source_prefix,
const std::string &  source_suffix 
)

Definition at line 166 of file farscript.cc.

template<class Arc >
void fst::script::PrintStrings ( FarPrintStringsArgs args)

Definition at line 251 of file farscript.h.

template<class Arc >
void fst::script::Project ( FstProjectArgs args)

Definition at line 33 of file project.h.

void fst::script::Project ( MutableFstClass fst,
ProjectType  project_type 
)

Definition at line 27 of file project.cc.

template<class Arc >
void fst::script::Prune ( FstPruneArgs1 args)

Definition at line 42 of file prune.h.

template<class Arc >
void fst::script::Prune ( FstPruneArgs2 args)

Definition at line 59 of file prune.h.

void fst::script::Prune ( const FstClass ifst,
MutableFstClass ofst,
const WeightClass weight_threshold,
int64_t  state_threshold = kNoStateId,
float  delta = kDelta 
)

Definition at line 30 of file prune.cc.

void fst::script::Prune ( MutableFstClass fst,
const WeightClass weight_threshold,
int64_t  state_threshold = kNoStateId,
float  delta = kDelta 
)

Definition at line 42 of file prune.cc.

template<class Arc >
void fst::script::Push ( FstPushArgs1 args)

Definition at line 37 of file push.h.

template<class Arc >
void fst::script::Push ( FstPushArgs2 args)

Definition at line 46 of file push.h.

void fst::script::Push ( MutableFstClass fst,
ReweightType  type = REWEIGHT_TO_INITIAL,
float  delta = kShortestDelta,
bool  remove_total_weight = false 
)

Definition at line 30 of file push.cc.

void fst::script::Push ( const FstClass ifst,
MutableFstClass ofst,
uint8_t  flags,
ReweightType  rew_type,
float  delta = kShortestDelta 
)

Definition at line 36 of file push.cc.

template<class Arc >
void fst::script::RandEquivalent ( FstRandEquivalentArgs args)

Definition at line 43 of file randequivalent.h.

bool fst::script::RandEquivalent ( const FstClass fst1,
const FstClass fst2,
int32_t  npath = 1,
const RandGenOptions< RandArcSelection > &  opts = RandGenOptions<RandArcSelection>(RandArcSelection::UNIFORM),
float  delta = kDelta,
uint64_t  seed = std::random_device()() 
)

Definition at line 29 of file randequivalent.cc.

template<class Arc >
void fst::script::RandGen ( FstRandGenArgs args)

Definition at line 39 of file randgen.h.

void fst::script::RandGen ( const FstClass ifst,
MutableFstClass ofst,
const RandGenOptions< RandArcSelection > &  opts = RandGenOptions<RandArcSelection>(RandArcSelection::UNIFORM),
uint64_t  seed = std::random_device()() 
)

Definition at line 30 of file randgen.cc.

bool fst::script::ReadPotentials ( std::string_view  weight_type,
const std::string &  source,
std::vector< WeightClass > *  potentials 
)

Definition at line 38 of file text-io.cc.

fst::script::REGISTER_ENCODEMAPPER_CLASS ( StdArc  )
fst::script::REGISTER_ENCODEMAPPER_CLASS ( LogArc  )
fst::script::REGISTER_ENCODEMAPPER_CLASS ( Log64Arc  )
fst::script::REGISTER_FST_CLASSES ( StdArc  )
fst::script::REGISTER_FST_CLASSES ( LogArc  )
fst::script::REGISTER_FST_CLASSES ( Log64Arc  )
fst::script::REGISTER_FST_OPERATION ( OpenFarReaderClass  ,
StdArc  ,
OpenFarReaderClassArgs   
)
fst::script::REGISTER_FST_OPERATION ( OpenFarReaderClass  ,
LogArc  ,
OpenFarReaderClassArgs   
)
fst::script::REGISTER_FST_OPERATION ( OpenFarReaderClass  ,
Log64Arc  ,
OpenFarReaderClassArgs   
)
fst::script::REGISTER_FST_OPERATION ( OpenFarReaderClass  ,
ErrorArc  ,
OpenFarReaderClassArgs   
)
fst::script::REGISTER_FST_OPERATION ( CreateFarWriterClass  ,
StdArc  ,
CreateFarWriterClassArgs   
)
fst::script::REGISTER_FST_OPERATION ( CreateFarWriterClass  ,
LogArc  ,
CreateFarWriterClassArgs   
)
fst::script::REGISTER_FST_OPERATION ( CreateFarWriterClass  ,
Log64Arc  ,
CreateFarWriterClassArgs   
)
fst::script::REGISTER_FST_OPERATION ( CreateFarWriterClass  ,
ErrorArc  ,
CreateFarWriterClassArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Invert  ,
MutableFstClass   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Connect  ,
MutableFstClass   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( ArcSort  ,
FstArcSortArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Project  ,
FstProjectArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Verify  ,
FstVerifyArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( TopSort  ,
FstTopSortArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( InitStateIteratorClass  ,
InitStateIteratorClassArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Closure  ,
FstClosureArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Isomorphic  ,
FstIsomorphicArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Equal  ,
FstEqualArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Info  ,
FstInfoArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Equivalent  ,
FstEquivalentArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Reweight  ,
FstReweightArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Compress  ,
CompressArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Synchronize  ,
FstSynchronizeArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( RmEpsilon  ,
FstRmEpsilonArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Reverse  ,
FstReverseArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( ShortestPath  ,
FstShortestPathArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Decode  ,
FstDecodeArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Encode  ,
FstEncodeArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Minimize  ,
FstMinimizeArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Convert  ,
FstConvertArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Disambiguate  ,
FstDisambiguateArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Determinize  ,
FstDeterminizeArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( EpsNormalize  ,
FstEpsNormalizeArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Difference  ,
FstDifferenceArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Intersect  ,
FstIntersectArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Compose  ,
FstComposeArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( RandGen  ,
FstRandGenArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( RandEquivalent  ,
FstRandEquivalentArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Map  ,
FstMapArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Draw  ,
FstDrawArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Replace  ,
FstReplaceArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( InitArcIteratorClass  ,
InitArcIteratorClassArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Decompress  ,
DecompressArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( InitMutableArcIteratorClass  ,
InitMutableArcIteratorClassArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Push  ,
FstPushArgs1   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Push  ,
FstPushArgs2   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Print  ,
FstPrintArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Union  ,
FstUnionArgs1   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Union  ,
FstUnionArgs2   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( ShortestDistance  ,
FstShortestDistanceArgs1   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( ShortestDistance  ,
FstShortestDistanceArgs2   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Prune  ,
FstPruneArgs1   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Prune  ,
FstPruneArgs2   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Compose  ,
MPdtComposeArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( ShortestDistance  ,
FstShortestDistanceArgs3   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Relabel  ,
FstRelabelArgs1   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Compose  ,
PdtComposeArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Relabel  ,
FstRelabelArgs2   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Concat  ,
FstConcatArgs1   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Concat  ,
FstConcatArgs2   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Concat  ,
FstConcatArgs3   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Expand  ,
MPdtExpandArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( CompileInternal  ,
FstCompileArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Expand  ,
PdtExpandArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Reverse  ,
MPdtReverseArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( LinearCompileTpl  ,
LinearCompileArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Info  ,
MPdtInfoArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Replace  ,
PdtReplaceArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Reverse  ,
PdtReverseArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( ShortestPath  ,
PdtShortestPathArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Info  ,
PdtInfoArgs   
)
fst::script::REGISTER_FST_OPERATION_4ARCS ( CompileStrings  ,
FarCompileStringsArgs   
)
fst::script::REGISTER_FST_OPERATION_4ARCS ( Convert  ,
FarConvertArgs   
)
fst::script::REGISTER_FST_OPERATION_4ARCS ( Create  ,
FarCreateArgs   
)
fst::script::REGISTER_FST_OPERATION_4ARCS ( Decode  ,
FarDecodeArgs   
)
fst::script::REGISTER_FST_OPERATION_4ARCS ( Encode  ,
FarEncodeArgs   
)
fst::script::REGISTER_FST_OPERATION_4ARCS ( Equal  ,
FarEqualArgs   
)
fst::script::REGISTER_FST_OPERATION_4ARCS ( Extract  ,
FarExtractArgs   
)
fst::script::REGISTER_FST_OPERATION_4ARCS ( GetInfo  ,
FarGetInfoArgs   
)
fst::script::REGISTER_FST_OPERATION_4ARCS ( Info  ,
FarInfoArgs   
)
fst::script::REGISTER_FST_OPERATION_4ARCS ( Isomorphic  ,
FarIsomorphicArgs   
)
fst::script::REGISTER_FST_OPERATION_4ARCS ( PrintStrings  ,
FarPrintStringsArgs   
)
fst::script::REGISTER_FST_WEIGHT ( StdArc::Weight  )
template<class Arc >
void fst::script::Relabel ( FstRelabelArgs1 args)

Definition at line 42 of file relabel.h.

template<class Arc >
void fst::script::Relabel ( FstRelabelArgs2 args)

Definition at line 55 of file relabel.h.

void fst::script::Relabel ( MutableFstClass ofst,
const SymbolTable old_isymbols,
const SymbolTable new_isymbols,
const std::string &  unknown_isymbol,
bool  attach_new_isymbols,
const SymbolTable old_osymbols,
const SymbolTable new_osymbols,
const std::string &  unknown_osymbol,
bool  attach_new_osymbols 
)

Definition at line 32 of file relabel.cc.

void fst::script::Relabel ( MutableFstClass ofst,
const std::vector< std::pair< int64_t, int64_t >> &  ipairs,
const std::vector< std::pair< int64_t, int64_t >> &  opairs 
)

Definition at line 49 of file relabel.cc.

template<class Arc >
void fst::script::Replace ( FstReplaceArgs args)

Definition at line 59 of file replace.h.

void fst::script::Replace ( const std::vector< std::pair< int64_t, const FstClass * >> &  pairs,
MutableFstClass ofst,
std::vector< std::pair< int64_t, int64_t >> *  parens,
int64_t  root,
PdtParserType  parser_type,
int64_t  start_paren_labels,
const std::string &  left_paren_prefix,
const std::string &  right_paren_prefix 
)

Definition at line 75 of file pdtscript.cc.

void fst::script::Replace ( const std::vector< std::pair< int64_t, const FstClass * >> &  pairs,
MutableFstClass ofst,
const ReplaceOptions opts 
)

Definition at line 31 of file replace.cc.

template<class Arc >
void fst::script::Replace ( PdtReplaceArgs args)

Definition at line 131 of file pdtscript.h.

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 
)

Definition at line 92 of file linearscript.h.

template<class Arc >
void fst::script::Reverse ( FstReverseArgs args)

Definition at line 34 of file reverse.h.

void fst::script::Reverse ( const FstClass ifst,
MutableFstClass ofst,
bool  require_superinitial = true 
)

Definition at line 27 of file reverse.cc.

void fst::script::Reverse ( const FstClass ifst,
const std::vector< std::pair< int64_t, int64_t >> &  parens,
std::vector< int64_t > *  assignments,
MutableFstClass ofst 
)

Definition at line 72 of file mpdtscript.cc.

void fst::script::Reverse ( const FstClass ifst,
const std::vector< std::pair< int64_t, int64_t >> &  parens,
MutableFstClass ofst 
)

Definition at line 100 of file pdtscript.cc.

template<class Arc >
void fst::script::Reverse ( MPdtReverseArgs args)

Definition at line 117 of file mpdtscript.h.

template<class Arc >
void fst::script::Reverse ( PdtReverseArgs args)

Definition at line 166 of file pdtscript.h.

template<class Arc >
void fst::script::Reweight ( FstReweightArgs args)

Definition at line 38 of file reweight.h.

void fst::script::Reweight ( MutableFstClass fst,
const std::vector< WeightClass > &  potentials,
ReweightType  reweight_type 
)

Definition at line 30 of file reweight.cc.

template<class Arc >
void fst::script::RmEpsilon ( FstRmEpsilonArgs args)

Definition at line 127 of file rmepsilon.h.

void fst::script::RmEpsilon ( MutableFstClass fst,
const RmEpsilonOptions opts 
)

Definition at line 27 of file rmepsilon.cc.

int fst::script::ScanNumClasses ( char **  models,
int  models_len 
)

Definition at line 90 of file linearscript.cc.

template<class Arc >
void fst::script::ShortestDistance ( FstShortestDistanceArgs1 args)

Definition at line 163 of file shortest-distance.h.

template<class Arc >
void fst::script::ShortestDistance ( FstShortestDistanceArgs2 args)

Definition at line 220 of file shortest-distance.h.

template<class Arc >
void fst::script::ShortestDistance ( FstShortestDistanceArgs3 args)

Definition at line 235 of file shortest-distance.h.

void fst::script::ShortestDistance ( const FstClass fst,
std::vector< WeightClass > *  distance,
const ShortestDistanceOptions opts 
)

Definition at line 29 of file shortest-distance.cc.

void fst::script::ShortestDistance ( const FstClass ifst,
std::vector< WeightClass > *  distance,
bool  reverse = false,
double  delta = fst::kShortestDelta 
)

Definition at line 36 of file shortest-distance.cc.

WeightClass fst::script::ShortestDistance ( const FstClass ifst,
double  delta = fst::kShortestDelta 
)

Definition at line 43 of file shortest-distance.cc.

void fst::script::ShortestPath ( const FstClass ifst,
const std::vector< std::pair< int64_t, int64_t >> &  parens,
MutableFstClass ofst,
const PdtShortestPathOptions opts 
)

Definition at line 109 of file pdtscript.cc.

template<class Arc >
void fst::script::ShortestPath ( FstShortestPathArgs args)

Definition at line 139 of file shortest-path.h.

void fst::script::ShortestPath ( const FstClass ifst,
MutableFstClass ofst,
const ShortestPathOptions opts 
)

Definition at line 27 of file shortest-path.cc.

template<class Arc >
void fst::script::ShortestPath ( PdtShortestPathArgs args)

Definition at line 201 of file pdtscript.h.

template<class Arc >
void fst::script::SplitAndPush ( const std::string &  str,
const char  delim,
SymbolTable syms,
std::vector< typename Arc::Label > *  output 
)

Definition at line 80 of file linearscript.h.

void fst::script::SplitByWhitespace ( const std::string &  str,
std::vector< std::string > *  out 
)

Definition at line 83 of file linearscript.cc.

template<class M >
std::unique_ptr<Fst<typename M::ToArc> > fst::script::StateMap ( const Fst< typename M::FromArc > &  fst,
const M &  mapper 
)

Definition at line 48 of file map.h.

template<class W >
std::unique_ptr<WeightImplBase> fst::script::StrToWeightImplBase ( std::string_view  str)

Definition at line 206 of file weight-class.h.

template<class Arc >
void fst::script::Synchronize ( FstSynchronizeArgs args)

Definition at line 34 of file synchronize.h.

void fst::script::Synchronize ( const FstClass ifst,
MutableFstClass ofst 
)

Definition at line 27 of file synchronize.cc.

WeightClass fst::script::Times ( const WeightClass lhs,
const WeightClass rhs 
)

Definition at line 97 of file weight-class.cc.

template<class Arc >
void fst::script::TopSort ( FstTopSortArgs args)

Definition at line 31 of file topsort.h.

bool fst::script::TopSort ( MutableFstClass fst)

Definition at line 26 of file topsort.cc.

template<class Arc >
void fst::script::Union ( FstUnionArgs1 args)

Definition at line 36 of file union.h.

template<class Arc >
void fst::script::Union ( FstUnionArgs2 args)

Definition at line 46 of file union.h.

void fst::script::Union ( MutableFstClass fst1,
const FstClass fst2 
)

Definition at line 29 of file union.cc.

void fst::script::Union ( MutableFstClass fst1,
const std::vector< const FstClass * > &  fsts2 
)

Definition at line 38 of file union.cc.

bool fst::script::ValidateDelimiter ( )

Definition at line 54 of file linearscript.cc.

bool fst::script::ValidateEmptySymbol ( )

Definition at line 59 of file linearscript.cc.

template<class Arc >
void fst::script::Verify ( FstVerifyArgs args)

Definition at line 32 of file verify.h.

bool fst::script::Verify ( const FstClass fst)

Definition at line 26 of file verify.cc.

bool fst::script::WritePotentials ( const std::string &  source,
const std::vector< WeightClass > &  potentials 
)

Definition at line 70 of file text-io.cc.

Variable Documentation

constexpr uint64_t fst::script::kDefaultSeed = std::numeric_limits<uint64_t>::max()
inline

Definition at line 49 of file getters.h.