Vision AI V1 API - Class Google::Cloud::VisionAI::V1::SearchHypernym (v0.3.0)

Reference documentation and code samples for the Vision AI V1 API class Google::Cloud::VisionAI::V1::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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#hypernym

def hypernym() -> ::String
Returns
  • (::String) — Optional. The hypernym.

#hypernym=

def hypernym=(value) -> ::String
Parameter
  • value (::String) — Optional. The hypernym.
Returns
  • (::String) — Optional. The hypernym.

#hyponyms

def hyponyms() -> ::Array<::String>
Returns
  • (::Array<::String>) — Optional. Hyponyms that the hypernym is mapped to.

#hyponyms=

def hyponyms=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Optional. Hyponyms that the hypernym is mapped to.
Returns
  • (::Array<::String>) — Optional. Hyponyms that the hypernym is mapped to.

#name

def name() -> ::String
Returns
  • (::String) — Resource name of the SearchHypernym. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Resource name of the SearchHypernym. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}
Returns
  • (::String) — Resource name of the SearchHypernym. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}