Namespaces | Classes | Typedefs | Enumerations | Functions

fst::script Namespace Reference

Namespaces

namespace  args

Classes

struct  FarCompileStringsArgs
struct  FarCreateArgs
struct  FarPrintStringsArgs
struct  PdtShortestPathOptions
 PDT SHORTESTPATH. More...
struct  FstCompileArgs
struct  DeterminizeOptions
struct  FstDrawerArgs
class  FstClassBase
class  FstClassImplBase
class  FstClassImpl
class  FstClass
class  MutableFstClass
class  VectorFstClass
class  AllFstOperationsRegisterer
struct  FstPrinterArgs
struct  PruneOptions
struct  LogProbArcSelectorGuard
struct  LogProbArcSelectorGuard< ArcTpl< TropicalWeightTpl< T > > >
struct  LogProbArcSelectorGuard< ArcTpl< LogWeightTpl< T > > >
struct  FastLogProbArcSelectorGuard
struct  FastLogProbArcSelectorGuard< ArcTpl< TropicalWeightTpl< T > > >
struct  FastLogProbArcSelectorGuard< ArcTpl< LogWeightTpl< T > > >
struct  FstClassRegEntry
class  FstClassIORegister
struct  IORegistration
struct  RmEpsilonOptions
class  GenericOperationRegister
struct  Operation
 Operation package - everything you need to register a new type of operation. More...
struct  ShortestDistanceOptions
struct  QueueConstructor
struct  QueueConstructor< AutoQueue< typename Arc::StateId >, Arc, ArcFilter >
struct  QueueConstructor< NaturalShortestFirstQueue< typename Arc::StateId, typename Arc::Weight >, Arc, ArcFilter >
struct  QueueConstructor< TopOrderQueue< typename Arc::StateId >, Arc, ArcFilter >
struct  ShortestPathOptions
class  WeightImplBase
struct  WeightClassImpl
class  WeightClass
class  WeightClassRegister

Typedefs

typedef args::Package< const
vector< string > &, int32,
const string &, const string
&, const string &, const
string & > 
FarExtractArgs
typedef args::Package< const
vector< string > &, const
string &, const string
&, const bool > 
FarInfoArgs
typedef args::Package< const
FstClass &, const FstClass
&, const vector< pair< int64,
int64 > > &, MutableFstClass
*, const ComposeOptions
&, bool > 
PdtComposeArgs
 PDT COMPOSE.
typedef args::Package< const
FstClass &, const vector< pair
< int64, int64 >
> &, MutableFstClass *, bool,
bool > 
PdtExpandArgs
 PDT EXPAND.
typedef args::Package< const
vector< pair< int64, const
FstClass * >
> &, MutableFstClass
*, vector< pair< int64, int64 >
> *, const int64 & > 
PdtReplaceArgs
 PDT REPLACE.
typedef args::Package< const
FstClass &, const vector< pair
< int64, int64 >
> &, MutableFstClass * > 
PdtReverseArgs
 PDT REVERSE.
typedef args::Package< const
FstClass &, const vector< pair
< int64, int64 >
> &, MutableFstClass *, const
PdtShortestPathOptions & > 
PdtShortestPathArgs
typedef args::Package< const
FstClass &, const vector< pair
< int64, int64 > > & > 
PrintPdtInfoArgs
 PRINT INFO.
typedef args::Package
< MutableFstClass *, const
ArcSortType
ArcSortArgs
typedef args::Package
< MutableFstClass *, const
ClosureType
ClosureArgs
typedef args::Package< const
FstClass &, const FstClass
&, MutableFstClass
*, ComposeFilter
ComposeArgs1
typedef fst::ComposeOptions ComposeOptions
typedef args::Package< const
FstClass &, const FstClass
&, MutableFstClass *, const
ComposeOptions & > 
ComposeArgs2
typedef args::Package
< MutableFstClass *, const
FstClass & > 
ConcatArgs1
typedef args::Package< const
FstClass &, MutableFstClass * > 
ConcatArgs2
typedef args::Package< const
FstClass &, const string & > 
ConvertInnerArgs
typedef args::WithReturnValue
< FstClass *, ConvertInnerArgs
ConvertArgs
typedef args::Package
< MutableFstClass *, const
string & > 
DecodeArgs
typedef args::Package< const
FstClass &, MutableFstClass
*, const DeterminizeOptions & > 
DeterminizeArgs
typedef args::Package< const
FstClass &, const FstClass
&, MutableFstClass
*, ComposeFilter
DifferenceArgs1
typedef args::Package< const
FstClass &, const FstClass
&, MutableFstClass *, const
ComposeOptions & > 
DifferenceArgs2
typedef args::Package
< MutableFstClass *, uint32,
bool, const string & > 
EncodeArgs
typedef args::Package< const
FstClass &, MutableFstClass
*, EpsNormalizeType
EpsNormalizeArgs
typedef args::Package< const
FstClass &, const FstClass
&, float > 
EqualInnerArgs
typedef args::WithReturnValue
< bool, EqualInnerArgs
EqualArgs
typedef args::Package< const
FstClass &, const FstClass
&, float > 
EquivalentInnerArgs
typedef args::WithReturnValue
< bool, EquivalentInnerArgs
EquivalentArgs
typedef args::Package< const
FstClass &, bool, const string
&, const string &, bool > 
InfoArgs
typedef args::Package< const
FstClass &, const FstClass
&, MutableFstClass
*, ComposeFilter
IntersectArgs1
typedef args::Package< const
FstClass &, const FstClass
&, MutableFstClass *, const
ComposeOptions & > 
IntersectArgs2
typedef args::Package
< MutableFstClass *, MapType,
float, const WeightClass & > 
MapArgs
typedef args::Package
< MutableFstClass
*, MutableFstClass *, float > 
MinimizeArgs
typedef args::Package
< MutableFstClass
*, ProjectType
ProjectArgs
typedef args::Package
< MutableFstClass *, const
PruneOptions & > 
PruneArgs1
 1
typedef args::Package< const
FstClass &, MutableFstClass
*, const PruneOptions & > 
PruneArgs2
 2
typedef args::Package< const
FstClass &, MutableFstClass
*, const WeightClass &, int64,
float > 
PruneArgs3
 3
typedef args::Package
< MutableFstClass *, const
WeightClass &, int64, float > 
PruneArgs4
 4
typedef args::Package
< MutableFstClass
*, ReweightType, float, bool > 
PushArgs1
 1
typedef args::Package< const
FstClass &, MutableFstClass
*, uint32, ReweightType, float > 
PushArgs2
 2
typedef args::Package< const
FstClass &, const FstClass
&, int32, float, int, int > 
RandEquivalentInnerArgs1
 1
