#ifndef CHINESESEGMENTATIONPRIVATE_H #define CHINESESEGMENTATIONPRIVATE_H #include "chinese-segmentation.h" #include "cppjieba/Jieba.hpp" #include "cppjieba/KeywordExtractor.hpp" class ChineseSegmentationPrivate { public: explicit ChineseSegmentationPrivate(ChineseSegmentation *parent = nullptr); ~ChineseSegmentationPrivate(); vector callSegment(const string& sentence); vector callSegment(QString& sentence); vector callMixSegmentCutStr(const string& sentence); vector callMixSegmentCutWord(const string& sentence); string lookUpTagOfWord(const string& word); vector> getTagOfWordsInSentence(const string &sentence); vector callFullSegment(const string& sentence); vector callQuerySegment(const string& sentence); vector callHMMSegment(const string& sentence); vector callMPSegment(const string& sentence); private: cppjieba::Jieba *m_jieba; ChineseSegmentation *q = nullptr; }; #endif // CHINESESEGMENTATIONPRIVATE_H