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.
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.
- apple_vision_recognize_text
Flutter plugin to use Apple Vision Text Recognition in an image or live camera feed.
56Compare
Works with
Packages commonly used together with google_mlkit_entity_extraction: ones it builds on, ones built on it, and its own family.
- google_mlkit_commonsgoogle_mlkit_entity_extraction depends on itCommon classes and utility methods for Google's ML Kit plugins
- google_mlkit_text_recognitionSame familyFlutter plugin to use Google's ML Kit Text Recognition on Android and iOS.
- google_mlkit_barcode_scanningSame familyA Flutter plugin to use Google's ML Kit Barcode Scanning on Android and iOS.
- google_mlkit_face_detectionSame familyFlutter plugin to use Google's ML Kit Face Detection on iOS and Android.
- google_mlkit_translationSame familyFlutter plugin for Google's ML Kit On-Device Translation.
- google_mlkit_selfie_segmentationSame familyFlutter plugin to use Google's ML Kit Selfie Segmentation API.
- google_mlkit_language_idSame familyDetermine the language of a text string using Google's ML Kit.
- google_mlkit_pose_detectionSame familyFlutter plugin for Google ML Kit Pose Detection on Android and iOS.