REST Resource: projects.locations.corpora.searchHypernyms

资源:SearchHypernym

搜索资源:SearchHypernym。例如,{ hypernym: "vehicle" hyponyms: ["sedan", "truck"] }。这意味着,在 SMART_SEARCH 模式下,搜索“vehicle”还会返回将“sedan”或“truck”作为注释的结果。

JSON 表示法
{
  "name": string,
  "hypernym": string,
  "hyponyms": [
    string
  ]
}
字段
name

string

SearchHypernym 的资源名称。格式:projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{searchHypernym}

hypernym

string

上位词。

hyponyms[]

string

该超词根映射到的同义词。

方法

create

在语料库中创建 SearchHypernym。

delete

删除语料库中的 SearchHypernym。

get

获取语料库中的 SearchHypernym。

list

列出语料库中的 SearchHypernym。

patch

更新语料库中的 SearchHypernym。