22#include "Segmentation.hpp"
34 MaxMatchSegmentation(
const DictPtr _dict);
36 virtual ~MaxMatchSegmentation() {}
38 SegmentsPtr
Segment(std::string_view text)
const override;
40 const DictPtr GetDict()
const {
return dict; }
44 const std::shared_ptr<PrefixMatch> prefixMatch;
SegmentsPtr Segment(std::string_view text) const override
Splits text into segments and returns them.
Definition MaxMatchSegmentation.cpp:78
Definition PrefixMatch.hpp:26
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.