Open Chinese Convert 1.3.2
A project for conversion between Traditional and Simplified Chinese
Loading...
Searching...
No Matches
Public Member Functions | List of all members
opencc::JiebaSegmentation Class Reference
Inheritance diagram for opencc::JiebaSegmentation:
opencc::Segmentation

Public Member Functions

 JiebaSegmentation (const std::string &dictPath, const std::string &modelPath, const std::string &userDictPath="", const std::string &idfPath="", const std::string &stopWordsPath="")
 
SegmentsPtr Segment (std::string_view text) const override
 Splits text into segments and returns them.
 
virtual SegmentsPtr Segment (std::string_view text) const=0
 Splits text into segments and returns them.
 
SegmentsPtr Segment (const char *text) const
 Convenience overload for null-terminated C strings.
 
SegmentsPtr Segment (const std::string &str) const
 Convenience overload for std::string.
 
- Public Member Functions inherited from opencc::Segmentation
virtual SegmentsPtr Segment (std::string_view text) const =0
 Splits text into segments and returns them.
 
SegmentsPtr Segment (const char *text) const
 Convenience overload for null-terminated C strings.
 
SegmentsPtr Segment (const std::string &str) const
 Convenience overload for std::string.
 

Member Function Documentation

◆ Segment() [1/2]

SegmentsPtr JiebaSegmentation::Segment ( std::string_view  text) const
overridevirtual

Splits text into segments and returns them.

This is the primary override point for subclasses.

Implements opencc::Segmentation.

◆ Segment() [2/2]

virtual SegmentsPtr opencc::Segmentation::Segment ( std::string_view  text) const
virtual

Splits text into segments and returns them.

This is the primary override point for subclasses.

Implements opencc::Segmentation.


The documentation for this class was generated from the following files: