// See www.openfst.org for extensive documentation on this weighted // finite-state transducer library. #ifndef FST_EXTENSIONS_SPECIAL_PHI_FST_H_ #define FST_EXTENSIONS_SPECIAL_PHI_FST_H_ #include #include #include #include #include DECLARE_int64(phi_fst_phi_label); DECLARE_bool(phi_fst_phi_loop); DECLARE_string(phi_fst_rewrite_mode); namespace fst { namespace internal { template class PhiFstMatcherData { public: PhiFstMatcherData( Label phi_label = FLAGS_phi_fst_phi_label, bool phi_loop = FLAGS_phi_fst_phi_loop, MatcherRewriteMode rewrite_mode = RewriteMode(FLAGS_phi_fst_rewrite_mode)) : phi_label_(phi_label), phi_loop_(phi_loop), rewrite_mode_(rewrite_mode) {} PhiFstMatcherData(const PhiFstMatcherData &data) : phi_label_(data.phi_label_), phi_loop_(data.phi_loop_), rewrite_mode_(data.rewrite_mode_) {} static PhiFstMatcherData