typedef args::WithReturnValue
< bool,
RandEquivalentInnerArgs1
RandEquivalentArgs1
typedef args::Package< const
FstClass &, const FstClass
&, int32, ssize_t, float,
const RandGenOptions
< RandArcSelection > & > 
RandEquivalentInnerArgs2
 2
typedef args::WithReturnValue
< bool,
RandEquivalentInnerArgs2
RandEquivalentArgs2
typedef args::Package< const
FstClass &, MutableFstClass
*, int32, const RandGenOptions
< RandArcSelection > & > 
RandGenArgs
typedef args::Package
< MutableFstClass *, const
SymbolTable *, const
SymbolTable *, bool, const
SymbolTable *, const
SymbolTable *, bool > 
RelabelArgs1
 1
typedef args::Package
< MutableFstClass *, const
vector< pair< int64, int64 >
> &, const vector< pair
< int64, int64 > > > 
RelabelArgs2
 2
typedef args::Package
< MutableFstClass *, const
SymbolTable *, const
SymbolTable * > 
RelabelArgs3
 3
typedef args::Package< const
vector< pair< int64, const
FstClass * >
> &, MutableFstClass *, const
int64, bool > 
ReplaceArgs
typedef args::Package< const
FstClass &, MutableFstClass * > 
ReverseArgs
typedef args::Package
< MutableFstClass *, const
vector< WeightClass >
&, ReweightType
ReweightArgs
typedef args::Package< const
FstClass &, MutableFstClass
*, bool, const
RmEpsilonOptions & > 
RmEpsilonArgs1
 1
typedef args::Package
< MutableFstClass *, bool,
const WeightClass, int64,
float > 
RmEpsilonArgs2
 2
typedef args::Package
< MutableFstClass *, vector
< WeightClass > *, const
RmEpsilonOptions & > 
RmEpsilonArgs3
 3
typedef args::Package< const
FstClass &, vector
< WeightClass > *, const
ShortestDistanceOptions & > 
ShortestDistanceArgs1
 1
typedef args::Package< const
FstClass &, vector
< WeightClass > *, bool,
double > 
ShortestDistanceArgs2
 2
typedef args::WithReturnValue
< WeightClass, const FstClass & > 
ShortestDistanceArgs3
 3
typedef args::Package< const
FstClass &, MutableFstClass
*, vector< WeightClass >
*, const ShortestPathOptions & > 
ShortestPathArgs1
typedef args::Package< const
FstClass &, MutableFstClass
*, size_t, bool, bool,
WeightClass, int64
ShortestPathArgs2
 2
typedef args::Package< const
FstClass &, MutableFstClass * > 
SynchronizeArgs
typedef args::WithReturnValue
< bool, MutableFstClass * > 
TopSortArgs
typedef args::Package
< MutableFstClass *, const
FstClass & > 
UnionArgs
typedef WeightImplBase *(* StrToWeightImplBaseT )(const string &str, const string &src, size_t nline)
typedef GenericRegisterer
< WeightClassRegister
WeightClassRegisterer

Enumerations

enum  ArcSortType { ILABEL_COMPARE, OLABEL_COMPARE }
enum  RandArcSelection { UNIFORM_ARC_SELECTOR, LOG_PROB_ARC_SELECTOR, FAST_LOG_PROB_ARC_SELECTOR }
enum  ArcFilterType { ANY_ARC_FILTER, EPSILON_ARC_FILTER, INPUT_EPSILON_ARC_FILTER, OUTPUT_EPSILON_ARC_FILTER }

Functions

void FarCompileStrings (const vector< string > &in_fnames, const string &out_fname, const string &arc_type, const string &fst_type, const FarType &far_type, int32 generate_keys, FarEntryType fet, FarTokenType tt, const string &symbols_fname, bool allow_negative_labels, bool file_list_input, const string &key_prefix, const string &key_suffix)
void FarCreate (const vector< string > &in_fnames, const string &out_fname, const string &arc_type, const int32 generate_keys, const bool file_list_input, const FarType &far_type, const string &key_prefix, const string &key_suffix)
void FarExtract (const vector< string > &ifilenames, const string &arc_type, int32 generate_filenames, const string &begin_key, const string &end_key, const string &filename_prefix, const string &filename_suffix)
void FarInfo (const vector< string > &filenames, const string &arc_type, const string &begin_key, const string &end_key, const bool list_fsts)
void FarPrintStrings (const vector< string > &ifilenames, const string &arc_type, const FarEntryType entry_type, const FarTokenType token_type, const string &begin_key, const string &end_key, const bool print_key, const string &symbols_fname, const int32 generate_filenames, const string &filename_prefix, const string &filename_suffix)
 REGISTER_FST_FAR_OPERATIONS (StdArc)
 Instantiate all templates for common arc types.
void PdtCompose (const FstClass &ifst1, const FstClass &ifst2, const vector< pair< int64, int64 > > &parens, MutableFstClass *ofst, const ComposeOptions &copts, bool left_pdt)
void PdtExpand (const FstClass &ifst, const vector< pair< int64, int64 > > &parens, MutableFstClass *ofst, bool connect, bool keep_parentheses)
void PdtReplace (const vector< pair< int64, const FstClass * > > &fst_tuples, MutableFstClass *ofst, vector< pair< int64, int64 > > *parens, const int64 &root)
void PdtReverse (const FstClass &ifst, const vector< pair< int64, int64 > > &parens, MutableFstClass *ofst)
void PdtShortestPath (const FstClass &ifst, const vector< pair< int64, int64 > > &parens, MutableFstClass *ofst, const PdtShortestPathOptions &opts)
void PrintPdtInfo (const FstClass &ifst, const vector< pair< int64, int64 > > &parens)
 REGISTER_FST_PDT_OPERATIONS (StdArc)
 Register operations for common arc types.
