Skip to content
pubscout

google_mlkit_entity_extraction

1.0.3, released 8 days ago by flutter-ml.dev

Flutter plugin to use Google's ML Kit Entity Extraction API to recognize specific entities.

$ flutter pub add google_mlkit_entity_extraction
Source repository

What it does

Recognizes and extracts specific entities like dates, flight numbers, money, and IBANs from static text using on-device models. Automatically handles downloading language models as needed.

AI-written summary of version 1.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to extract structured data (dates, money, flight numbers, etc.) from raw text on-device.
  • You are targeting Android and iOS platforms and want to leverage native Google ML Kit capabilities.

Skip it when

  • You need web or desktop platform support.
  • You require cloud-based language understanding models.

Strengths

  • Performs entity extraction locally on-device for privacy and offline use.
  • Supports a wide range of languages including English, Spanish, French, Chinese, and Arabic.
  • Provides an entity model manager to check, download, or delete language models.

Weaknesses

  • Does not support Web or desktop platforms.
  • Depends on native platform setup and specific minimum deployment targets (iOS 15.0+).

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
1

Requires setting minimum iOS deployment target to 15.0, configuring Xcode Other Linker Flags (-ObjC, -all_load), and setting Android minSdkVersion to 21 or higher.

final entityExtractor = EntityExtractor(language: EntityExtractorLanguage.english);
final List<EntityAnnotation> annotations = await entityExtractor.annotateText(text);
entityExtractor.close();

Alternatives

Packages that do the same job and could replace google_mlkit_entity_extraction.

Works with

Packages commonly used together with google_mlkit_entity_extraction: ones it builds on, ones built on it, and its own family.