Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 741 by
kcope...@googlemail.com: NLTK PlaintextCorpusReader
http://code.google.com/p/nltk/issues/detail?id=741
I'm having trouble with NLTK.I have been uploading my corpus as follows
python
from nltk import *
from nltk.corpus import PlaintextCorpusReader
corpus_root = 'Documents/Enron'
enron = PlaintextCorpusReader(corpus_root, '.*')
The files are all there when I do
enron.fileids()
That all works fine but then when I try and do some basic processing even
just
len(enron.())
I get the error
AttributeError: 'PlaintextCorpusReader' object has no attribute "len"
Is there something I'm missing?
Thanks in advance as I'm new to NLTK