小编Coy*_*kto的帖子

无论我如何更改该参数,nltk.concordance最多可提供25行

所以我开始通过nltk书学习NLP,似乎我立即遇到了一个前所未有的问题.

让我们从nltk.book导入数据就像书中所说:

from nltk.book import *
Run Code Online (Sandbox Code Playgroud)

现在我想继续本书的例子:

text1.concordance("monstrous")
Run Code Online (Sandbox Code Playgroud)

给我:

Displaying 11 of 11 matches:
ong the former , one was of a most monstrous size . ... This came towards us ,
ON OF THE PSALMS . " Touching that monstrous bulk of the whale or ork we have r
ll over with a heathenish array of monstrous clubs and spears . Some were thick
d as you gazed , and wondered what monstrous cannibal and savage could ever hav …
Run Code Online (Sandbox Code Playgroud)

python nlp nltk

4
推荐指数
1
解决办法
435
查看次数

标签 统计

nlp ×1

nltk ×1

python ×1