REST Resource: projects.locations.corpora.searchHypernyms

Resource: 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.

JSON representation
{
  "name": string,
  "hypernym": string,
  "hyponyms": [
    string
  ]
}
Fields
name

string

Resource name of the SearchHypernym. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{searchHypernym}

hypernym

string

The hypernym.

hyponyms[]

string

Hyponyms that the hypernym is mapped to.

Methods

create

Creates a SearchHypernym inside a corpus.

delete

Deletes a SearchHypernym inside a corpus.

get

Gets a SearchHypernym inside a corpus.

list

Lists SearchHypernyms inside a corpus.

patch

Updates a SearchHypernym inside a corpus.