你在这里描述的是一个困难的问题,但是它可以通过检查单词的一致性来解决,或者换句话说,通过检查单词在其他环境中使用的上下文来解决。如果这个词在主语句中的用法有意义,你就可以根据上下文做出有根据的猜测。下面是一个例子,来自nltk docs,使用mobydick作为搜索空间。在>>> text1.concordance("monstrous")
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
that has survived the flood ; most monstrous and most mountainous ! That Himmal
they might scout at Moby Dick as a monstrous fable , or still worse and more de
th of Radney .'" CHAPTER 55 Of the monstrous Pictures of Whales . I shall ere l
ing Scenes . In connexion with the monstrous pictures of whales , I am strongly
ere to enter upon those still more monstrous stories of them which are to be fo
ght have been rummaged out of this monstrous cabinet there is no telling . But
of Whale - Bones ; for Whales of a monstrous size are oftentimes cast up dead u
>>>
此外,如果您还没有使用Stanford POS标记器而不是默认的NTLK标记器,它可以以牺牲性能为代价生成更好的结果。在