Class: Google::Cloud::VisionAI::V1::SearchHypernym
- Inherits:
-
Object
- Object
- Google::Cloud::VisionAI::V1::SearchHypernym
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/visionai/v1/warehouse.rb
Overview
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.
Instance Attribute Summary collapse
-
#hypernym ⇒ ::String
Optional.
-
#hyponyms ⇒ ::Array<::String>
Optional.
-
#name ⇒ ::String
Resource name of the SearchHypernym.
Instance Attribute Details
#hypernym ⇒ ::String
Returns Optional. The hypernym.
2275 2276 2277 2278 |
# File 'proto_docs/google/cloud/visionai/v1/warehouse.rb', line 2275 class SearchHypernym include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#hyponyms ⇒ ::Array<::String>
Returns Optional. Hyponyms that the hypernym is mapped to.
2275 2276 2277 2278 |
# File 'proto_docs/google/cloud/visionai/v1/warehouse.rb', line 2275 class SearchHypernym include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#name ⇒ ::String
Returns Resource name of the SearchHypernym.
Format:
projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}
.
2275 2276 2277 2278 |
# File 'proto_docs/google/cloud/visionai/v1/warehouse.rb', line 2275 class SearchHypernym include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |