Package com.ibm.icu.segmenter
Class RuleBasedSegmenter.Builder
- java.lang.Object
-
- com.ibm.icu.segmenter.RuleBasedSegmenter.Builder
-
- Enclosing class:
- RuleBasedSegmenter
public static class RuleBasedSegmenter.Builder extends Object
Builder forRuleBasedSegmenter
- Status:
- Draft ICU 78.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Segmenter
build()
Builds theSegmenter
RuleBasedSegmenter.Builder
setRules(String rules)
Sets the rule string for segmentation.
-
-
-
Method Detail
-
setRules
public RuleBasedSegmenter.Builder setRules(String rules)
Sets the rule string for segmentation.- Parameters:
rules
- rule string. The rule string must follow the same guidelines as forRuleBasedBreakIterator.getInstanceFromCompiledRules(InputStream)
.- Status:
- Draft ICU 78.
-
build
public Segmenter build()
Builds theSegmenter
- Returns:
- the constructed
Segmenter
instance - Status:
- Draft ICU 78.
-
-