42 const std::vector<std::pair<int64_t, int64_t>> &parens,
49 ofst, copts, left_pdt};
50 Apply<Operation<MPdtComposeArgs>>(
"Compose", ifst1.
ArcType(), &args);
56 const std::vector<std::pair<int64_t, int64_t>> &parens,
60 Apply<Operation<MPdtExpandArgs>>(
"Expand", ifst.
ArcType(), &args);
66 const std::vector<std::pair<int64_t, int64_t>> &parens,
73 const std::vector<std::pair<int64_t, int64_t>> &parens,
76 Apply<Operation<MPdtReverseArgs>>(
"Reverse", ifst.
ArcType(), &args);
82 const std::vector<std::pair<int64_t, int64_t>> &parens,
83 const std::vector<int64_t> &assignments) {
85 Apply<Operation<MPdtInfoArgs>>(
"Info", ifst.
ArcType(), &args);
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(Compress, CompressArgs)
const std::string & ArcType() const final
std::tuple< const FstClass &, const std::vector< std::pair< int64_t, int64_t >> &, const std::vector< int64_t > & > MPdtInfoArgs
std::tuple< const FstClass &, const FstClass &, const std::vector< std::pair< int64_t, int64_t >> &, const std::vector< int64_t > &, MutableFstClass *, const MPdtComposeOptions &, bool > MPdtComposeArgs
bool ArcTypesMatch(const M &m, const N &n, const std::string &op_name)
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)
std::tuple< const FstClass &, const std::vector< std::pair< int64_t, int64_t >> &, std::vector< int64_t > *, MutableFstClass * > MPdtReverseArgs
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)
std::tuple< const FstClass &, const std::vector< std::pair< int64_t, int64_t >> &, const std::vector< int64_t > &, MutableFstClass *, const MPdtExpandOptions & > MPdtExpandArgs
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)