google_mlkit_language_id 0.5.0 copy "google_mlkit_language_id: ^0.5.0" to clipboard
google_mlkit_language_id: ^0.5.0 copied to clipboard

outdated

A Flutter plugin to use Google's ML Kit Language Identification to determine the language of a string of text.

Google's ML Kit Language Identification for Flutter #

Pub Version analysis Star on Github License: MIT

A Flutter plugin to use Google's ML Kit Language Identification to determine the language of a string of text.

Getting Started #

Before you get started read about the requirements and known issues of this plugin here.

Supported languages #

Language identification supports the following languages.

Usage #

Language Identification #

Create an instance of LanguageIdentifier

final languageIdentifier = LanguageIdentifier(confidenceThreshold: 0.5);

Process text

final String response = await languageIdentifier.identifyLanguage(text);

final List<IdentifiedLanguage> possibleLanguages = await languageIdentifier.identifyPossibleLanguages(text);

Release resources with close()

imageLabeler.close();

Example app #

Find the example app here.

Contributing #

Contributions are welcome. In case of any problems look at existing issues, if you cannot find anything related to your problem then open an issue. Create an issue before opening a pull request for non trivial fixes. In case of trivial fixes open a pull request directly.

19
likes
0
pub points
92%
popularity

Publisher

verified publisherflutter-ml.dev

A Flutter plugin to use Google's ML Kit Language Identification to determine the language of a string of text.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, google_mlkit_commons

More

Packages that depend on google_mlkit_language_id