myanmar_tools

Last updated:

0 purchases

myanmar_tools Image
myanmar_tools Images
Add to Cart

Description:

myanmar tools

Myanmar Tools Flutter Client #
This Myanmar Tools library is ported from google myanmar-tools project(java).
See https://github.com/google/myanmar-tools/ for more.
Features #

Zawgyi Detector - Calculate probability of Zawgyi from given string
Converter- Convert from Unicode to Zawgyi and Zawgyi to Unicode

Getting started #
In the pubspec.yaml of your flutter project, add the following dependency:
dependencies:
...
myanmar-tools: <latest_version>
copied to clipboard
In your library add the following import:
import 'package:myanmar-tools/myanmar_tools.dart';
copied to clipboard
For help getting started with Flutter, view the online documentation.
Example #
To detect Zawgyi, create a final instance of ZawgyiDetector, and call getZawgyiProbability with your string.
final _detector = await ZawGyiDetector.create();
double score = _detector.getZawGyiProbability("မ္း");
// score is now 0.999772 (very likely Zawgyi)
copied to clipboard
To convert between Zawgyi and Unicode, use the classe ZawGyiConverter as shown below.
final converter= ZawGyiConverter.create();
// Zawgyi to Unicode
String uniOutput = converter.zawGyiToUnicode('မ္း');
// uniOutput is now 'မ်း'

// Unicode to Zawgyi
String zawOutput = converter.unicodeToZawGyi('မ်း');
// zawOutput is now 'မ္း'
copied to clipboard
Contributing #
Bug reports and pull requests are welcome on GitHub at https://github.com/google/myanmar-tools . This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
License #
The package is available as open source under the terms of the Apache-2.0 License.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.