Class SearchHypernym (0.1.6)

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

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.

Attributes

Name Description
name str
Resource name of the SearchHypernym. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}
hypernym str
Optional. The hypernym.
hyponyms MutableSequence[str]
Optional. Hyponyms that the hypernym is mapped to.