40 const std::vector<std::pair<int64_t, int64_t>> &parens,
47 ofst, copts, left_pdt};
48 Apply<Operation<MPdtComposeArgs>>(
"Compose", ifst1.
ArcType(), &args);
54 const std::vector<std::pair<int64_t, int64_t>> &parens,
58 Apply<Operation<MPdtExpandArgs>>(
"Expand", ifst.
ArcType(), &args);
64 const std::vector<std::pair<int64_t, int64_t>> &parens,
71 const std::vector<std::pair<int64_t, int64_t>> &parens,
74 Apply<Operation<MPdtReverseArgs>>(
"Reverse", ifst.
ArcType(), &args);
80 const std::vector<std::pair<int64_t, int64_t>> &parens,
81 const std::vector<int64_t> &assignments) {
83 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)