看板 [ Python ]
討論串[問題] 請問python有類似切token的模組可以用嗎?
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 3→)留言3則,0人參與, 最新作者hazton (hazton)時間15年前 (2009/10/26 16:31), 編輯資訊
0
0
0
內容預覽:
剛剛下載完,找到了找詞性和切token的函式:. import nltk. text = nltk.word_tokenize("And now for something completely different"). print text. print nltk.pos_tag(text). 跑
(還有402個字)

推噓2(2推 0噓 2→)留言4則,0人參與, 最新作者hazton (hazton)時間15年前 (2009/10/26 14:55), 編輯資訊
0
0
0
內容預覽:
想要把一篇英文的文章丟進程式. output出來是切的token和詞性. 想問一下python有這種模組可以用嗎?. 本來用yahoo api的斷章取義,不過發現好像只能做中文的@@a. --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 140.116.245.199.
首頁
上一頁
1
下一頁
尾頁