15 #ifndef FST_EXTENSIONS_FAR_ENCODE_H_ 16 #define FST_EXTENSIONS_FAR_ENCODE_H_ 23 #include <string_view> 31 [mapper](std::string_view key,
const Fst<Arc> *ifst) {
32 auto ofst = std::make_unique<VectorFst<Arc>>(*ifst);
33 Encode(ofst.get(), mapper);
42 [&mapper](std::string_view key,
const Fst<Arc> *ifst) {
43 auto ofst = std::make_unique<VectorFst<Arc>>(*ifst);
44 Decode(ofst.get(), mapper);
51 #endif // FST_EXTENSIONS_FAR_ENCODE_H_
void Encode(MutableFst< Arc > *fst, EncodeMapper< Arc > *mapper)
void Map(FarReader< Arc > &reader, FarWriter< Arc > &writer, Functor functor)
void Decode(MutableFst< Arc > *fst, const EncodeMapper< Arc > &mapper)