public class Entity extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CreateEntityResp |
create(CreateEntityReq req)
创建免审词条,通过此接口创建的词条,无需经过词典管理员审核,直接写入词库。
|
CreateEntityResp |
create(CreateEntityReq req,
RequestOptions reqOptions)
创建免审词条,通过此接口创建的词条,无需经过词典管理员审核,直接写入词库。
|
DeleteEntityResp |
delete(DeleteEntityReq req)
删除免审词条,通过 entity_id 删除已有的词条,无需经过词典管理员审核。
|
DeleteEntityResp |
delete(DeleteEntityReq req,
RequestOptions reqOptions)
删除免审词条,通过 entity_id 删除已有的词条,无需经过词典管理员审核。
|
GetEntityResp |
get(GetEntityReq req)
获取词条详情,通过词条 id 拉取对应的词条详情信息。
|
GetEntityResp |
get(GetEntityReq req,
RequestOptions reqOptions)
获取词条详情,通过词条 id 拉取对应的词条详情信息。
|
HighlightEntityResp |
highlight(HighlightEntityReq req)
词条高亮,传入一句话,智能识别句中对应的词条,并返回词条位置和 entity_id,可在外部系统中快速实现词条智能高亮。
|
HighlightEntityResp |
highlight(HighlightEntityReq req,
RequestOptions reqOptions)
词条高亮,传入一句话,智能识别句中对应的词条,并返回词条位置和 entity_id,可在外部系统中快速实现词条智能高亮。
|
ListEntityResp |
list(ListEntityReq req)
获取词条列表,分页拉取词条列表数据,支持拉取租户内(或指定词库内)的全部词条。
|
ListEntityResp |
list(ListEntityReq req,
RequestOptions reqOptions)
获取词条列表,分页拉取词条列表数据,支持拉取租户内(或指定词库内)的全部词条。
|
MatchEntityResp |
match(MatchEntityReq req)
精准搜索词条,将关键词与词条名、别名精准匹配,并返回对应的 词条 ID。
|
MatchEntityResp |
match(MatchEntityReq req,
RequestOptions reqOptions)
精准搜索词条,将关键词与词条名、别名精准匹配,并返回对应的 词条 ID。
|
SearchEntityResp |
search(SearchEntityReq req)
模糊搜索词条,传入关键词,与词条名、别名、释义等信息进行模糊匹配,返回搜到的词条信息。
|
SearchEntityResp |
search(SearchEntityReq req,
RequestOptions reqOptions)
模糊搜索词条,传入关键词,与词条名、别名、释义等信息进行模糊匹配,返回搜到的词条信息。
|
UpdateEntityResp |
update(UpdateEntityReq req)
更新免审词条,通过此接口更新已有的词条,无需经过词典管理员审核,直接写入词库。
|
UpdateEntityResp |
update(UpdateEntityReq req,
RequestOptions reqOptions)
更新免审词条,通过此接口更新已有的词条,无需经过词典管理员审核,直接写入词库。
|
public Entity(Config config)
public CreateEntityResp create(CreateEntityReq req, RequestOptions reqOptions) throws Exception
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=lingo&resource=entity&version=v1 ;
Exceptionpublic CreateEntityResp create(CreateEntityReq req) throws Exception
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=lingo&resource=entity&version=v1 ;
Exceptionpublic DeleteEntityResp delete(DeleteEntityReq req, RequestOptions reqOptions) throws Exception
也支持通过 provider 和 outer_id 删除对应的词条。此时路径中的 entity_id 为固定的 enterprise_0 ;
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=lingo&resource=entity&version=v1 ;
Exceptionpublic DeleteEntityResp delete(DeleteEntityReq req) throws Exception
也支持通过 provider 和 outer_id 删除对应的词条。此时路径中的 entity_id 为固定的 enterprise_0 ;
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=lingo&resource=entity&version=v1 ;
Exceptionpublic GetEntityResp get(GetEntityReq req, RequestOptions reqOptions) throws Exception
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=lingo&resource=entity&version=v1 ;
Exceptionpublic GetEntityResp get(GetEntityReq req) throws Exception
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=lingo&resource=entity&version=v1 ;
Exceptionpublic HighlightEntityResp highlight(HighlightEntityReq req, RequestOptions reqOptions) throws Exception
Exceptionpublic HighlightEntityResp highlight(HighlightEntityReq req) throws Exception
Exceptionpublic ListEntityResp list(ListEntityReq req, RequestOptions reqOptions) throws Exception
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=lingo&resource=entity&version=v1 ;
Exceptionpublic ListEntityResp list(ListEntityReq req) throws Exception
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=lingo&resource=entity&version=v1 ;
Exceptionpublic MatchEntityResp match(MatchEntityReq req, RequestOptions reqOptions) throws Exception
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=match&project=lingo&resource=entity&version=v1 ;
Exceptionpublic MatchEntityResp match(MatchEntityReq req) throws Exception
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=match&project=lingo&resource=entity&version=v1 ;
Exceptionpublic SearchEntityResp search(SearchEntityReq req, RequestOptions reqOptions) throws Exception
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=lingo&resource=entity&version=v1 ;
Exceptionpublic SearchEntityResp search(SearchEntityReq req) throws Exception
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=lingo&resource=entity&version=v1 ;
Exceptionpublic UpdateEntityResp update(UpdateEntityReq req, RequestOptions reqOptions) throws Exception
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=lingo&resource=entity&version=v1 ;
Exceptionpublic UpdateEntityResp update(UpdateEntityReq req) throws Exception
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=lingo&resource=entity&version=v1 ;
ExceptionCopyright © 2026. All rights reserved.