Import Error, When I import nltk.corpus.framenet in NLTK Python
Question: I have to use framenet in nltk.corpus. So, I downloaded that corpus by using
the nltk.download(). And the framenet directory is now
C:\nltk_data\corpora\framenet_v15...

But when I import that framenet, I can't. I can't find the reason. I want to
some works as explained in here; <http://nltk.org/howto/framenet.html>

    
    
    >>> import nltk.corpus.framenet
    
    Traceback (most recent call last):
      File "<pyshell#0>", line 1, in <module>
        import nltk.corpus.framenet
    ImportError: No module named framenet
    

Please, help me. Thanks.


Answer: In your link it import as so:

    
    
    from nltk.corpus import framenet
    

Have you tried that?

EDIT: Version 3.0 and above of NLTK has framenet in the `nltk.corpus.reader`
package, so it should be:

    
    
    from nltk.corpus.reader import framenet
    

