The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
zarte

分词完成得到切片,如何快速的通过停用词表剔除多余的词

  •  
  •   zarte · Apr 27, 2018 · 1415 views
    This topic created in 2937 days ago, the information mentioned may be changed or developed.

    求个高效的方法。

    3 replies    2018-04-28 10:21:14 +08:00
    gabon
        1
    gabon  
       Apr 27, 2018 via Android   ❤️ 1
    分词 n 个,停用词 m 个,复杂度就 On。分完的每个词你得最少扫描一遍吧。停用词用 hashset 保存,foreach 迭代分完的词。
    ByteChen
        2
    ByteChen  
       Apr 28, 2018
    分词不会太麻烦吗
    zarte
        3
    zarte  
    OP
       Apr 28, 2018
    @ByteChen 那也没办法呀,要统计热点。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2961 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 15:17 · PVG 23:17 · LAX 08:17 · JFK 11:17
    ♥ Do have faith in what you're doing.