全部產品
Search
文件中心

OpenSearch:ListInterventionDictionaryEntries - 擷取幹預詞條清單

更新時間:Dec 23, 2025

擷取幹預詞條清單。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

opensearch:DescribeInterventionDictionary

*InterventionDictionary

acs:opensearch:{#regionId}:{#accountId}:intervention-dictionaries/{#InterventionDictionaryId}

請求文法

GET /v4/openapi/intervention-dictionaries/{name}/entries HTTP/1.1

路徑參數

名稱

類型

必填

描述

樣本值

name

string

幹預詞典名稱

my_dict

請求參數

名稱

類型

必填

描述

樣本值

word

string

詞條

測試

pageNumber

integer

頁碼,預設 pageNumber=1

1

pageSize

integer

每頁返回數目,預設 pageSize=10

10

返回參數

名稱

類型

描述

樣本值

object

totalCount

integer

總條數

8

requestId

string

請求 ID

516A02B7-2167-8D92-12D0-B639A2A0F3C5

result

array<object>

幹預詞條詳情

參考: InterventionDictionaryEntry

array<object>

cmd

string

操作命令

  • add 新增

  • delete 刪除

add

created

integer

建立時間戳記

1536690285

word

string

詞條

\u8fc7\u513f

relevance

object

幹預內容 鍵為類目預測 ID,值為相關度(0:不相關;1:略相關;2:相關) 例:{“2”:1,”100”:0}

{ "100": "0", "200": "2" }

status

string

狀態

  • ACTIVE 已生效

ACTIVE

updated

integer

更新時間戳記

1537348987

tokens

array<object>

詞權重內容

object

tag

string

識別結果的英文名

  • brand 品牌

  • category 品類

  • material 材質

  • element 款式元素

  • style 風格

  • color 顏色

  • function 功能功效

  • scenario 情境

  • people 人群

  • season 時間季節

  • model 型號

  • region 地點地區

  • name 人名

  • adjective 修飾

  • category-modifier 品類修飾詞

  • size 尺寸規格

  • quality 品質成色

  • suit 套裝

  • new-release 新品

  • series 系列

  • marketing 營銷服務

  • entertainment 文娛書文曲

  • organization 機構實體

  • movie 影視名稱

  • game 遊戲名稱

  • number 數字

  • unit 單位

  • common 普通詞

  • new-word 新詞

  • proper-noun 專有名詞

  • symbol 符號

  • prefix 首碼

  • suffix 尾碼

  • gift 贈送

  • negative 否定

  • agent 代理

category

token

string

實體詞

order

integer

序號

1

tagLabel

string

識別結果的中文名,同上

品類

樣本

正常返回樣本

JSON格式

{
  "totalCount": 8,
  "requestId": "516A02B7-2167-8D92-12D0-B639A2A0F3C5",
  "result": [
    {
      "cmd": "add",
      "created": 1536690285,
      "word": "\\u8fc7\\u513f",
      "relevance": {
        "100": "0",
        "200": "2"
      },
      "status": "ACTIVE",
      "updated": 1537348987,
      "tokens": [
        {
          "tag": "category",
          "token": "本",
          "order": 1,
          "tagLabel": "品類"
        }
      ]
    }
  ]
}

錯誤碼

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情