WordSegmenter.dictionary constructor

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.

Note: currently, it uses dictionary for Chinese and Japanese, and dictionary for Burmese, Khmer, Lao, and Thai.

See the Rust documentation for new_dictionary for more information.

Implementation

factory WordSegmenter.dictionary() {
  final result = _icu4x_WordSegmenter_create_dictionary_mv1();
  return WordSegmenter._fromFfi(result, []);
}