分詞接口

接口描述

對輸入的內容進行分詞

請求方式只接受【GET】請求

http://localhost:port/index/_analyze?analyzer=ik&pretty=true&text=湖南省氣象信息中心湖南省省內氣象廣域網絡系統建設項目公開招標  
#### 具體地址單獨給出 TEXT內容改變外,其它保持不變

請求參數說明

json數據格式,具體內容如下

參數 類型 說明
text string 要搜索的內容

------------------- 分隔線 ---------------


返回參數說明

參數 類型 說明
token String 分詞結果

返回結果

{
    tokens: [
        {
            token: "湖南省",
            start_offset: 0,
            end_offset: 3,
            type: "CN_WORD",
            position: 1
        },
        {
            token: "氣象",
            start_offset: 3,
            end_offset: 5,
            type: "CN_WORD",
            position: 2
        },
        {
            token: "信息中心",
            start_offset: 5,
            end_offset: 9,
            type: "CN_WORD",
            position: 3
        },
        {
            token: "湖南省",
            start_offset: 9,
            end_offset: 12,
            type: "CN_WORD",
            position: 4
        },
        {
            token: "省內",
            start_offset: 12,
            end_offset: 14,
            type: "CN_WORD",
            position: 5
        },
        {
            token: "氣象",
            start_offset: 14,
            end_offset: 16,
            type: "CN_WORD",
            position: 6
        },
        {
            token: "廣域",
            start_offset: 16,
            end_offset: 18,
            type: "CN_WORD",
            position: 7
        },
        {
            token: "網",
            start_offset: 28,
            end_offset: 29,
            type: "CN_CHAR",
            position: 8
        },
        {
            token: "絡",
            start_offset: 44,
            end_offset: 45,
            type: "CN_WORD",
            position: 9
        },
        {
            token: "系統",
            start_offset: 66,
            end_offset: 68,
            type: "CN_WORD",
            position: 10
        },
        {
            token: "建設項目",
            start_offset: 68,
            end_offset: 72,
            type: "CN_WORD",
            position: 11
        },
        {
            token: "公開招標",
            start_offset: 72,
            end_offset: 76,
            type: "CN_WORD",
            position: 12
        }
    ]
}
最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
【社區(qū)內容提示】社區(qū)部分內容疑似由AI輔助生成,瀏覽時請結合常識與多方信息審慎甄別。
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發(fā)布,文章內容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關閱讀更多精彩內容

  • Spring Cloud為開發(fā)人員提供了快速構建分布式系統中一些常見模式的工具(例如配置管理,服務發(fā)現,斷路器,智...
    卡卡羅2017閱讀 136,680評論 19 139
  • # 一度蜜v3.0協議 --- # 交互協議 [TOC] ## 協議說明 ### 請求參數 下表列出了v3.0版協...
    c5e350bc5b40閱讀 739評論 0 0
  • 國家電網公司企業(yè)標準(Q/GDW)- 面向對象的用電信息數據交換協議 - 報批稿:20170802 前言: 排版 ...
    庭說閱讀 12,507評論 6 13
  • 1. Java基礎部分 基礎部分的順序:基本語法,類相關的語法,內部類的語法,繼承相關的語法,異常的語法,線程的語...
    子非魚_t_閱讀 34,819評論 18 399
  • 今天,我敞開心靈和心扉的方式,讓我可以聽到宇宙對我說話,給我方向。我讓心靈敞開,從而能夠接收他的指引。當他向我說話...
    英杰旺姆閱讀 228評論 0 0

友情鏈接更多精彩內容