FST
openfst-1.8.2
OpenFst Library
|
Namespaces | |
internal | |
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 > |
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, bool allow_negative_labels, 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, bool allow_negative_labels) |
std::unique_ptr< FstClass > | 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, bool allow_negative_labels) |
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< FstClass > | Convert (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 | 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) |
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< FstClass > | Map (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, const std::string &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< WeightImplBase > | StrToWeightImplBase (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) | |
using fst::script::CompressArgs = typedef WithReturnValue<bool, CompressInnerArgs> |
Definition at line 33 of file compressscript.h.
using fst::script::CompressInnerArgs = typedef std::tuple<const FstClass &, const std::string &> |
Definition at line 31 of file compressscript.h.
using fst::script::CreateFarWriterClassArgs = typedef WithReturnValue<std::unique_ptr<FarWriterClass>, CreateFarWriterClassInnerArgs> |
Definition at line 221 of file far-class.h.
using fst::script::CreateFarWriterClassInnerArgs = typedef std::pair<const std::string &, FarType> |
Definition at line 217 of file far-class.h.
using fst::script::DecompressArgs = typedef WithReturnValue<bool, DecompressInnerArgs> |
Definition at line 46 of file compressscript.h.
using fst::script::DecompressInnerArgs = typedef std::tuple<const std::string &, MutableFstClass *> |
Definition at line 44 of file compressscript.h.
using fst::script::FarConvertArgs = typedef std::tuple<FarReaderClass &, FarWriterClass &, std::string_view> |
Definition at line 85 of file farscript.h.
using fst::script::FarDecodeArgs = typedef std::tuple<FarReaderClass &, FarWriterClass &, const EncodeMapperClass &> |
Definition at line 120 of file farscript.h.
using fst::script::FarEncodeArgs = typedef std::tuple<FarReaderClass &, FarWriterClass &, EncodeMapperClass *> |
Definition at line 134 of file farscript.h.
using fst::script::FarEqualArgs = typedef WithReturnValue<bool, FarEqualInnerArgs> |
Definition at line 150 of file farscript.h.
using fst::script::FarEqualInnerArgs = typedef std::tuple<FarReaderClass &, FarReaderClass &, float, std::string_view, std::string_view> |
Definition at line 148 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 168 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 200 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 186 of file farscript.h.
using fst::script::FarIsomorphicArgs = typedef WithReturnValue<bool, FarIsomorphicInnerArgs> |
Definition at line 217 of file farscript.h.
using fst::script::FarIsomorphicInnerArgs = typedef std::tuple<FarReaderClass &, FarReaderClass &, float, std::string_view, std::string_view> |
Definition at line 215 of file farscript.h.
using fst::script::FstArcSortArgs = typedef std::pair<MutableFstClass *, ArcSortType> |
using fst::script::FstClosureArgs = typedef std::pair<MutableFstClass *, const ClosureType> |
using fst::script::FstCompileArgs = typedef WithReturnValue<std::unique_ptr<FstClass>, FstCompileInnerArgs> |
using fst::script::FstComposeArgs = typedef std::tuple<const FstClass &, const FstClass &, MutableFstClass *, const ComposeOptions &> |
using fst::script::FstConcatArgs1 = typedef std::pair<MutableFstClass *, const FstClass &> |
using fst::script::FstConcatArgs2 = typedef std::pair<const FstClass &, MutableFstClass *> |
using fst::script::FstConcatArgs3 = typedef std::pair<const std::vector<FstClass *> &, MutableFstClass *> |
using fst::script::FstConvertArgs = typedef WithReturnValue<std::unique_ptr<FstClass>, FstConvertInnerArgs> |
using fst::script::FstConvertInnerArgs = typedef std::pair<const FstClass &, const std::string &> |
using fst::script::FstDecodeArgs = typedef std::pair<MutableFstClass *, const EncodeMapperClass &> |
using fst::script::FstDeterminizeArgs = typedef std::tuple<const FstClass &, MutableFstClass *, const DeterminizeOptions &> |
Definition at line 53 of file determinize.h.
using fst::script::FstDifferenceArgs = typedef std::tuple<const FstClass &, const FstClass &, MutableFstClass *, const ComposeOptions &> |
Definition at line 31 of file difference.h.
using fst::script::FstDisambiguateArgs = typedef std::tuple<const FstClass &, MutableFstClass *, const DisambiguateOptions &> |
Definition at line 48 of file disambiguate.h.
using fst::script::FstEncodeArgs = typedef std::tuple<MutableFstClass *, EncodeMapperClass *> |
using fst::script::FstEpsNormalizeArgs = typedef std::tuple<const FstClass &, MutableFstClass *, EpsNormalizeType> |
Definition at line 30 of file epsnormalize.h.
using fst::script::FstEqualArgs = typedef WithReturnValue<bool, FstEqualInnerArgs> |
using fst::script::FstEqualInnerArgs = typedef std::tuple<const FstClass &, const FstClass &, float> |
using fst::script::FstEquivalentArgs = typedef WithReturnValue<bool, FstEquivalentInnerArgs> |
Definition at line 33 of file equivalent.h.
using fst::script::FstEquivalentInnerArgs = typedef std::tuple<const FstClass &, const FstClass &, float> |
Definition at line 31 of file equivalent.h.
using fst::script::FstInfoArgs = typedef std::tuple<const FstClass &, bool, ArcFilterType, const std::string &, bool> |
using fst::script::FstIntersectArgs = typedef std::tuple<const FstClass &, const FstClass &, MutableFstClass *, const ComposeOptions &> |
Definition at line 31 of file intersect.h.
using fst::script::FstIsomorphicArgs = typedef WithReturnValue<bool, FstIsomorphicInnerArgs> |
Definition at line 33 of file isomorphic.h.
using fst::script::FstIsomorphicInnerArgs = typedef std::tuple<const FstClass &, const FstClass &, float> |
Definition at line 31 of file isomorphic.h.
using fst::script::FstMapArgs = typedef WithReturnValue<std::unique_ptr<FstClass>, FstMapInnerArgs> |
using fst::script::FstMapInnerArgs = typedef std::tuple<const FstClass &, MapType, float, double, const WeightClass &> |
using fst::script::FstMinimizeArgs = typedef std::tuple<MutableFstClass *, MutableFstClass *, float, bool> |
Definition at line 30 of file minimize.h.
using fst::script::FstProjectArgs = typedef std::pair<MutableFstClass *, ProjectType> |
using fst::script::FstPruneArgs1 = typedef std::tuple<const FstClass &, MutableFstClass *, const WeightClass &, int64_t, float> |
using fst::script::FstPruneArgs2 = typedef std::tuple<MutableFstClass *, const WeightClass &, int64_t, float> |
using fst::script::FstPushArgs1 = typedef std::tuple<MutableFstClass *, ReweightType, float, bool> |
using fst::script::FstPushArgs2 = typedef std::tuple<const FstClass &, MutableFstClass *, uint8_t, ReweightType, float> |
using fst::script::FstRandEquivalentArgs = typedef WithReturnValue<bool, FstRandEquivalentInnerArgs> |
Definition at line 36 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 34 of file randequivalent.h.
using fst::script::FstRandGenArgs = typedef std::tuple<const FstClass &, MutableFstClass *, const RandGenOptions<RandArcSelection> &, uint64_t> |
using fst::script::FstRelabelArgs1 = typedef std::tuple<MutableFstClass *, const SymbolTable *, const SymbolTable *, const std::string &, bool, const SymbolTable *, const SymbolTable *, const std::string &, bool> |
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>> &> |
using fst::script::FstReplaceArgs = typedef std::tuple<const std::vector<std::pair<int64_t, const FstClass *>> &, MutableFstClass *, const ReplaceOptions &> |
using fst::script::FstReverseArgs = typedef std::tuple<const FstClass &, MutableFstClass *, bool> |
using fst::script::FstReweightArgs = typedef std::tuple<MutableFstClass *, const std::vector<WeightClass> &, ReweightType> |
Definition at line 34 of file reweight.h.
using fst::script::FstRmEpsilonArgs = typedef std::pair<MutableFstClass *, const RmEpsilonOptions &> |
Definition at line 117 of file rmepsilon.h.
using fst::script::FstShortestDistanceArgs1 = typedef std::tuple<const FstClass &, std::vector<WeightClass> *, const ShortestDistanceOptions &> |
Definition at line 153 of file shortest-distance.h.
using fst::script::FstShortestDistanceArgs2 = typedef std::tuple<const FstClass &, std::vector<WeightClass> *, bool, double> |
Definition at line 210 of file shortest-distance.h.
using fst::script::FstShortestDistanceArgs3 = typedef WithReturnValue<WeightClass, FstShortestDistanceInnerArgs3> |
Definition at line 225 of file shortest-distance.h.
using fst::script::FstShortestDistanceInnerArgs3 = typedef std::tuple<const FstClass &, double> |
Definition at line 222 of file shortest-distance.h.
using fst::script::FstShortestPathArgs = typedef std::tuple<const FstClass &, MutableFstClass *, const ShortestPathOptions &> |
Definition at line 127 of file shortest-path.h.
using fst::script::FstSynchronizeArgs = typedef std::pair<const FstClass &, MutableFstClass *> |
Definition at line 29 of file synchronize.h.
using fst::script::FstTopSortArgs = typedef WithReturnValue<bool, MutableFstClass *> |
using fst::script::FstUnionArgs1 = typedef std::pair<MutableFstClass *, const FstClass &> |
using fst::script::FstUnionArgs2 = typedef std::tuple<MutableFstClass *, const std::vector<const FstClass *> &> |
using fst::script::FstVerifyArgs = typedef WithReturnValue<bool, const FstClass &> |
using fst::script::InitArcIteratorClassArgs = typedef std::tuple<const FstClass &, int64_t, ArcIteratorClass *> |
Definition at line 88 of file arciterator-class.h.
using fst::script::InitMutableArcIteratorClassArgs = typedef std::tuple<MutableFstClass *, int64_t, MutableArcIteratorClass *> |
Definition at line 179 of file arciterator-class.h.
using fst::script::InitStateIteratorClassArgs = typedef std::pair<const FstClass &, StateIteratorClass *> |
Definition at line 65 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 46 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 50 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 81 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 141 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 111 of file mpdtscript.h.
using fst::script::OpenFarReaderClassArgs = typedef WithReturnValue<std::unique_ptr<FarReaderClass>, const std::vector<std::string> &> |
Definition at line 96 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 49 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 87 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 240 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 120 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 155 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 190 of file pdtscript.h.
using fst::script::StrToWeightImplBaseT = typedef std::unique_ptr<WeightImplBase> (*)(std::string_view str) |
Definition at line 202 of file weight-class.h.
using fst::script::WeightClassRegisterer = typedef GenericRegisterer<WeightClassRegister> |
Definition at line 228 of file weight-class.h.
|
strong |
Enumerator | |
---|---|
ANY | |
EPSILON | |
INPUT_EPSILON | |
OUTPUT_EPSILON |
Definition at line 25 of file arcfilter-impl.h.
|
strong |
|
strong |
|
strong |
Enumerator | |
---|---|
UNIFORM | |
LOG_PROB | |
FAST_LOG_PROB |
Definition at line 111 of file script-impl.h.
void fst::script::AddModel | ( | const std::string & | model, |
SymbolTable * | fsyms, | ||
SymbolTable * | osyms, | ||
LinearFstDataBuilder< Arc > * | builder | ||
) |
Definition at line 187 of file linearscript.h.
void fst::script::AddModel | ( | const std::string & | model, |
SymbolTable * | fsyms, | ||
SymbolTable * | osyms, | ||
LinearClassifierFstDataBuilder< Arc > * | builder | ||
) |
Definition at line 241 of file linearscript.h.
void fst::script::AddVocab | ( | const std::string & | vocab, |
SymbolTable * | isyms, | ||
SymbolTable * | fsyms, | ||
SymbolTable * | osyms, | ||
LinearFstDataBuilder< Arc > * | builder | ||
) |
Definition at line 125 of file linearscript.h.
void fst::script::AddVocab | ( | const std::string & | vocab, |
SymbolTable * | isyms, | ||
SymbolTable * | fsyms, | ||
SymbolTable * | osyms, | ||
LinearClassifierFstDataBuilder< Arc > * | builder | ||
) |
Definition at line 150 of file linearscript.h.
void fst::script::Apply | ( | const std::string & | op_name, |
const std::string & | arc_type, | ||
typename OpReg::ArgPack * | args | ||
) |
Definition at line 174 of file script-impl.h.
void fst::script::ArcSort | ( | FstArcSortArgs * | args | ) |
void fst::script::ArcSort | ( | MutableFstClass * | ofst, |
ArcSortType | sort_type | ||
) |
Definition at line 25 of file arcsort.cc.
|
inline |
Definition at line 225 of file script-impl.h.
void fst::script::Closure | ( | FstClosureArgs * | args | ) |
void fst::script::Closure | ( | MutableFstClass * | ofst, |
ClosureType | closure_type | ||
) |
Definition at line 25 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, | ||
bool | allow_negative_labels | ||
) |
Definition at line 28 of file compile.cc.
void fst::script::CompileInternal | ( | FstCompileArgs * | args | ) |
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, | ||
bool | allow_negative_labels | ||
) |
Definition at line 39 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, | ||
bool | allow_negative_labels, | ||
const std::string & | key_prefix, | ||
const std::string & | key_suffix | ||
) |
Definition at line 37 of file farscript.cc.
void fst::script::CompileStrings | ( | FarCompileStringsArgs * | args | ) |
Definition at line 66 of file farscript.h.
void fst::script::Compose | ( | FstComposeArgs * | args | ) |
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 39 of file mpdtscript.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 41 of file pdtscript.cc.
void fst::script::Compose | ( | const FstClass & | ifst1, |
const FstClass & | ifst2, | ||
MutableFstClass * | ofst, | ||
const ComposeOptions & | opts = ComposeOptions() |
||
) |
Definition at line 25 of file compose.cc.
void fst::script::Compose | ( | PdtComposeArgs * | args | ) |
Definition at line 52 of file pdtscript.h.
void fst::script::Compose | ( | MPdtComposeArgs * | args | ) |
Definition at line 53 of file mpdtscript.h.
bool fst::script::Compress | ( | const FstClass & | fst, |
const std::string & | source | ||
) |
Definition at line 28 of file compressscript.cc.
void fst::script::Compress | ( | CompressArgs * | args | ) |
Definition at line 36 of file compressscript.h.
void fst::script::Concat | ( | FstConcatArgs1 * | args | ) |
void fst::script::Concat | ( | FstConcatArgs2 * | args | ) |
void fst::script::Concat | ( | FstConcatArgs3 * | args | ) |
void fst::script::Concat | ( | MutableFstClass * | fst1, |
const FstClass & | fst2 | ||
) |
void fst::script::Concat | ( | const FstClass & | fst1, |
MutableFstClass * | fst2 | ||
) |
void fst::script::Concat | ( | const std::vector< FstClass * > & | fsts1, |
MutableFstClass * | fst2 | ||
) |
void fst::script::Connect | ( | MutableFstClass * | fst | ) |
void fst::script::Convert | ( | FstConvertArgs * | args | ) |
std::unique_ptr< FstClass > fst::script::Convert | ( | const FstClass & | fst, |
const std::string & | new_type | ||
) |
Definition at line 28 of file convert.cc.
void fst::script::Convert | ( | FarReaderClass & | reader, |
FarWriterClass & | writer, | ||
std::string_view | fst_type | ||
) |
Definition at line 64 of file farscript.cc.
void fst::script::Convert | ( | FarConvertArgs * | args | ) |
Definition at line 88 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 72 of file farscript.cc.
void fst::script::Create | ( | FarCreateArgs * | args | ) |
Definition at line 109 of file farscript.h.
void fst::script::CreateFarWriterClass | ( | CreateFarWriterClassArgs * | args | ) |
Definition at line 272 of file far-class.h.
void fst::script::Decode | ( | FstDecodeArgs * | args | ) |
void fst::script::Decode | ( | MutableFstClass * | fst, |
const EncodeMapperClass & | encoder | ||
) |
void fst::script::Decode | ( | FarReaderClass & | reader, |
FarWriterClass & | writer, | ||
const EncodeMapperClass & | encoder | ||
) |
Definition at line 81 of file farscript.cc.
void fst::script::Decode | ( | FarDecodeArgs * | args | ) |
Definition at line 123 of file farscript.h.
bool fst::script::Decompress | ( | const std::string & | source, |
MutableFstClass * | fst | ||
) |
Definition at line 37 of file compressscript.cc.
void fst::script::Decompress | ( | DecompressArgs * | args | ) |
Definition at line 49 of file compressscript.h.
void fst::script::Determinize | ( | FstDeterminizeArgs * | args | ) |
Definition at line 56 of file determinize.h.
void fst::script::Determinize | ( | const FstClass & | ifst, |
MutableFstClass * | ofst, | ||
const DeterminizeOptions & | opts | ||
) |
Definition at line 25 of file determinize.cc.
void fst::script::Difference | ( | FstDifferenceArgs * | args | ) |
Definition at line 34 of file difference.h.
void fst::script::Difference | ( | const FstClass & | ifst1, |
const FstClass & | ifst2, | ||
MutableFstClass * | ofst, | ||
const ComposeOptions & | opts = ComposeOptions() |
||
) |
Definition at line 25 of file difference.cc.
void fst::script::Disambiguate | ( | FstDisambiguateArgs * | args | ) |
Definition at line 51 of file disambiguate.h.
void fst::script::Disambiguate | ( | const FstClass & | ifst, |
MutableFstClass * | ofst, | ||
const DisambiguateOptions & | opts | ||
) |
Definition at line 25 of file disambiguate.cc.
WeightClass fst::script::Divide | ( | const WeightClass & | lhs, |
const WeightClass & | rhs | ||
) |
Definition at line 100 of file weight-class.cc.
void fst::script::Draw | ( | FstDrawArgs * | args | ) |
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 | ||
) |
void fst::script::Encode | ( | FstEncodeArgs * | args | ) |
void fst::script::Encode | ( | MutableFstClass * | fst, |
EncodeMapperClass * | mapper | ||
) |
void fst::script::Encode | ( | FarReaderClass & | reader, |
FarWriterClass & | writer, | ||
EncodeMapperClass * | encoder | ||
) |
Definition at line 93 of file farscript.cc.
void fst::script::Encode | ( | FarEncodeArgs * | args | ) |
Definition at line 137 of file farscript.h.
void fst::script::EpsNormalize | ( | FstEpsNormalizeArgs * | args | ) |
Definition at line 33 of file epsnormalize.h.
void fst::script::EpsNormalize | ( | const FstClass & | ifst, |
MutableFstClass * | ofst, | ||
EpsNormalizeType | norm_type = EPS_NORM_INPUT |
||
) |
Definition at line 25 of file epsnormalize.cc.
void fst::script::Equal | ( | FstEqualArgs * | args | ) |
bool fst::script::Equal | ( | FarReaderClass & | reader1, |
FarReaderClass & | reader2, | ||
float | delta, | ||
std::string_view | begin_key, | ||
std::string_view | end_key | ||
) |
Definition at line 105 of file farscript.cc.
void fst::script::Equal | ( | FarEqualArgs * | args | ) |
Definition at line 153 of file farscript.h.
void fst::script::Equivalent | ( | FstEquivalentArgs * | args | ) |
Definition at line 36 of file equivalent.h.
Definition at line 25 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 53 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 55 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 63 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 64 of file pdtscript.cc.
void fst::script::Expand | ( | MPdtExpandArgs * | args | ) |
Definition at line 84 of file mpdtscript.h.
void fst::script::Expand | ( | PdtExpandArgs * | args | ) |
Definition at line 90 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 116 of file farscript.cc.
void fst::script::Extract | ( | FarExtractArgs * | args | ) |
Definition at line 171 of file farscript.h.
bool fst::script::GetArcFilterType | ( | std::string_view | str, |
ArcFilterType * | arc_filter_type | ||
) |
Definition at line 25 of file getters.cc.
bool fst::script::GetArcSortType | ( | std::string_view | str, |
ArcSortType * | sort_type | ||
) |
Definition at line 40 of file getters.cc.
bool fst::script::GetClosureType | ( | std::string_view | str, |
ClosureType * | closure_type | ||
) |
Definition at line 51 of file getters.cc.
bool fst::script::GetComposeFilter | ( | std::string_view | str, |
ComposeFilter * | compose_filter | ||
) |
Definition at line 62 of file getters.cc.
bool fst::script::GetDeterminizeType | ( | std::string_view | str, |
DeterminizeType * | det_type | ||
) |
Definition at line 83 of file getters.cc.
|
inline |
bool fst::script::GetEpsNormalizeType | ( | std::string_view | str, |
EpsNormalizeType * | eps_norm_type | ||
) |
Definition at line 96 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 129 of file farscript.cc.
void fst::script::GetInfo | ( | FarGetInfoArgs * | args | ) |
Definition at line 203 of file farscript.h.
bool fst::script::GetMapType | ( | std::string_view | str, |
MapType * | map_type | ||
) |
Definition at line 108 of file getters.cc.
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 384 of file linearscript.h.
bool fst::script::GetPdtComposeFilter | ( | std::string_view | str, |
PdtComposeFilter * | cf | ||
) |
Definition at line 23 of file getters.cc.
bool fst::script::GetPdtParserType | ( | std::string_view | str, |
PdtParserType * | pt | ||
) |
Definition at line 36 of file getters.cc.
bool fst::script::GetProjectType | ( | std::string_view | str, |
ProjectType * | project_type | ||
) |
Definition at line 145 of file getters.cc.
|
inline |
bool fst::script::GetQueueType | ( | std::string_view | str, |
QueueType * | queue_type | ||
) |
Definition at line 169 of file getters.cc.
bool fst::script::GetRandArcSelection | ( | std::string_view | str, |
RandArcSelection * | ras | ||
) |
Definition at line 156 of file getters.cc.
bool fst::script::GetReplaceLabelType | ( | std::string_view | str, |
bool | epsilon_on_replace, | ||
ReplaceLabelType * | rlt | ||
) |
Definition at line 188 of file getters.cc.
bool fst::script::GetReweightType | ( | std::string_view | str, |
ReweightType * | reweight_type | ||
) |
Definition at line 204 of file getters.cc.
bool fst::script::GetTokenType | ( | std::string_view | str, |
TokenType * | token_type | ||
) |
Definition at line 215 of file getters.cc.
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 354 of file linearscript.h.
void fst::script::Info | ( | FstInfoArgs * | args | ) |
void fst::script::Info | ( | const FstClass & | fst, |
bool | test_properties, | ||
ArcFilterType | arc_filter, | ||
const std::string & | info_type, | ||
bool | verify | ||
) |
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 79 of file mpdtscript.cc.
void fst::script::Info | ( | const FstClass & | ifst, |
const std::vector< std::pair< int64_t, int64_t >> & | parens | ||
) |
Definition at line 115 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 138 of file farscript.cc.
void fst::script::Info | ( | MPdtInfoArgs * | args | ) |
Definition at line 144 of file mpdtscript.h.
void fst::script::Info | ( | FarInfoArgs * | args | ) |
Definition at line 189 of file farscript.h.
void fst::script::Info | ( | PdtInfoArgs * | args | ) |
Definition at line 243 of file pdtscript.h.
void fst::script::InitArcIteratorClass | ( | InitArcIteratorClassArgs * | args | ) |
Definition at line 123 of file arciterator-class.h.
void fst::script::InitMutableArcIteratorClass | ( | InitMutableArcIteratorClassArgs * | args | ) |
Definition at line 217 of file arciterator-class.h.
void fst::script::InitStateIteratorClass | ( | InitStateIteratorClassArgs * | args | ) |
Definition at line 92 of file stateiterator-class.h.
void fst::script::Intersect | ( | FstIntersectArgs * | args | ) |
Definition at line 34 of file intersect.h.
void fst::script::Intersect | ( | const FstClass & | ifst, |
const FstClass & | ifst2, | ||
MutableFstClass * | ofst, | ||
const ComposeOptions & | opts = ComposeOptions() |
||
) |
Definition at line 25 of file intersect.cc.
void fst::script::Invert | ( | MutableFstClass * | fst | ) |
void fst::script::Isomorphic | ( | FstIsomorphicArgs * | args | ) |
Definition at line 36 of file isomorphic.h.
Definition at line 25 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 147 of file farscript.cc.
void fst::script::Isomorphic | ( | FarIsomorphicArgs * | args | ) |
Definition at line 220 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 60 of file linearscript.cc.
void fst::script::LinearCompileTpl | ( | LinearCompileArgs * | args | ) |
Definition at line 296 of file linearscript.h.
std::string fst::script::LoadArcTypeFromFar | ( | const std::string & | far_source | ) |
Definition at line 31 of file script-impl.cc.
std::string fst::script::LoadArcTypeFromFst | ( | const std::string & | fst_source | ) |
Definition at line 40 of file script-impl.cc.
|
inline |
Definition at line 59 of file linearscript.h.
void fst::script::Map | ( | FstMapArgs * | args | ) |
std::unique_ptr< FstClass > fst::script::Map | ( | const FstClass & | ifst, |
MapType | map_type, | ||
float | delta, | ||
double | power, | ||
const WeightClass & | weight | ||
) |
void fst::script::Minimize | ( | FstMinimizeArgs * | args | ) |
Definition at line 33 of file minimize.h.
void fst::script::Minimize | ( | MutableFstClass * | ofst1, |
MutableFstClass * | ofst2 = nullptr , |
||
float | delta = kShortestDelta , |
||
bool | allow_nondet = false |
||
) |
Definition at line 25 of file minimize.cc.
void fst::script::OpenFarReaderClass | ( | OpenFarReaderClassArgs * | args | ) |
Definition at line 159 of file far-class.h.
bool fst::script::operator!= | ( | const WeightClass & | lhs, |
const WeightClass & | rhs | ||
) |
Definition at line 74 of file weight-class.cc.
std::ostream & fst::script::operator<< | ( | std::ostream & | o, |
const WeightClass & | c | ||
) |
Definition at line 118 of file weight-class.cc.
bool fst::script::operator== | ( | const WeightClass & | lhs, |
const WeightClass & | rhs | ||
) |
Definition at line 64 of file weight-class.cc.
WeightClass fst::script::Plus | ( | const WeightClass & | lhs, |
const WeightClass & | rhs | ||
) |
Definition at line 78 of file weight-class.cc.
WeightClass fst::script::Power | ( | const WeightClass & | w, |
size_t | n | ||
) |
Definition at line 111 of file weight-class.cc.
void fst::script::Print | ( | FstPrintArgs * | args | ) |
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 = "" |
||
) |
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 = "" |
||
) |
void fst::script::PrintFst | ( | const Fst< Arc > & | fst, |
std::ostream & | ostrm, | ||
const std::string & | dest = "" , |
||
const SymbolTable * | isyms = nullptr , |
||
const SymbolTable * | osyms = nullptr , |
||
const SymbolTable * | ssyms = nullptr |
||
) |
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 159 of file farscript.cc.
void fst::script::PrintStrings | ( | FarPrintStringsArgs * | args | ) |
Definition at line 248 of file farscript.h.
void fst::script::Project | ( | FstProjectArgs * | args | ) |
void fst::script::Project | ( | MutableFstClass * | fst, |
ProjectType | project_type | ||
) |
Definition at line 25 of file project.cc.
void fst::script::Prune | ( | FstPruneArgs1 * | args | ) |
void fst::script::Prune | ( | FstPruneArgs2 * | args | ) |
void fst::script::Prune | ( | const FstClass & | ifst, |
MutableFstClass * | ofst, | ||
const WeightClass & | weight_threshold, | ||
int64_t | state_threshold = kNoStateId , |
||
float | delta = kDelta |
||
) |
void fst::script::Prune | ( | MutableFstClass * | fst, |
const WeightClass & | weight_threshold, | ||
int64_t | state_threshold = kNoStateId , |
||
float | delta = kDelta |
||
) |
void fst::script::Push | ( | FstPushArgs1 * | args | ) |
void fst::script::Push | ( | FstPushArgs2 * | args | ) |
void fst::script::Push | ( | MutableFstClass * | fst, |
ReweightType | type = REWEIGHT_TO_INITIAL , |
||
float | delta = kShortestDelta , |
||
bool | remove_total_weight = false |
||
) |
void fst::script::Push | ( | const FstClass & | ifst, |
MutableFstClass * | ofst, | ||
uint8_t | flags, | ||
ReweightType | rew_type, | ||
float | delta = kShortestDelta |
||
) |
void fst::script::RandEquivalent | ( | FstRandEquivalentArgs * | args | ) |
Definition at line 39 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 27 of file randequivalent.cc.
void fst::script::RandGen | ( | FstRandGenArgs * | args | ) |
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 27 of file randgen.cc.
bool fst::script::ReadPotentials | ( | std::string_view | weight_type, |
const std::string & | source, | ||
std::vector< WeightClass > * | potentials | ||
) |
Definition at line 36 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 | ( | Project | , |
FstProjectArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | ArcSort | , |
FstArcSortArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | Closure | , |
FstClosureArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | Reweight | , |
FstReweightArgs | |||
) |
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 | ( | Info | , |
FstInfoArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | Equivalent | , |
FstEquivalentArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | Isomorphic | , |
FstIsomorphicArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | Equal | , |
FstEqualArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | Decode | , |
FstDecodeArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | RmEpsilon | , |
FstRmEpsilonArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | Synchronize | , |
FstSynchronizeArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | Encode | , |
FstEncodeArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | EpsNormalize | , |
FstEpsNormalizeArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | ShortestPath | , |
FstShortestPathArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | Compress | , |
CompressArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | Reverse | , |
FstReverseArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | Disambiguate | , |
FstDisambiguateArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | Convert | , |
FstConvertArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | Intersect | , |
FstIntersectArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | Minimize | , |
FstMinimizeArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | Compose | , |
FstComposeArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | Determinize | , |
FstDeterminizeArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | Difference | , |
FstDifferenceArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | Map | , |
FstMapArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | RandGen | , |
FstRandGenArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | RandEquivalent | , |
FstRandEquivalentArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | Replace | , |
FstReplaceArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | Draw | , |
FstDrawArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | InitArcIteratorClass | , |
InitArcIteratorClassArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | Push | , |
FstPushArgs1 | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | InitMutableArcIteratorClass | , |
InitMutableArcIteratorClassArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | Decompress | , |
DecompressArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | Push | , |
FstPushArgs2 | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | Union | , |
FstUnionArgs1 | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | , | |
FstPrintArgs | |||
) |
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 | ( | ShortestDistance | , |
FstShortestDistanceArgs3 | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | Prune | , |
FstPruneArgs2 | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | Compose | , |
MPdtComposeArgs | |||
) |
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 | ( | CompileInternal | , |
FstCompileArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | Expand | , |
MPdtExpandArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | Expand | , |
PdtExpandArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | LinearCompileTpl | , |
LinearCompileArgs | |||
) |
fst::script::REGISTER_FST_OPERATION_3ARCS | ( | Reverse | , |
MPdtReverseArgs | |||
) |
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 | ) |
void fst::script::Relabel | ( | FstRelabelArgs1 * | args | ) |
void fst::script::Relabel | ( | FstRelabelArgs2 * | args | ) |
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 28 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 45 of file relabel.cc.
void fst::script::Replace | ( | FstReplaceArgs * | args | ) |
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 72 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 27 of file replace.cc.
void fst::script::Replace | ( | PdtReplaceArgs * | args | ) |
Definition at line 123 of file pdtscript.h.
size_t fst::script::ReplaceCopy | ( | InputIterator | first, |
InputIterator | last, | ||
OutputIterator | result, | ||
const T & | old_value, | ||
const T & | new_value | ||
) |
Definition at line 86 of file linearscript.h.
void fst::script::Reverse | ( | FstReverseArgs * | args | ) |
void fst::script::Reverse | ( | const FstClass & | ifst, |
MutableFstClass * | ofst, | ||
bool | require_superinitial = true |
||
) |
Definition at line 25 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 70 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 97 of file pdtscript.cc.
void fst::script::Reverse | ( | MPdtReverseArgs * | args | ) |
Definition at line 114 of file mpdtscript.h.
void fst::script::Reverse | ( | PdtReverseArgs * | args | ) |
Definition at line 158 of file pdtscript.h.
void fst::script::Reweight | ( | FstReweightArgs * | args | ) |
Definition at line 37 of file reweight.h.
void fst::script::Reweight | ( | MutableFstClass * | fst, |
const std::vector< WeightClass > & | potentials, | ||
ReweightType | reweight_type | ||
) |
Definition at line 25 of file reweight.cc.
void fst::script::RmEpsilon | ( | FstRmEpsilonArgs * | args | ) |
Definition at line 120 of file rmepsilon.h.
void fst::script::RmEpsilon | ( | MutableFstClass * | fst, |
const RmEpsilonOptions & | opts | ||
) |
Definition at line 25 of file rmepsilon.cc.
int fst::script::ScanNumClasses | ( | char ** | models, |
int | models_len | ||
) |
Definition at line 82 of file linearscript.cc.
void fst::script::ShortestDistance | ( | FstShortestDistanceArgs1 * | args | ) |
Definition at line 156 of file shortest-distance.h.
void fst::script::ShortestDistance | ( | FstShortestDistanceArgs2 * | args | ) |
Definition at line 213 of file shortest-distance.h.
void fst::script::ShortestDistance | ( | FstShortestDistanceArgs3 * | args | ) |
Definition at line 228 of file shortest-distance.h.
void fst::script::ShortestDistance | ( | const FstClass & | fst, |
std::vector< WeightClass > * | distance, | ||
const ShortestDistanceOptions & | opts | ||
) |
Definition at line 25 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 32 of file shortest-distance.cc.
WeightClass fst::script::ShortestDistance | ( | const FstClass & | ifst, |
double | delta = fst::kShortestDelta |
||
) |
Definition at line 39 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 106 of file pdtscript.cc.
void fst::script::ShortestPath | ( | FstShortestPathArgs * | args | ) |
Definition at line 130 of file shortest-path.h.
void fst::script::ShortestPath | ( | const FstClass & | ifst, |
MutableFstClass * | ofst, | ||
const ShortestPathOptions & | opts | ||
) |
Definition at line 25 of file shortest-path.cc.
void fst::script::ShortestPath | ( | PdtShortestPathArgs * | args | ) |
Definition at line 193 of file pdtscript.h.
void fst::script::SplitAndPush | ( | const std::string & | str, |
const char | delim, | ||
SymbolTable * | syms, | ||
std::vector< typename Arc::Label > * | output | ||
) |
Definition at line 74 of file linearscript.h.
void fst::script::SplitByWhitespace | ( | const std::string & | str, |
std::vector< std::string > * | out | ||
) |
Definition at line 75 of file linearscript.cc.
std::unique_ptr<WeightImplBase> fst::script::StrToWeightImplBase | ( | std::string_view | str | ) |
Definition at line 205 of file weight-class.h.
void fst::script::Synchronize | ( | FstSynchronizeArgs * | args | ) |
Definition at line 32 of file synchronize.h.
void fst::script::Synchronize | ( | const FstClass & | ifst, |
MutableFstClass * | ofst | ||
) |
Definition at line 25 of file synchronize.cc.
WeightClass fst::script::Times | ( | const WeightClass & | lhs, |
const WeightClass & | rhs | ||
) |
Definition at line 89 of file weight-class.cc.
void fst::script::TopSort | ( | FstTopSortArgs * | args | ) |
bool fst::script::TopSort | ( | MutableFstClass * | fst | ) |
Definition at line 25 of file topsort.cc.
void fst::script::Union | ( | FstUnionArgs1 * | args | ) |
void fst::script::Union | ( | FstUnionArgs2 * | args | ) |
void fst::script::Union | ( | MutableFstClass * | fst1, |
const FstClass & | fst2 | ||
) |
void fst::script::Union | ( | MutableFstClass * | fst1, |
const std::vector< const FstClass * > & | fsts2 | ||
) |
bool fst::script::ValidateDelimiter | ( | ) |
Definition at line 46 of file linearscript.cc.
bool fst::script::ValidateEmptySymbol | ( | ) |
Definition at line 51 of file linearscript.cc.
void fst::script::Verify | ( | FstVerifyArgs * | args | ) |
bool fst::script::WritePotentials | ( | const std::string & | source, |
const std::vector< WeightClass > & | potentials | ||
) |
Definition at line 68 of file text-io.cc.