15 #ifndef FST_EXTENSIONS_FAR_ENCODE_H_ 16 #define FST_EXTENSIONS_FAR_ENCODE_H_ 26 #include <string_view> 34 [mapper](std::string_view key,
const Fst<Arc> *ifst) {
35 auto ofst = std::make_unique<VectorFst<Arc>>(*ifst);
36 Encode(ofst.get(), mapper);
45 [&mapper](std::string_view key,
const Fst<Arc> *ifst) {
46 auto ofst = std::make_unique<VectorFst<Arc>>(*ifst);
47 Decode(ofst.get(), mapper);
54 #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)