6 #ifndef _FCITX_LIBIME_PINYIN_PINYINDECODER_H_ 7 #define _FCITX_LIBIME_PINYIN_PINYINDECODER_H_ 11 #include <string_view> 12 #include <libime/core/decoder.h> 13 #include <libime/core/languagemodel.h> 14 #include <libime/core/lattice.h> 15 #include <libime/core/segmentgraph.h> 16 #include <libime/pinyin/libimepinyin_export.h> 17 #include <libime/pinyin/pinyindictionary.h> 21 class PinyinLatticeNodePrivate;
26 SegmentGraphPath path,
const State &state,
float cost,
27 std::unique_ptr<PinyinLatticeNodePrivate> data);
30 const std::string &encodedPinyin()
const;
31 bool isCorrection()
const;
32 bool anyCorrectionOnPath()
const;
35 std::unique_ptr<PinyinLatticeNodePrivate> d_ptr;
46 std::string_view word, WordIndex idx,
47 SegmentGraphPath path,
48 const State &state,
float cost,
49 std::unique_ptr<LatticeNodeData> data,
50 bool onlyPath)
const override;
54 #endif // _FCITX_LIBIME_PINYIN_PINYINDECODER_H_
PinyinDictionary is a set of dictionaries for Pinyin.