Understand CppJieba segmentation modes
masterCppJieba supports several segmentation modes:
- MPSegment (Precise Mode): Standard segmentation.
- HMMSegment: Uses Hidden Markov Model to identify out-of-vocabulary (OOV) words.
- MixSegment: Combines MP and HMM modes. This is generally the most effective as it accurately segments dictionary words while also identifying OOV words (e.g., "杭研").
- FullSegment (Full Mode): Segments all possible words found in the dictionary.
- QuerySegment (Search Engine Mode): First uses
MixSegment, then appliesFullSegmentto the resulting long words to optimize for search engines.