LineSegmenter.lstmWithOptions constructor
- LineBreakOptions options, [
- Locale? contentLocale
Construct a LineSegmenter with custom options and LSTM payload data for Burmese, Khmer, Lao, and Thai, using compiled data.
See the Rust documentation for new_lstm
for more information.
Implementation
factory LineSegmenter.lstmWithOptions(LineBreakOptions options, [Locale? contentLocale]) {
final temp = _FinalizedArena();
final result = _icu4x_LineSegmenter_create_lstm_with_options_v2_mv1(contentLocale?._ffi ?? ffi.Pointer.fromAddress(0), options._toFfi(temp.arena));
return LineSegmenter._fromFfi(result, []);
}