WordSegmenter.auto constructor

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.

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

See the Rust documentation for new_auto for more information.

Implementation

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