Issue 741 in nltk: NLTK PlaintextCorpusReader

6 views
Skip to first unread message

nl...@googlecode.com

unread,
Jan 30, 2013, 8:21:13 AM1/30/13
to nltk-...@googlegroups.com
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


Reply all
Reply to author
Forward
0 new messages