22#include "Segmentation.hpp"
35 const std::string& modelPath,
36 const std::string& userDictPath =
"",
37 const std::string& idfPath =
"",
38 const std::string& stopWordsPath =
"");
42 SegmentsPtr
Segment(std::string_view text)
const override;
45 std::unique_ptr<cppjieba::Jieba> jieba_;
Definition: JiebaSegmentation.hpp:30
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.