Go語言寫的分詞模塊:goseg

jopen 10年前發布 | 23K 次閱讀 goseg 中文分詞

Go語言寫的分詞模塊,使用了最大概率路徑+單層神經網絡。

goseg: A Chinese Word Segmentation Library in GoLang

  • goseg use max probability product to segment words, and use ANN to find new words

  • goseg also provide a server which can handle POST request of sentence and return words segmented

  • library usage

    sentence := "買水果然后去世博園"
    words := goseg.Cut([]rune(sentence))
        for _,w := range words{
            fmt.Println(w)
        }
  • goseg server usage

    go run goseg_server.go
    
    or 
    
    go build goseg_server.go
    ./goseg_server

項目主頁:http://www.baiduhome.net/lib/view/home/1410329876976

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!