也可以讓輸出結果濾除詞性資料,在輸入時加入第二個參數'neat' ... require 'ckip_client' text = File.open('text.txt').read puts CKIP.segment( text ) ...
確定! 回上一頁