WordSegmenter class final

An ICU4X word-break segmenter, capable of finding word breakpoints in strings.

See the Rust documentation for WordSegmenter for more information.

Implemented types

Constructors

WordSegmenter.auto()
Construct an WordSegmenter with automatically selecting the best available LSTM or dictionary payload data, using compiled data. This does not assume any content locale.
factory
WordSegmenter.autoWithContentLocale(Locale locale)
Construct an WordSegmenter with automatically selecting the best available LSTM or dictionary payload data, using compiled data.
factory
WordSegmenter.autoWithContentLocaleAndProvider(DataProvider provider, Locale locale)
Construct an WordSegmenter with automatically selecting the best available LSTM or dictionary payload data, using a particular data source.
factory
WordSegmenter.dictionary()
Construct an WordSegmenter with with dictionary payload data for Chinese, Japanese, Burmese, Khmer, Lao, and Thai, using compiled data. This does not assume any content locale.
factory
WordSegmenter.dictionaryWithContentLocale(Locale locale)
Construct an WordSegmenter with dictionary payload data for Chinese, Japanese, Burmese, Khmer, Lao, and Thai, using compiled data.
factory
WordSegmenter.dictionaryWithContentLocaleAndProvider(DataProvider provider, Locale locale)
Construct an WordSegmenter with dictionary payload data for Chinese, Japanese, Burmese, Khmer, Lao, and Thai, using a particular data source.
factory
WordSegmenter.lstm()
Construct an WordSegmenter with LSTM payload data for Burmese, Khmer, Lao, and Thai, using compiled data. This does not assume any content locale.
factory
WordSegmenter.lstmWithContentLocale(Locale locale)
Construct an WordSegmenter with LSTM payload data for Burmese, Khmer, Lao, and Thai, using compiled data.
factory
WordSegmenter.lstmWithContentLocaleAndProvider(DataProvider provider, Locale locale)
Construct an WordSegmenter with LSTM payload data for Burmese, Khmer, Lao, and Thai, using a particular data source.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
segment(String input) WordBreakIteratorUtf16
Segments a string.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited