实体识别:获取推荐的实体类型重要性设置。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求头

该接口使用公共请求头,无特殊请求头。请参见公共请求参数文档。

请求语法

GET /v4/openapi/query-processor/ner/default-priorities HTTP/1.1

请求参数

名称 类型 位置 是否必选 示例值 描述
domain String Query ECOMMERCE

行业类型

  • ECOMMERCE 电商行业

返回数据

名称 类型 示例值 描述
requestId String 0A6EB64B-B4C8-CF02-810F-E660812972FF

请求ID

result Array of result

实体类型重要性设置

参考:实体类型重要性设置

label String 品牌

实体类型名称

order Integer 1

在同一个priority下的排序顺序

优先顺序按照数字从小到大,默认为0

priority String HIGH

重要性

  • HIGH
  • MIDDLE
  • LOW
tag String brand

实体类型的内部英文表示

示例

请求示例

GET /v4/openapi/query-processor/ner/default-priorities?domain=ECOMMERCE

正常返回示例

XML格式

<requestId>0A6EB64B-B4C8-CF02-810F-E660812972FF</requestId>
<result>
    <tag>brand</tag>
    <priority>HIGH</priority>
    <order>1</order>
    <label>品牌</label>
</result>
<result>
    <tag>category</tag>
    <priority>HIGH</priority>
    <order>2</order>
    <label>品类</label>
</result>
<result>
    <tag>material</tag>
    <priority>MIDDLE</priority>
    <order>3</order>
    <label>材质</label>
</result>
<result>
    <tag>element</tag>
    <priority>MIDDLE</priority>
    <order>4</order>
    <label>款式元素</label>
</result>
<result>
    <tag>style</tag>
    <priority>MIDDLE</priority>
    <order>5</order>
    <label>风格</label>
</result>
<result>
    <tag>color</tag>
    <priority>MIDDLE</priority>
    <order>6</order>
    <label>颜色</label>
</result>
<result>
    <tag>function</tag>
    <priority>MIDDLE</priority>
    <order>7</order>
    <label>功能功效</label>
</result>
<result>
    <tag>scenario</tag>
    <priority>MIDDLE</priority>
    <order>8</order>
    <label>场景</label>
</result>
<result>
    <tag>people</tag>
    <priority>MIDDLE</priority>
    <order>9</order>
    <label>人群</label>
</result>
<result>
    <tag>season</tag>
    <priority>MIDDLE</priority>
    <order>10</order>
    <label>时间季节</label>
</result>
<result>
    <tag>model</tag>
    <priority>MIDDLE</priority>
    <order>11</order>
    <label>型号</label>
</result>
<result>
    <tag>region</tag>
    <priority>MIDDLE</priority>
    <order>12</order>
    <label>地点地域</label>
</result>
<result>
    <tag>name</tag>
    <priority>MIDDLE</priority>
    <order>13</order>
    <label>人名</label>
</result>
<result>
    <tag>adjective</tag>
    <priority>MIDDLE</priority>
    <order>14</order>
    <label>修饰</label>
</result>
<result>
    <tag>category-modifier</tag>
    <priority>MIDDLE</priority>
    <order>15</order>
    <label>品类修饰词</label>
</result>
<result>
    <tag>size</tag>
    <priority>LOW</priority>
    <order>16</order>
    <label>尺寸规格</label>
</result>
<result>
    <tag>quality</tag>
    <priority>LOW</priority>
    <order>17</order>
    <label>品质成色</label>
</result>
<result>
    <tag>suit</tag>
    <priority>LOW</priority>
    <order>18</order>
    <label>套装</label>
</result>
<result>
    <tag>new-release</tag>
    <priority>LOW</priority>
    <order>19</order>
    <label>新品</label>
</result>
<result>
    <tag>series</tag>
    <priority>LOW</priority>
    <order>20</order>
    <label>系列</label>
</result>
<result>
    <tag>marketing</tag>
    <priority>LOW</priority>
    <order>21</order>
    <label>营销服务</label>
</result>
<result>
    <tag>entertainment</tag>
    <priority>LOW</priority>
    <order>22</order>
    <label>文娱书文曲</label>
</result>
<result>
    <tag>organization</tag>
    <priority>LOW</priority>
    <order>23</order>
    <label>机构实体</label>
</result>
<result>
    <tag>movie</tag>
    <priority>LOW</priority>
    <order>24</order>
    <label>影视名称</label>
</result>
<result>
    <tag>game</tag>
    <priority>LOW</priority>
    <order>25</order>
    <label>游戏名称</label>
</result>
<result>
    <tag>number</tag>
    <priority>LOW</priority>
    <order>26</order>
    <label>数字</label>
</result>
<result>
    <tag>unit</tag>
    <priority>LOW</priority>
    <order>27</order>
    <label>单位</label>
</result>
<result>
    <tag>common</tag>
    <priority>LOW</priority>
    <order>28</order>
    <label>普通词</label>
</result>
<result>
    <tag>new-word</tag>
    <priority>LOW</priority>
    <order>29</order>
    <label>新词</label>
</result>
<result>
    <tag>proper-noun</tag>
    <priority>LOW</priority>
    <order>30</order>
    <label>专有名词</label>
</result>
<result>
    <tag>symbol</tag>
    <priority>LOW</priority>
    <order>31</order>
    <label>符号</label>
</result>
<result>
    <tag>prefix</tag>
    <priority>LOW</priority>
    <order>32</order>
    <label>前缀</label>
</result>
<result>
    <tag>suffix</tag>
    <priority>LOW</priority>
    <order>33</order>
    <label>后缀</label>
</result>
<result>
    <tag>gift</tag>
    <priority>LOW</priority>
    <order>34</order>
    <label>赠送</label>
</result>
<result>
    <tag>negative</tag>
    <priority>LOW</priority>
    <order>35</order>
    <label>否定</label>
</result>
<result>
    <tag>agent</tag>
    <priority>LOW</priority>
    <order>36</order>
    <label>代理</label>
</result>

JSON格式

{
    "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",
    "result": [
        {
            "tag": "brand",
            "priority": "HIGH",
            "order": 1,
            "label": "品牌"
        },
        {
            "tag": "category",
            "priority": "HIGH",
            "order": 2,
            "label": "品类"
        },
        {
            "tag": "material",
            "priority": "MIDDLE",
            "order": 3,
            "label": "材质"
        },
        {
            "tag": "element",
            "priority": "MIDDLE",
            "order": 4,
            "label": "款式元素"
        },
        {
            "tag": "style",
            "priority": "MIDDLE",
            "order": 5,
            "label": "风格"
        },
        {
            "tag": "color",
            "priority": "MIDDLE",
            "order": 6,
            "label": "颜色"
        },
        {
            "tag": "function",
            "priority": "MIDDLE",
            "order": 7,
            "label": "功能功效"
        },
        {
            "tag": "scenario",
            "priority": "MIDDLE",
            "order": 8,
            "label": "场景"
        },
        {
            "tag": "people",
            "priority": "MIDDLE",
            "order": 9,
            "label": "人群"
        },
        {
            "tag": "season",
            "priority": "MIDDLE",
            "order": 10,
            "label": "时间季节"
        },
        {
            "tag": "model",
            "priority": "MIDDLE",
            "order": 11,
            "label": "型号"
        },
        {
            "tag": "region",
            "priority": "MIDDLE",
            "order": 12,
            "label": "地点地域"
        },
        {
            "tag": "name",
            "priority": "MIDDLE",
            "order": 13,
            "label": "人名"
        },
        {
            "tag": "adjective",
            "priority": "MIDDLE",
            "order": 14,
            "label": "修饰"
        },
        {
            "tag": "category-modifier",
            "priority": "MIDDLE",
            "order": 15,
            "label": "品类修饰词"
        },
        {
            "tag": "size",
            "priority": "LOW",
            "order": 16,
            "label": "尺寸规格"
        },
        {
            "tag": "quality",
            "priority": "LOW",
            "order": 17,
            "label": "品质成色"
        },
        {
            "tag": "suit",
            "priority": "LOW",
            "order": 18,
            "label": "套装"
        },
        {
            "tag": "new-release",
            "priority": "LOW",
            "order": 19,
            "label": "新品"
        },
        {
            "tag": "series",
            "priority": "LOW",
            "order": 20,
            "label": "系列"
        },
        {
            "tag": "marketing",
            "priority": "LOW",
            "order": 21,
            "label": "营销服务"
        },
        {
            "tag": "entertainment",
            "priority": "LOW",
            "order": 22,
            "label": "文娱书文曲"
        },
        {
            "tag": "organization",
            "priority": "LOW",
            "order": 23,
            "label": "机构实体"
        },
        {
            "tag": "movie",
            "priority": "LOW",
            "order": 24,
            "label": "影视名称"
        },
        {
            "tag": "game",
            "priority": "LOW",
            "order": 25,
            "label": "游戏名称"
        },
        {
            "tag": "number",
            "priority": "LOW",
            "order": 26,
            "label": "数字"
        },
        {
            "tag": "unit",
            "priority": "LOW",
            "order": 27,
            "label": "单位"
        },
        {
            "tag": "common",
            "priority": "LOW",
            "order": 28,
            "label": "普通词"
        },
        {
            "tag": "new-word",
            "priority": "LOW",
            "order": 29,
            "label": "新词"
        },
        {
            "tag": "proper-noun",
            "priority": "LOW",
            "order": 30,
            "label": "专有名词"
        },
        {
            "tag": "symbol",
            "priority": "LOW",
            "order": 31,
            "label": "符号"
        },
        {
            "tag": "prefix",
            "priority": "LOW",
            "order": 32,
            "label": "前缀"
        },
        {
            "tag": "suffix",
            "priority": "LOW",
            "order": 33,
            "label": "后缀"
        },
        {
            "tag": "gift",
            "priority": "LOW",
            "order": 34,
            "label": "赠送"
        },
        {
            "tag": "negative",
            "priority": "LOW",
            "order": 35,
            "label": "否定"
        },
        {
            "tag": "agent",
            "priority": "LOW",
            "order": 36,
            "label": "代理"
        }
    ]
}

错误码

访问错误中心查看更多错误码。