Class SearchResultItem (0.1.0)

SearchResultItem(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Search result contains asset name and corresponding time ranges.

Attributes

Name Description
asset str
The resource name of the asset. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
segments MutableSequence[google.cloud.visionai_v1.types.Partition.TemporalPartition]
The matched asset segments. Deprecated: please use singular segment field.
segment google.cloud.visionai_v1.types.Partition.TemporalPartition
The matched asset segment.
relevance float
Relevance of this SearchResultItem to user search request. Currently available only in Image Warehouse, and by default represents cosine similarity. In the future can be other measures such as "dot product" or "topicality" requested in the search request.
requested_annotations MutableSequence[google.cloud.visionai_v1.types.Annotation]
Search result annotations specified by result_annotation_keys in search request.
annotation_matching_results MutableSequence[google.cloud.visionai_v1.types.AnnotationMatchingResult]
Criteria or facet-selection based annotation matching results associated to this search result item. Only contains results for criteria or facet_selections with fetch_matched_annotations=true.