learning_entity_extraction 0.0.1+1 copy "learning_entity_extraction: ^0.0.1+1" to clipboard
learning_entity_extraction: ^0.0.1+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.

Most apps offer users very little interaction with text beyond the basic cut/copy/paste operations. Entity extraction improves the user experience inside your app by understanding text and allowing you to add helpful shortcuts based on context.

The Entity Extraction allows you to recognize specific entities within static text and while you're typing. Once an entity is identified, you can easily enable different actions for the user based on the entity type.

Supported Entities #

Entity Example
Address 350 third street, Cambridge MA
Date-Time 2019/09/29, let's meet tomorrow at 6pm
Email address salkuadrat@gmail.com
Flight Number (IATA flight codes only) LX37
IBAN CH52 0483 0000 0000 0000 9
ISBN (version 13 only) 978-1101904190
Money/Currency (Arabic numerals only) $12, 25 USD
Payment / Credit Cards 4111 1111 1111 1111
Phone Number (555) 225-3556
Tracking Number (standardized international formats) 1Z204E380338943508
URL https://github.com/salkuadrat/learning

Getting Started #

Add dependency to your flutter project:

$ flutter pub add learning_entity_extraction

or

dependencies:
  learning_entity_extraction: ^0.0.1+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.

6
likes
0
pub points
51%
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