EntityExtractor class
A class that extracts entities from the given input text.
Constructors
- EntityExtractor({required EntityExtractorLanguage language})
- Constructor to create an instance of EntityExtractor.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Instance id.
final
- language → EntityExtractorLanguage
-
The language used when parsing entities in the text.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
annotateText(
String text, {int? referenceTime, String? preferredLocale, String? referenceTimeZone, List< EntityType> ? entityTypesFilter}) → Future<List< EntityAnnotation> > - Annotates the given text with the given parameters such as reference time, preferred locale, reference time zone and entity types filter. Returns a list of EntityAnnotation or returns empty list if there is no identified entity.
-
close(
) → Future< void> - Closes the extractor and releases its resources.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited