learning_language

Last updated:

0 purchases

learning_language Image
learning_language Images
Add to Cart

Description:

learning language

ML Language #
The easy way to use ML Kit for identifying languages in Flutter.
With ML Kit's on-device language identification, we can determine the language of a string of text. Language identification can be useful when working with user-provided text, which often doesn't come with any language information.
Getting Started #
Add dependency to your flutter project:
$ flutter pub add learning_language
copied to clipboard
or
dependencies:
learning_language: ^0.0.3+2
copied to clipboard
Then run flutter pub get.
Usage #
import 'package:learning_language/learning_language.dart';
copied to clipboard
Identify Language #
String text = 'Baby, you light up my world like nobody else';
LanguageIdentifier identifier = LanguageIdentifier();
String language = await identifier.identify(text);
print(language);
copied to clipboard
Identify Possible Languages #
String text = 'Baby, you light up my world like nobody else';
LanguageIdentifier identifier = LanguageIdentifier();
List<IdentifiedLanguage> possibleLanguages = await identifier.idenfityPossibleLanguages(text);

String languages = possibleLanguages.map((item) => item.language).toList().join(', ');

print('Possible Languages: $languages');
copied to clipboard
Dispose #
identifier.dispose();
copied to clipboard
Example Project #
You can learn more from example project here.

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.