learning_entity_extraction 0.0.1 copy "learning_entity_extraction: ^0.0.1" to clipboard
learning_entity_extraction: ^0.0.1 copied to clipboard

outdated

The easy way to use ML Kit for entity extraction in Flutter.

ML Entity Extraction #

The easy way to use ML Kit for entity extraction in Flutter.

Getting Started #

Add dependency to your flutter project:

$ flutter pub add learning_entity_extraction

or

dependencies:
  learning_entity_extraction: ^0.0.1

Then run flutter pub get.

Usage #

import 'package:learning_entity_extraction/learning_entity_extraction.dart';

Extracting Entities #

EntityExtractor extractor = EntityExtractor();
List result = await extractor.extract(text);
print(result);

Dispose #

extractor.dispose();

Entity Model Management #

Get list of downloaded entity models.

var models = await EntityModelManager.list();
print(models);

Download entity model.

await EntityModelManager.download(ENGLISH);

Check availability of entity model (downloaded or not).

// exist will true if the model is already downloaded before
var exist = await EntityModelManager.check(ENGLISH);
print('Check model: $exist');    

Delete entity model.

await EntityModelManager.delete(ENGLISH);

Supported Languages #

Here is language variables you can use in learning_entity_extraction.

const ARABIC = 'arabic';
const CHINESE = 'chinese';
const DUTCH = 'dutch';
const ENGLISH = 'english';
const FRENCH = 'french';
const GERMAN = 'german';
const ITALIAN = 'italian';
const JAPANESE = 'japanese';
const KOREAN = 'korean';
const POLISH = 'polish';
const PORTUGUESE = 'portuguese';
const RUSSIAN = 'russian';
const SPANISH = 'spanish';
const THAI = 'thai';
const TURKISH = 'turkish';

Example Project #

You can learn more from example project here.

7
likes
0
pub points
29%
popularity

Publisher

unverified uploader

The easy way to use ML Kit for entity extraction in Flutter.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on learning_entity_extraction