// See www.openfst.org for extensive documentation on this weighted // finite-state transducer library. // // Definition of ReadLabelTriples based on ReadLabelPairs, like that in // nlp/fst/lib/util.h for pairs, and similarly for WriteLabelTriples. #ifndef FST_EXTENSIONS_MPDT_READ_WRITE_UTILS_H_ #define FST_EXTENSIONS_MPDT_READ_WRITE_UTILS_H_ #include #include #include #include #include namespace fst { // Returns true on success. template bool ReadLabelTriples(const string &filename, std::vector> *pairs, std::vector