Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class SearchHypernym.
Search resource: SearchHypernym.
For example, { hypernym: "vehicle" hyponyms: ["sedan", "truck"] } This means in SMART_SEARCH mode, searching for "vehicle" will also return results with "sedan" or "truck" as annotations.
Generated from protobuf message google.cloud.visionai.v1.SearchHypernym
Namespace
Google \ Cloud \ VisionAI \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Resource name of the SearchHypernym. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}
↳ hypernym
string
Optional. The hypernym.
↳ hyponyms
string[]
Optional. Hyponyms that the hypernym is mapped to.
getName
Resource name of the SearchHypernym.
Format: projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}
string
setName
Resource name of the SearchHypernym.
Format: projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}
var
string
$this
getHypernym
Optional. The hypernym.
string
setHypernym
Optional. The hypernym.
var
string
$this
getHyponyms
Optional. Hyponyms that the hypernym is mapped to.
setHyponyms
Optional. Hyponyms that the hypernym is mapped to.
var
string[]
$this

