budoux 0.0.1+1 copy "budoux: ^0.0.1+1" to clipboard
budoux: ^0.0.1+1 copied to clipboard

a Dart port of BudouX, the machine learning powered line break organizer tool.

BudouX Dart #

BudouX-Dart is a Dart port of BudouX

Install #

dart pub add budoux
dependencies:
  budoux: ^0.0.1
dart pub get

example #

use default model #


import 'package:budoux/budoux.dart';

void main() {
  const b = Budoux();
  // ignore: avoid_print
  print(b.parse('これはテストです。')); // => [これは, テストです。]
}

use custom model #

import 'package:budoux/budoux.dart';

void main() {
  const b = Budoux(model: Model.fromJson(/*your custom model json*/));
  // ignore: avoid_print
  print(b.parse('これはテストです。')); // => [これは, テストです。]
}

test #

dart run test
2
likes
120
pub points
23%
popularity

Publisher

verified publisher110416.dev

a Dart port of BudouX, the machine learning powered line break organizer tool.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

characters, mustache_template, tuple

More

Packages that depend on budoux