FST  openfst-1.7.1
OpenFst Library
Classes | Namespaces | Macros | Typedefs | Functions
pdtscript.h File Reference
#include <algorithm>
#include <utility>
#include <vector>
#include <fst/log.h>
#include <fst/compose.h>
#include <fst/util.h>
#include <fst/script/arg-packs.h>
#include <fst/script/fstscript.h>
#include <fst/script/shortest-path.h>
#include <fst/extensions/pdt/compose.h>
#include <fst/extensions/pdt/expand.h>
#include <fst/extensions/pdt/info.h>
#include <fst/extensions/pdt/replace.h>
#include <fst/extensions/pdt/reverse.h>
#include <fst/extensions/pdt/shortest-path.h>
Include dependency graph for pdtscript.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  fst::script::PdtExpandOptions
 
struct  fst::script::PdtShortestPathOptions
 

Namespaces

 fst
 
 fst::script
 

Macros

#define REGISTER_FST_PDT_OPERATIONS(ArcType)
 

Typedefs

using fst::script::PdtComposeArgs = std::tuple< const FstClass &, const FstClass &, const std::vector< LabelPair > &, MutableFstClass *, const PdtComposeOptions &, bool >
 
using fst::script::PdtExpandArgs = std::tuple< const FstClass &, const std::vector< LabelPair > &, MutableFstClass *, const PdtExpandOptions & >
 
using fst::script::PdtReplaceArgs = std::tuple< const std::vector< LabelFstClassPair > &, MutableFstClass *, std::vector< LabelPair > *, int64, PdtParserType, int64, const string &, const string & >
 
using fst::script::PdtReverseArgs = std::tuple< const FstClass &, const std::vector< LabelPair > &, MutableFstClass * >
 
using fst::script::PdtShortestPathArgs = std::tuple< const FstClass &, const std::vector< LabelPair > &, MutableFstClass *, const PdtShortestPathOptions & >
 
using fst::script::PrintPdtInfoArgs = std::pair< const FstClass &, const std::vector< LabelPair > & >
 

Functions

template<class Arc >
void fst::script::PdtCompose (PdtComposeArgs *args)
 
void fst::script::PdtCompose (const FstClass &ifst1, const FstClass &ifst2, const std::vector< LabelPair > &parens, MutableFstClass *ofst, const PdtComposeOptions &copts, bool left_pdt)
 
template<class Arc >
void fst::script::PdtExpand (PdtExpandArgs *args)
 
void fst::script::PdtExpand (const FstClass &ifst, const std::vector< LabelPair > &parens, MutableFstClass *ofst, const PdtExpandOptions &opts)
 
void fst::script::PdtExpand (const FstClass &ifst, const std::vector< LabelPair > &parens, MutableFstClass *ofst, bool connect, bool keep_parentheses, const WeightClass &weight_threshold)
 
template<class Arc >
void fst::script::PdtReplace (PdtReplaceArgs *args)
 
void fst::script::PdtReplace (const std::vector< LabelFstClassPair > &pairs, MutableFstClass *ofst, std::vector< LabelPair > *parens, int64 root, PdtParserType parser_type, int64 start_paren_labels, const string &left_paren_prefix, const string &right_paren_prefix)
 
template<class Arc >
void fst::script::PdtReverse (PdtReverseArgs *args)
 
void fst::script::PdtReverse (const FstClass &ifst, const std::vector< LabelPair > &parens, MutableFstClass *ofst)
 
template<class Arc >
void fst::script::PdtShortestPath (PdtShortestPathArgs *args)
 
void fst::script::PdtShortestPath (const FstClass &ifst, const std::vector< LabelPair > &parens, MutableFstClass *ofst, const PdtShortestPathOptions &opts)
 
template<class Arc >
void fst::script::PrintPdtInfo (PrintPdtInfoArgs *args)
 
void fst::script::PrintPdtInfo (const FstClass &ifst, const std::vector< LabelPair > &parens)
 

Macro Definition Documentation

#define REGISTER_FST_PDT_OPERATIONS (   ArcType)
Value:
std::tuple< const FstClass &, const FstClass &, const std::vector< LabelPair > &, MutableFstClass *, const PdtComposeOptions &, bool > PdtComposeArgs
Definition: pdtscript.h:35
#define REGISTER_FST_OPERATION(Op, Arc, ArgPack)
Definition: script-impl.h:150
std::tuple< const std::vector< LabelFstClassPair > &, MutableFstClass *, std::vector< LabelPair > *, int64, PdtParserType, int64, const string &, const string & > PdtReplaceArgs
Definition: pdtscript.h:102
std::tuple< const FstClass &, const std::vector< LabelPair > &, MutableFstClass *, const PdtShortestPathOptions & > PdtShortestPathArgs
Definition: pdtscript.h:168
void PdtReplace(PdtReplaceArgs *args)
Definition: pdtscript.h:105
void PdtReverse(PdtReverseArgs *args)
Definition: pdtscript.h:138
void PdtExpand(const FstClass &ifst, const std::vector< LabelPair > &parens, MutableFstClass *ofst, bool connect, bool keep_parentheses, const WeightClass &weight_threshold)
void PrintPdtInfo(PrintPdtInfoArgs *args)
Definition: pdtscript.h:219
std::tuple< const FstClass &, const std::vector< LabelPair > &, MutableFstClass * > PdtReverseArgs
Definition: pdtscript.h:135
void PdtShortestPath(PdtShortestPathArgs *args)
Definition: pdtscript.h:171
std::tuple< const FstClass &, const std::vector< LabelPair > &, MutableFstClass *, const PdtExpandOptions & > PdtExpandArgs
Definition: pdtscript.h:72
std::pair< const FstClass &, const std::vector< LabelPair > & > PrintPdtInfoArgs
Definition: pdtscript.h:216
void PdtCompose(PdtComposeArgs *args)
Definition: pdtscript.h:38

Definition at line 237 of file pdtscript.h.