22#include "Segmentation.hpp"
34 JiebaSegmentation(
const std::string& dictPath,
35 const std::string& modelPath,
36 const std::string& userDictPath =
"",
37 const std::string& idfPath =
"",
38 const std::string& stopWordsPath =
"");
40 ~JiebaSegmentation()
override;
42 SegmentsPtr
Segment(std::string_view text)
const override;
45 std::unique_ptr<cppjieba::Jieba> jieba_;
SegmentsPtr Segment(std::string_view text) const override
Splits text into segments and returns them.
Definition JiebaSegmentation.cpp:319
Abstract base for text segmentation.
Definition Segmentation.hpp:38
virtual SegmentsPtr Segment(std::string_view text) const =0
Splits text into segments and returns them.