Uses of Class
cloud.opencode.base.string.unicode.ChineseSegmenter.Builder
Packages that use ChineseSegmenter.Builder
-
Uses of ChineseSegmenter.Builder in cloud.opencode.base.string.unicode
Methods in cloud.opencode.base.string.unicode that return ChineseSegmenter.BuilderModifier and TypeMethodDescriptionAdds a custom word to the dictionary.ChineseSegmenter.Builder.addWords(Collection<String> words) Adds multiple custom words.static ChineseSegmenter.BuilderChineseSegmenter.builder()Creates a new builder.ChineseSegmenter.Builder.keepNumbers(boolean keep) Sets whether to keep numbers in results.ChineseSegmenter.Builder.keepPunctuation(boolean keep) Sets whether to keep punctuation in results.ChineseSegmenter.Builder.maxWordLength(int length) Sets the maximum word length for matching.