所以我开始通过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)