开发者

how do i import and use WordNet 3.0 in python?

I have downloaded the latest version of WordNet 3.0. I am not able to find a pr开发者_StackOverflow社区oper documentation of how to use it in python.

Does NLTK have wordnet 3.0 ?

I have already used an older version of wordnet in nltk.

Please help me.


No, it seems that NLTK only supports 3.0.

If I were doing this, I'd choose between using the 3.0 Java API through Jython or spawn the wn executable using the subprocess module.

I'd lean towards the latter method in case I needed to integrate with an extensive existing codebase. Unfortunately this means doing work that a future 3.0 implementation in NLTK will make obsolete, but well - that's life.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