template<class Arc >
void FarCompileStrings (FarCompileStringsArgs *args)
template<class Arc >
void FarCreate (FarCreateArgs *args)
template<class Arc >
void FarExtract (FarExtractArgs *args)
template<class Arc >
void FarInfo (FarInfoArgs *args)
template<class Arc >
void FarPrintStrings (FarPrintStringsArgs *args)
template<class Arc >
void PdtCompose (PdtComposeArgs *args)
template<class Arc >
void PdtExpand (PdtExpandArgs *args)
template<class Arc >
void PdtReplace (PdtReplaceArgs *args)
template<class Arc >
void PdtReverse (PdtReverseArgs *args)
template<class Arc >
void PdtShortestPath (PdtShortestPathArgs *args)
template<class Arc >
void PrintPdtInfo (PrintPdtInfoArgs *args)
template<class Arc >
void ArcSort (ArcSortArgs *args)
void ArcSort (MutableFstClass *ofst, ArcSortType sort_type)
template<class Arc >
void Closure (ClosureArgs *args)
void Closure (MutableFstClass *ofst, ClosureType closure_type)
template<class Arc >
void CompileFst (FstCompileArgs *args)
void CompileFst (istream &istrm, const string &source, const string &dest, const string &fst_type, const 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 (ComposeArgs1 *args)
void Compose (const FstClass &ifst1, const FstClass &ifst2, MutableFstClass *ofst, const ComposeOptions &opts=fst::script::ComposeOptions())
void Compose (const FstClass &ifst1, const FstClass &ifst2, MutableFstClass *ofst, ComposeFilter compose_filter)
template<class Arc >
void Concat (ConcatArgs1 *args)
void Concat (MutableFstClass *ofst, const FstClass &ifst)
void Concat (const FstClass &ifst, MutableFstClass *ofst)
template<class Arc >
void Connect (MutableFstClass *fst)
 This function confuses SWIG, because both versions have the same args.
template<class Arc >
void Convert (ConvertArgs *args)
FstClassConvert (const FstClass &f, const string &new_type)
template<class Arc >
void Decode (DecodeArgs *args)
void Decode (MutableFstClass *fst, const string &coder_fname)
template<class Arc >
void Determinize (DeterminizeArgs *args)
void Determinize (const FstClass &ifst, MutableFstClass *ofst, const DeterminizeOptions &opts=fst::script::DeterminizeOptions())
template<class Arc >
void Difference (DifferenceArgs1 *args)
void Difference (const FstClass &ifst1, const FstClass &ifst2, MutableFstClass *ofst, ComposeFilter compose_filter)
void Difference (const FstClass &ifst1, const FstClass &ifst2, MutableFstClass *ofst, const ComposeOptions &opts=fst::script::ComposeOptions())
template<class Arc >
void DrawFst (FstDrawerArgs *args)
void DrawFst (const FstClass &fst, const SymbolTable *isyms, const SymbolTable *osyms, const SymbolTable *ssyms, bool accep, string title, float width, float height, bool portrait, bool vertical, float ranksep, float nodesep, int fontsize, int precision, bool show_weight_one, ostream *ostrm, const string &dest)
template<class Arc >
void Encode (EncodeArgs *args)
void Encode (MutableFstClass *fst, uint32 flags, bool reuse_encoder, const string &coder_fname)
template<class Arc >
void EpsNormalize (EpsNormalizeArgs *args)
void EpsNormalize (const FstClass &ifst, MutableFstClass *ofst, EpsNormalizeType norm_type=EPS_NORM_INPUT)
template<class Arc >
void Equal (EqualArgs *args)
bool Equal (const FstClass &fst1, const FstClass &fst2, float delta=kDelta)
template<class Arc >
void Equivalent (EquivalentArgs *args)
bool Equivalent (const FstClass &fst1, const FstClass &fst2, float delta=kDelta)
template<class Arc >
void PrintFstInfo (InfoArgs *args)
void PrintFstInfo (const FstClass &f, bool test_properties, const string &arc_filter, const string &info_type, bool pipe)
template<class Arc >
void Intersect (IntersectArgs1 *args)
void Intersect (const FstClass &ifst1, const FstClass &ifst2, MutableFstClass *ofst, ComposeFilter compose_filter)
void Intersect (const FstClass &ifst, const FstClass &ifst2, MutableFstClass *ofst, const ComposeOptions &opts=fst::script::ComposeOptions())
template<class Arc >
void Invert (MutableFstClass *fst)
template<class Arc >
void Map (MapArgs *args)
void Map (MutableFstClass *ofst, MapType map_type, float delta=fst::kDelta, const WeightClass &w=fst::script::WeightClass::Zero())
template<class Arc >
void Minimize (MinimizeArgs *args)
void Minimize (MutableFstClass *ofst1, MutableFstClass *ofst2=0, float delta=kDelta)
template<class Arc >
void PrintFst (FstPrinterArgs *args)
void PrintFst (const FstClass &fst, const SymbolTable *isyms, const SymbolTable *osyms, const SymbolTable *ssyms, bool accept, bool show_weight_one, ostream *ostrm, const string &dest)
template<class Arc >
void Project (ProjectArgs *args)
void Project (MutableFstClass *ofst, ProjectType project_type)
template<class A >
fst::PruneOptions< A,
AnyArcFilter< A > > 
ConvertPruneOptions (const PruneOptions &opts)
template<class Arc >
void Prune (PruneArgs1 *args)
void Prune (MutableFstClass *fst, const PruneOptions &opts)
 1
void Prune (const FstClass &ifst, MutableFstClass *fst, const PruneOptions &opts)
 2
void Prune (const FstClass &ifst, MutableFstClass *ofst, const WeightClass &weight_threshold, int64 state_threshold=kNoStateId, float delta=kDelta)
 3
void Prune (MutableFstClass *fst, const WeightClass &weight_threshold, int64 state_threshold, float delta)
 4
template<class Arc >
void Push (PushArgs1 *args)
void Push (MutableFstClass *ofst, ReweightType type, float delta=kDelta, bool remove_total_weight=false)
 1
void Push (const FstClass &ifst, MutableFstClass *ofst, uint32 flags, ReweightType dir, float delta)
 2
template<class Arc >
void RandEquivalent (RandEquivalentArgs1 *args)
bool RandEquivalent (const FstClass &fst1, const FstClass &fst2, int32 seed=time(0), ssize_t num_paths=1, float delta=fst::kDelta, int path_length=INT_MAX)
 1
bool RandEquivalent (const FstClass &fst1, const FstClass &fst2, int32 seed, ssize_t num_paths, float delta, const fst::RandGenOptions< fst::script::RandArcSelection > &opts)
 2
template<class Arc >
void RandGen (RandGenArgs *args)
void RandGen (const FstClass &ifst, MutableFstClass *ofst, int32 seed=time(0), const RandGenOptions< RandArcSelection > &opts=fst::RandGenOptions< fst::script::RandArcSelection >(fst::script::UNIFORM_ARC_SELECTOR))
 Client-facing prototype.
template<class Arc >
void Relabel (RelabelArgs1 *args)
template<class Arc >
void Relabel (args::Package< MutableFstClass *, const SymbolTable *, const SymbolTable * > *args)
void Relabel (MutableFstClass *ofst, const SymbolTable *old_isyms, const SymbolTable *relabel_isyms, bool attach_new_isyms, const SymbolTable *old_osyms, const SymbolTable *relabel_osyms, bool attch_new_osyms)
 1
void Relabel (MutableFstClass *ofst, const vector< pair< int64, int64 > > &ipairs, const vector< pair< int64, int64 > > &opairs)
 2
void Relabel (MutableFstClass *fst, const SymbolTable *new_isymbols, const SymbolTable *new_osymbols)
 3
template<class Arc >
void Replace (ReplaceArgs *args)
void Replace (const vector< pair< int64, const FstClass * > > &tuples, MutableFstClass *ofst, const int64 &root, bool epsilon_on_replace=false)
template<class Arc >
void Reverse (ReverseArgs *args)
void Reverse (const FstClass &fst1, MutableFstClass *fst2)
template<class Arc >
void Reweight (ReweightArgs *args)
void Reweight (MutableFstClass *fst, const vector< WeightClass > &potential, ReweightType reweight_type)
template<class Arc >
void RmEpsilonHelper (MutableFst< Arc > *fst, vector< typename Arc::Weight > *distance, const RmEpsilonOptions &opts)
template<class Arc >
void RmEpsilon (RmEpsilonArgs1 *args)
void RmEpsilon (const FstClass &ifst, MutableFstClass *ofst, bool reverse=false, const RmEpsilonOptions &opts=fst::script::RmEpsilonOptions())
 1
void RmEpsilon (MutableFstClass *arc, bool connect=true, const WeightClass &weight_threshold=fst::script::WeightClass::Zero(), int64 state_threshold=fst::kNoStateId, float delta=fst::kDelta)
 2
void RmEpsilon (MutableFstClass *fst, vector< WeightClass > *distance, const RmEpsilonOptions &opts)
 3
template<class OpReg >
void Apply (const string &op_name, const string &arc_type, typename OpReg::Args *args)
bool ArcTypesMatch (const FstClass &a, const FstClass &b, const string &op_name)
template<class Arc , class Queue >
void ShortestDistanceHelper (ShortestDistanceArgs1 *args)
template<class Arc >
void ShortestDistance (ShortestDistanceArgs1 *args)
template<class Arc >
void ShortestDistance (ShortestDistanceArgs3 *args)
void ShortestDistance (const FstClass &fst, vector< WeightClass > *distance, const ShortestDistanceOptions &opts)
 1
void ShortestDistance (const FstClass &ifst, vector< WeightClass > *distance, bool reverse=false, double delta=fst::kDelta)
 2
WeightClass ShortestDistance (const FstClass &ifst)
 3
template<class Arc >
void ShortestPath (ShortestPathArgs1 *args)
void ShortestPath (const FstClass &ifst, MutableFstClass *ofst, vector< WeightClass > *distance, const ShortestPathOptions &opts)
 1
void ShortestPath (const FstClass &ifst, MutableFstClass *ofst, size_t n=1, bool unique=false, bool first_path=false, WeightClass weight_threshold=fst::script::WeightClass::Zero(), int64 state_threshold=fst::kNoStateId)
 2
template<class Arc >
void Synchronize (SynchronizeArgs *args)
void Synchronize (const FstClass &ifst, MutableFstClass *ofst)
void ReadPotentials (const string &weight_type, const string &filename, vector< WeightClass > *potential)
void WritePotentials (const string &filename, const vector< WeightClass > &potential)
template<class Arc >
void TopSort (TopSortArgs *args)
bool TopSort (MutableFstClass *fst)
template<class Arc >
void Union (UnionArgs *args)
void Union (MutableFstClass *fst1, const FstClass &fst2)
template<class W >
WeightImplBaseStrToWeightImplBase (const string &str, const string &src, size_t nline)
ostream & operator<< (ostream &o, const WeightClass &c)
 The following confuses swig, and doesn't need to be wrapped anyway.
 REGISTER_FST_OPERATION (ArcSort, StdArc, ArcSortArgs)
 REGISTER_FST_OPERATION (Closure, StdArc, ClosureArgs)
 REGISTER_FST_OPERATION (CompileFst, StdArc, FstCompileArgs)
 REGISTER_FST_OPERATION (Compose, StdArc, ComposeArgs1)
 REGISTER_FST_OPERATION (Concat, StdArc, ConcatArgs1)
 REGISTER_FST_OPERATION (Connect, StdArc, MutableFstClass)
 REGISTER_FST_OPERATION (Convert, StdArc, ConvertArgs)
 REGISTER_FST_OPERATION (Decode, StdArc, DecodeArgs)
 REGISTER_FST_OPERATION (Determinize, StdArc, DeterminizeArgs)
 REGISTER_FST_OPERATION (Difference, StdArc, DifferenceArgs1)
 REGISTER_FST_OPERATION (DrawFst, StdArc, FstDrawerArgs)
 REGISTER_FST_OPERATION (Encode, StdArc, EncodeArgs)
 REGISTER_FST_OPERATION (EpsNormalize, StdArc, EpsNormalizeArgs)
 REGISTER_FST_OPERATION (Equal, StdArc, EqualArgs)
 REGISTER_FST_OPERATION (Equivalent, StdArc, EquivalentArgs)
 REGISTER_FST_CLASSES (StdArc)
template<class FstT >
FstT * ReadFst (istream &in, const string &fname)
const IORegistration
< VectorFstClass >::Entry & 
GetVFSTRegisterEntry (const string &arc_type)
 REGISTER_FST_OPERATION (PrintFstInfo, StdArc, InfoArgs)
 REGISTER_FST_OPERATION (Intersect, StdArc, IntersectArgs1)
 REGISTER_FST_OPERATION (Invert, StdArc, MutableFstClass)
 REGISTER_FST_OPERATION (Map, StdArc, MapArgs)
 REGISTER_FST_OPERATION (Minimize, StdArc, MinimizeArgs)
 REGISTER_FST_OPERATION (PrintFst, StdArc, FstPrinterArgs)
 REGISTER_FST_OPERATION (Project, StdArc, ProjectArgs)
 REGISTER_FST_OPERATION (Prune, StdArc, PruneArgs1)
 1
 REGISTER_FST_OPERATION (Push, StdArc, PushArgs1)
 REGISTER_FST_OPERATION (RandEquivalent, StdArc, RandEquivalentArgs1)
 REGISTER_FST_OPERATION (RandGen, StdArc, RandGenArgs)
 REGISTER_FST_OPERATION (Relabel, StdArc, RelabelArgs1)
 1
 REGISTER_FST_OPERATION (Replace, StdArc, ReplaceArgs)
 REGISTER_FST_OPERATION (Reverse, StdArc, ReverseArgs)
 REGISTER_FST_OPERATION (Reweight, StdArc, ReweightArgs)
 REGISTER_FST_OPERATION (RmEpsilon, StdArc, RmEpsilonArgs1)
 REGISTER_FST_OPERATION (ShortestDistance, StdArc, ShortestDistanceArgs1)
 REGISTER_FST_OPERATION (ShortestDistance, StdArc, ShortestDistanceArgs3)
 REGISTER_FST_OPERATION (ShortestPath, StdArc, ShortestPathArgs1)
 REGISTER_FST_OPERATION (Synchronize, StdArc, SynchronizeArgs)
 REGISTER_FST_OPERATION (TopSort, StdArc, TopSortArgs)
 REGISTER_FST_OPERATION (Union, StdArc, UnionArgs)
 REGISTER_FST_WEIGHT (StdArc::Weight)

Typedef Documentation

Definition at line 29 of file arcsort.h.

Definition at line 27 of file closure.h.

Definition at line 28 of file compose.h.

Definition at line 42 of file compose.h.

Definition at line 39 of file compose.h.

Definition at line 27 of file concat.h.

Definition at line 28 of file concat.h.

Definition at line 29 of file convert.h.

typedef args::Package<const FstClass&, const string&> fst::script::ConvertInnerArgs

Definition at line 28 of file convert.h.

Definition at line 29 of file decode.h.

Definition at line 43 of file determinize.h.

Definition at line 29 of file difference.h.

Definition at line 41 of file difference.h.

typedef args::Package<MutableFstClass*, uint32, bool, const string &> fst::script::EncodeArgs

Definition at line 30 of file encode.h.

Definition at line 28 of file epsnormalize.h.

Definition at line 28 of file equal.h.

Definition at line 27 of file equal.h.

Definition at line 29 of file equivalent.h.

Definition at line 28 of file equivalent.h.

typedef args::Package<const vector<string> &, int32, const string&, const string&, const string&, const string&> fst::script::FarExtractArgs

Definition at line 145 of file farscript.h.

typedef args::Package<const vector<string> &, const string &, const string &, const bool> fst::script::FarInfoArgs

Definition at line 160 of file farscript.h.

typedef args::Package<const FstClass&, bool, const string&, const string&, bool> fst::script::InfoArgs

Definition at line 28 of file info.h.

Definition at line 29 of file intersect.h.

Definition at line 41 of file intersect.h.

Definition at line 29 of file map.h.

Definition at line 27 of file minimize.h.

typedef args::Package<const FstClass &, const FstClass &, const vector<pair<int64, int64> >&, MutableFstClass *, const ComposeOptions &, bool> fst::script::PdtComposeArgs

PDT COMPOSE.

Definition at line 52 of file pdtscript.h.

typedef args::Package<const FstClass &, const vector<pair<int64, int64> >&, MutableFstClass *, bool, bool> fst::script::PdtExpandArgs

PDT EXPAND.

Definition at line 86 of file pdtscript.h.

typedef args::Package<const vector<pair<int64, const FstClass*> > &, MutableFstClass *, vector<pair<int64, int64> > *, const int64 &> fst::script::PdtReplaceArgs

PDT REPLACE.

Definition at line 111 of file pdtscript.h.

typedef args::Package<const FstClass &, const vector<pair<int64, int64> >&, MutableFstClass *> fst::script::PdtReverseArgs

PDT REVERSE.

Definition at line 147 of file pdtscript.h.

Definition at line 183 of file pdtscript.h.

typedef args::Package<const FstClass &, const vector<pair<int64, int64> > &> fst::script::PrintPdtInfoArgs

PRINT INFO.

Definition at line 238 of file pdtscript.h.

Definition at line 27 of file project.h.

1

Definition at line 76 of file prune.h.

2

Definition at line 93 of file prune.h.

3

Definition at line 109 of file prune.h.

4

Definition at line 122 of file prune.h.

1

Definition at line 28 of file push.h.

2

Definition at line 43 of file push.h.

Definition at line 32 of file randequivalent.h.

Definition at line 50 of file randequivalent.h.

typedef args::Package<const FstClass&, const FstClass&, int32, float, int, int> fst::script::RandEquivalentInnerArgs1

1

Definition at line 30 of file randequivalent.h.

2

Definition at line 47 of file randequivalent.h.

Definition at line 90 of file randgen.h.

typedef args::Package<MutableFstClass *, const SymbolTable *, const SymbolTable *, bool, const SymbolTable *, const SymbolTable *, bool> fst::script::RelabelArgs1

1

Definition at line 37 of file relabel.h.

typedef args::Package<MutableFstClass*, const vector<pair<int64, int64> > &, const vector<pair<int64, int64> > > fst::script::RelabelArgs2

2

Definition at line 50 of file relabel.h.

3

Definition at line 71 of file relabel.h.

typedef args::Package<const vector<pair<int64, const FstClass *> > &, MutableFstClass *, const int64, bool> fst::script::ReplaceArgs

Definition at line 33 of file replace.h.

Definition at line 27 of file reverse.h.

Definition at line 32 of file reweight.h.

1

Definition at line 131 of file rmepsilon.h.

2

Definition at line 154 of file rmepsilon.h.

3

Definition at line 166 of file rmepsilon.h.

1

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

typedef args::Package<const FstClass&, vector<WeightClass>*, bool, double> fst::script::ShortestDistanceArgs2

2

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

3

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

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

2

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

typedef WeightImplBase*(* fst::script::StrToWeightImplBaseT)(const string &str, const string &src, size_t nline)

Registration for generic weight types.

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

Definition at line 27 of file synchronize.h.

Definition at line 27 of file topsort.h.

Definition at line 27 of file union.h.

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


Enumeration Type Documentation

Enumerator:
ANY_ARC_FILTER 
EPSILON_ARC_FILTER 
INPUT_EPSILON_ARC_FILTER 
OUTPUT_EPSILON_ARC_FILTER 

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

Enumerator:
ILABEL_COMPARE 
OLABEL_COMPARE 

Definition at line 27 of file arcsort.h.

Enumerator:
UNIFORM_ARC_SELECTOR 
LOG_PROB_ARC_SELECTOR 
FAST_LOG_PROB_ARC_SELECTOR 

Definition at line 27 of file randgen.h.


Function Documentation

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

Template function to apply an operation by name

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

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

Definition at line 32 of file arcsort.h.

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

Definition at line 24 of file arcsort.cc.

bool fst::script::ArcTypesMatch ( const FstClass &  a,
const FstClass &  b,
const string &  op_name 
)

Helper that logs to ERROR if the arc types of a and b don't match. The op_name is also printed.

Utility function for checking that arc types match.

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

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

Definition at line 30 of file closure.h.

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

Definition at line 24 of file closure.cc.

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

Definition at line 58 of file compile.h.

void fst::script::CompileFst ( istream &  istrm,
const string &  source,
const string &  dest,
const string &  fst_type,
const 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 26 of file compile.cc.

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

Definition at line 34 of file compose.cc.

void fst::script::Compose ( const FstClass &  ifst1,
const FstClass &  ifst2,
MutableFstClass *  ofst,
ComposeFilter  compose_filter 
)

Definition at line 25 of file compose.cc.

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

Definition at line 45 of file compose.h.

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

Definition at line 39 of file concat.h.

void fst::script::Concat ( MutableFstClass *  ofst,
const FstClass &  ifst 
)

Definition at line 24 of file concat.cc.

void fst::script::Concat ( const FstClass &  ifst,
MutableFstClass *  ofst 
)

Definition at line 32 of file concat.cc.

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

This function confuses SWIG, because both versions have the same args.

Definition at line 24 of file connect.cc.

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

Definition at line 32 of file convert.h.

FstClass * fst::script::Convert ( const FstClass &  f,
const string &  new_type 
)

Definition at line 25 of file convert.cc.

template<class A >
fst::PruneOptions<A, AnyArcFilter<A> > fst::script::ConvertPruneOptions ( const PruneOptions &  opts  ) 

converts a script::PruneOptions into a fst::PruneOptions. Notes: If the original opts.distance is not NULL, a new distance will be created with new; it's the client's responsibility to delete this.

Definition at line 54 of file prune.h.

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

Definition at line 32 of file decode.h.

void fst::script::Decode ( MutableFstClass *  fst,
const string &  coder_fname 
)

Definition at line 25 of file decode.cc.

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

Definition at line 46 of file determinize.h.

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

Definition at line 24 of file determinize.cc.

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

Definition at line 44 of file difference.h.

void fst::script::Difference ( const FstClass &  ifst1,
const FstClass &  ifst2,
MutableFstClass *  ofst,
ComposeFilter  compose_filter 
)

Definition at line 24 of file difference.cc.

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

Definition at line 33 of file difference.cc.

template<class Arc >
void fst::script::DrawFst ( FstDrawerArgs *  args  ) 

Definition at line 78 of file draw.h.

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

Definition at line 26 of file draw.cc.

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

Definition at line 33 of file encode.h.

void fst::script::Encode ( MutableFstClass *  fst,
uint32  flags,
bool  reuse_encoder,
const string &  coder_fname 
)

Definition at line 25 of file encode.cc.

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

Definition at line 31 of file epsnormalize.h.

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

Definition at line 24 of file epsnormalize.cc.

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

Definition at line 31 of file equal.h.

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

Definition at line 24 of file equal.cc.

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

Definition at line 32 of file equivalent.h.

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

Definition at line 24 of file equivalent.cc.

void fst::script::FarCompileStrings ( const vector< string > &  in_fnames,
const string &  out_fname,
const string &  arc_type,
const string &  fst_type,
const FarType &  far_type,
int32  generate_keys,
FarEntryType  fet,
FarTokenType  tt,
const string &  symbols_fname,
bool  allow_negative_labels,
bool  file_list_input,
const string &  key_prefix,
const string &  key_suffix 
)
template<class Arc >
void fst::script::FarCompileStrings ( FarCompileStringsArgs *  args  ) 

Definition at line 79 of file farscript.h.

void fst::script::FarCreate ( const vector< string > &  in_fnames,
const string &  out_fname,
const string &  arc_type,
const int32  generate_keys,
const bool  file_list_input,
const FarType &  far_type,
const string &  key_prefix,
const string &  key_suffix 
)
template<class Arc >
void fst::script::FarCreate ( FarCreateArgs *  args  ) 

Definition at line 127 of file farscript.h.

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

Definition at line 148 of file farscript.h.

void fst::script::FarExtract ( const vector< string > &  ifilenames,
const string &  arc_type,
int32  generate_filenames,
const string &  begin_key,
const string &  end_key,
const string &  filename_prefix,
const string &  filename_suffix 
)
void fst::script::FarInfo ( const vector< string > &  filenames,
const string &  arc_type,
const string &  begin_key,
const string &  end_key,
const bool  list_fsts 
)
template<class Arc >
void fst::script::FarInfo ( FarInfoArgs *  args  ) 

Definition at line 163 of file farscript.h.

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

Definition at line 199 of file farscript.h.

void fst::script::FarPrintStrings ( const vector< string > &  ifilenames,
const string &  arc_type,
const FarEntryType  entry_type,
const FarTokenType  token_type,
const string &  begin_key,
const string &  end_key,
const bool  print_key,
const string &  symbols_fname,
const int32  generate_filenames,
const string &  filename_prefix,
const string &  filename_suffix 
)
const IORegistration<VectorFstClass>::Entry& fst::script::GetVFSTRegisterEntry ( const string &  arc_type  ) 

VECTOR FST CONSTRUCTORS

Definition at line 84 of file fst-class.cc.

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

Definition at line 44 of file intersect.h.

void fst::script::Intersect ( const FstClass &  ifst1,
const FstClass &  ifst2,
MutableFstClass *  ofst,
ComposeFilter  compose_filter 
)

Definition at line 24 of file intersect.cc.

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

Definition at line 33 of file intersect.cc.

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

The following confuses swig, because it has the same arguments as the non-templated version

Definition at line 24 of file invert.cc.

void fst::script::Map ( MutableFstClass *  ofst,
MapType  map_type,
float  delta = fst::kDelta,
const WeightClass &  w = fst::script::WeightClass::Zero() 
)

Definition at line 24 of file map.cc.

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

Definition at line 32 of file map.h.

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

Definition at line 30 of file minimize.h.

void fst::script::Minimize ( MutableFstClass *  ofst1,
MutableFstClass *  ofst2 = 0,
float  delta = kDelta 
)

Definition at line 24 of file minimize.cc.

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

The following confuses swig, and doesn't need to be wrapped anyway.

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

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

Definition at line 55 of file pdtscript.h.

void fst::script::PdtCompose ( const FstClass &  ifst1,
const FstClass &  ifst2,
const vector< pair< int64, int64 > > &  parens,
MutableFstClass *  ofst,
const ComposeOptions &  copts,
bool  left_pdt 
)
void fst::script::PdtExpand ( const FstClass &  ifst,
const vector< pair< int64, int64 > > &  parens,
MutableFstClass *  ofst,
bool  connect,
bool  keep_parentheses 
)
template<class Arc >
void fst::script::PdtExpand ( PdtExpandArgs *  args  ) 

Definition at line 89 of file pdtscript.h.

void fst::script::PdtReplace ( const vector< pair< int64, const FstClass * > > &  fst_tuples,
MutableFstClass *  ofst,
vector< pair< int64, int64 > > *  parens,
const int64 root 
)
template<class Arc >
void fst::script::PdtReplace ( PdtReplaceArgs *  args  ) 

Definition at line 113 of file pdtscript.h.

void fst::script::PdtReverse ( const FstClass &  ifst,
const vector< pair< int64, int64 > > &  parens,
MutableFstClass *  ofst 
)
template<class Arc >
void fst::script::PdtReverse ( PdtReverseArgs *  args  ) 

Definition at line 150 of file pdtscript.h.

void fst::script::PdtShortestPath ( const FstClass &  ifst,
const vector< pair< int64, int64 > > &  parens,
MutableFstClass *  ofst,
const PdtShortestPathOptions &  opts 
)
template<class Arc >
void fst::script::PdtShortestPath ( PdtShortestPathArgs *  args  ) 

Definition at line 186 of file pdtscript.h.

template<class Arc >
void fst::script::PrintFst ( FstPrinterArgs *  args  ) 

Definition at line 54 of file print.h.

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

Definition at line 26 of file print.cc.

template<class Arc >
void fst::script::PrintFstInfo ( InfoArgs *  args  ) 

Definition at line 31 of file info.h.

void fst::script::PrintFstInfo ( const FstClass &  f,
bool  test_properties,
const string &  arc_filter,
const string &  info_type,
bool  pipe 
)

Definition at line 26 of file info.cc.

void fst::script::PrintPdtInfo ( const FstClass &  ifst,
const vector< pair< int64, int64 > > &  parens 
)
template<class Arc >
void fst::script::PrintPdtInfo ( PrintPdtInfoArgs *  args  ) 

Definition at line 241 of file pdtscript.h.

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

Definition at line 30 of file project.h.

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

Definition at line 24 of file project.cc.

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

Definition at line 124 of file prune.h.

void fst::script::Prune ( MutableFstClass *  fst,
const PruneOptions &  opts 
)

1

Definition at line 26 of file prune.cc.

void fst::script::Prune ( const FstClass &  ifst,
MutableFstClass *  fst,
const PruneOptions &  opts 
)

2

Definition at line 33 of file prune.cc.

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

3

Definition at line 41 of file prune.cc.

void fst::script::Prune ( MutableFstClass *  fst,
const WeightClass &  weight_threshold,
int64  state_threshold,
float  delta 
)

4

Definition at line 51 of file prune.cc.

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

Definition at line 46 of file push.h.

void fst::script::Push ( MutableFstClass *  ofst,
ReweightType  type,
float  delta = kDelta,
bool  remove_total_weight = false 
)

1

Definition at line 25 of file push.cc.

void fst::script::Push ( const FstClass &  ifst,
MutableFstClass *  ofst,
uint32  flags,
ReweightType  dir,
float  delta 
)

2

Definition at line 32 of file push.cc.

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

Definition at line 53 of file randequivalent.h.

bool fst::script::RandEquivalent ( const FstClass &  fst1,
const FstClass &  fst2,
int32  seed = time(0),
ssize_t  num_paths = 1,
float  delta = fst::kDelta,
int  path_length = INT_MAX 
)

1

Definition at line 25 of file randequivalent.cc.

bool fst::script::RandEquivalent ( const FstClass &  fst1,
const FstClass &  fst2,
int32  seed,
ssize_t  num_paths,
float  delta,
const fst::RandGenOptions< fst::script::RandArcSelection > &  opts 
)

2

Definition at line 39 of file randequivalent.cc.

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

Definition at line 93 of file randgen.h.

void fst::script::RandGen ( const FstClass &  ifst,
MutableFstClass *  ofst,
int32  seed = time(0),
const RandGenOptions< RandArcSelection > &  opts = fst::RandGenOptions<fst::script::RandArcSelection>(                 fst::script::UNIFORM_ARC_SELECTOR) 
)

Client-facing prototype.

Definition at line 24 of file randgen.cc.

template<class FstT >
FstT* fst::script::ReadFst ( istream &  in,
const string &  fname 
)

FST CLASS METHODS

Definition at line 43 of file fst-class.cc.

void fst::script::ReadPotentials ( const string &  weight_type,
const string &  filename,
vector< WeightClass > *  potential 
)

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

fst::script::REGISTER_FST_CLASSES ( StdArc   ) 

REGISTRATION

fst::script::REGISTER_FST_FAR_OPERATIONS ( StdArc   ) 

Instantiate all templates for common arc types.

fst::script::REGISTER_FST_OPERATION ( ShortestDistance  ,
StdArc  ,
ShortestDistanceArgs3   
)
fst::script::REGISTER_FST_OPERATION ( Prune  ,
StdArc  ,
PruneArgs1   
)

1

4

3

2

fst::script::REGISTER_FST_OPERATION ( Concat  ,
StdArc  ,
ConcatArgs1   
)
fst::script::REGISTER_FST_OPERATION ( CompileFst  ,
StdArc  ,
FstCompileArgs   
)
fst::script::REGISTER_FST_OPERATION ( Reweight  ,
StdArc  ,
ReweightArgs   
)
fst::script::REGISTER_FST_OPERATION ( RmEpsilon  ,
StdArc  ,
RmEpsilonArgs1   
)
fst::script::REGISTER_FST_OPERATION ( RandEquivalent  ,
StdArc  ,
RandEquivalentArgs1   
)
fst::script::REGISTER_FST_OPERATION ( Replace  ,
StdArc  ,
ReplaceArgs   
)
fst::script::REGISTER_FST_OPERATION ( RandGen  ,
StdArc  ,
RandGenArgs   
)
fst::script::REGISTER_FST_OPERATION ( ArcSort  ,
StdArc  ,
ArcSortArgs   
)
fst::script::REGISTER_FST_OPERATION ( Relabel  ,
StdArc  ,
RelabelArgs1   
)

1

3

2

fst::script::REGISTER_FST_OPERATION ( Push  ,
StdArc  ,
PushArgs1   
)
fst::script::REGISTER_FST_OPERATION ( Connect  ,
StdArc  ,
MutableFstClass   
)
fst::script::REGISTER_FST_OPERATION ( Minimize  ,
StdArc  ,
MinimizeArgs   
)
fst::script::REGISTER_FST_OPERATION ( PrintFst  ,
StdArc  ,
FstPrinterArgs   
)
fst::script::REGISTER_FST_OPERATION ( Project  ,
StdArc  ,
ProjectArgs   
)
fst::script::REGISTER_FST_OPERATION ( Union  ,
StdArc  ,
UnionArgs   
)
fst::script::REGISTER_FST_OPERATION ( PrintFstInfo  ,
StdArc  ,
InfoArgs   
)
fst::script::REGISTER_FST_OPERATION ( EpsNormalize  ,
StdArc  ,
EpsNormalizeArgs   
)
fst::script::REGISTER_FST_OPERATION ( Encode  ,
StdArc  ,
EncodeArgs   
)
fst::script::REGISTER_FST_OPERATION ( Equal  ,
StdArc  ,
EqualArgs   
)
fst::script::REGISTER_FST_OPERATION ( Map  ,
StdArc  ,
MapArgs   
)
fst::script::REGISTER_FST_OPERATION ( Intersect  ,
StdArc  ,
IntersectArgs1   
)
fst::script::REGISTER_FST_OPERATION ( Invert  ,
StdArc  ,
MutableFstClass   
)
fst::script::REGISTER_FST_OPERATION ( Equivalent  ,
StdArc  ,
EquivalentArgs   
)
fst::script::REGISTER_FST_OPERATION ( TopSort  ,
StdArc  ,
TopSortArgs   
)
fst::script::REGISTER_FST_OPERATION ( Convert  ,
StdArc  ,
ConvertArgs   
)
fst::script::REGISTER_FST_OPERATION ( Reverse  ,
StdArc  ,
ReverseArgs   
)
fst::script::REGISTER_FST_OPERATION ( Decode  ,
StdArc  ,
DecodeArgs   
)
fst::script::REGISTER_FST_OPERATION ( DrawFst  ,
StdArc  ,
FstDrawerArgs   
)
fst::script::REGISTER_FST_OPERATION ( Difference  ,
StdArc  ,
DifferenceArgs1   
)
fst::script::REGISTER_FST_OPERATION ( Synchronize  ,
StdArc  ,
SynchronizeArgs   
)
fst::script::REGISTER_FST_OPERATION ( Determinize  ,
StdArc  ,
DeterminizeArgs   
)
fst::script::REGISTER_FST_OPERATION ( ShortestDistance  ,
StdArc  ,
ShortestDistanceArgs1   
)
fst::script::REGISTER_FST_OPERATION ( Compose  ,
StdArc  ,
ComposeArgs1   
)
fst::script::REGISTER_FST_OPERATION ( Closure  ,
StdArc  ,
ClosureArgs   
)
fst::script::REGISTER_FST_OPERATION ( ShortestPath  ,
StdArc  ,
ShortestPathArgs1   
)
fst::script::REGISTER_FST_PDT_OPERATIONS ( StdArc   ) 

Register operations for common arc types.

fst::script::REGISTER_FST_WEIGHT ( StdArc::Weight   ) 
void fst::script::Relabel ( MutableFstClass *  ofst,
const SymbolTable *  old_isyms,
const SymbolTable *  relabel_isyms,
bool  attach_new_isyms,
const SymbolTable *  old_osyms,
const SymbolTable *  relabel_osyms,
bool  attch_new_osyms 
)

1

Definition at line 25 of file relabel.cc.

template<class Arc >
void fst::script::Relabel ( args::Package< MutableFstClass *, const SymbolTable *, const SymbolTable * > *  args  ) 

Definition at line 73 of file relabel.h.

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

Definition at line 53 of file relabel.h.

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

2

Definition at line 36 of file relabel.cc.

void fst::script::Relabel ( MutableFstClass *  fst,
const SymbolTable *  new_isymbols,
const SymbolTable *  new_osymbols 
)

3

Definition at line 45 of file relabel.cc.

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

Definition at line 36 of file replace.h.

void fst::script::Replace ( const vector< pair< int64, const FstClass * > > &  tuples,
MutableFstClass *  ofst,
const int64 root,
bool  epsilon_on_replace = false 
)

Definition at line 24 of file replace.cc.

void fst::script::Reverse ( const FstClass &  fst1,
MutableFstClass *  fst2 
)

Definition at line 24 of file reverse.cc.

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

Definition at line 30 of file reverse.h.

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

Definition at line 35 of file reweight.h.

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

Definition at line 24 of file reweight.cc.

void fst::script::RmEpsilon ( MutableFstClass *  arc,
bool  connect = true,
const WeightClass &  weight_threshold = fst::script::WeightClass::Zero(),
int64  state_threshold = fst::kNoStateId,
float  delta = fst::kDelta 
)

2

Definition at line 33 of file rmepsilon.cc.

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

Definition at line 169 of file rmepsilon.h.

void fst::script::RmEpsilon ( const FstClass &  ifst,
MutableFstClass *  ofst,
bool  reverse = false,
const RmEpsilonOptions &  opts = fst::script::RmEpsilonOptions() 
)

1

PROTOTYPES

Definition at line 24 of file rmepsilon.cc.

void fst::script::RmEpsilon ( MutableFstClass *  fst,
vector< WeightClass > *  distance,
const RmEpsilonOptions &  opts 
)

3

Definition at line 41 of file rmepsilon.cc.

template<class Arc >
void fst::script::RmEpsilonHelper ( MutableFst< Arc > *  fst,
vector< typename Arc::Weight > *  distance,
const RmEpsilonOptions &  opts 
)

TEMPLATES this function takes care of transforming a script-land RmEpsilonOptions into a lib-land RmEpsilonOptions

Definition at line 65 of file rmepsilon.h.

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

2

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

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

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

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

1

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

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

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

WeightClass fst::script::ShortestDistance ( const FstClass &  ifst  ) 

3

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

template<class Arc , class Queue >
void fst::script::ShortestDistanceHelper ( ShortestDistanceArgs1 *  args  ) 

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

void fst::script::ShortestPath ( const FstClass &  ifst,
MutableFstClass *  ofst,
vector< WeightClass > *  distance,
const ShortestPathOptions &  opts 
)

1

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

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

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

void fst::script::ShortestPath ( const FstClass &  ifst,
MutableFstClass *  ofst,
size_t  n = 1,
bool  unique = false,
bool  first_path = false,
WeightClass  weight_threshold = fst::script::WeightClass::Zero(),
int64  state_threshold = fst::kNoStateId 
)

2

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

template<class W >
WeightImplBase* fst::script::StrToWeightImplBase ( const string &  str,
const string &  src,
size_t  nline 
)

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

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

Definition at line 30 of file synchronize.h.

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

Definition at line 24 of file synchronize.cc.

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

Definition at line 24 of file topsort.cc.

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

Definition at line 30 of file topsort.h.

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

Definition at line 24 of file union.cc.

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

Definition at line 30 of file union.h.

void fst::script::WritePotentials ( const string &  filename,
const vector< WeightClass > &  potential 
)

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

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines