LabelAnnotation class Null safety
Set of detected labels
- Annotations
-
- @JsonSerializable(explicitToJson: true)
Constructors
- LabelAnnotation({required String? mid, required String description, required double score, required double topicality})
-
LabelAnnotation.fromJson(Map<
String, dynamic> json) -
factory
Properties
- description → String
-
The label itself
final
- hashCode → int
-
The hash code for this object.
read-only, inherited
- mid → String?
-
If present, contains a machine-generated identifier (MID) corresponding to the entity's Google Knowledge Graph entry. Note that mid values remain unique across different languages, so you can use these values to tie entities together from different languages. To inspect MID values, refer to the Google Knowledge Graph API documentation.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- score → double
-
Score of the result. Range [0, 1].
final
- topicality → double
-
Topicality of the result. Range [0, 1].
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited