I have created a corpus consisting of a collection of .txt files, and would like to start using the NLTK (python) on them.
I have navigated to the /nltk_data/corpora/ where NLTK comes with some pre-defined corpora (gutenberg, shakespear, etc.) to be tested by the platform.
However, when I attempted to add my own file (containing the several .txt files), and import it using
from nltk.corpus import [name of my file]
I receive this message back:
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
from nltk.corpus import [name of my file]
ImportError: cannot import name '[name of my file]'
What am I doing wrong? Also, what's the method of calling in my file from any other place?
Thanks.