[Tutor] NLTK

2009-08-28 Thread Ishan Puri
Hello, I have successfully downloaded NLTK and the toy grammars. I want to run a few of the packages that come with NLTK on corpora that I have. How do I do this? What commands would I use? The corpora are text files; should I put them in the Python25 folder (is that the so called same direc

[Tutor] Using my own corpus with NLTK

2009-08-28 Thread Ishan Puri
Hi, Thanks for your response. I tried this and got to the 3rd line. However, when I type in the fourth: >>> wordlists.fileids() a blank comes as a result. When I try the len() function it only counts the letters in title of the text document IM50re.txt. How do I get it to open and analyze

Re: [Tutor] NLTK

2009-08-28 Thread Ishan Puri
as wondering how I can use the packages on IM50re.txt? I followed successfully the steps detailed under Using Your Own Corpus. What do I do next, say, if I wanted to use the lemmatizer on this .txt document? Thank you. ____ From: Kent Johnson To: Ishan Puri C

Re: [Tutor] NLTK

2009-08-28 Thread Ishan Puri
nberg corpus installed with NLTK. Like this many examples are given for different analyses that can be done with NLTK. However they all seem to be specific to one of the texts above or another one already installed with NLTK. I am not sure how to apply these examples to my own corpus. Tha

Re: [Tutor] NLTK

2009-08-29 Thread Ishan Puri
Hi, Yes! It works! I guess I am asking how did you know to use wordlists.words('IM50re.txt')? Is this a specific command, as I believe it was not in the book? Thanks. From: Kent Johnson To: Ishan Puri Cc: *tutor python Sent: Saturday,

[Tutor] Easy Problem

2009-08-31 Thread Ishan Puri
Hello, I have 2 plain text documents that have uneven spacing. I need to make these single spaced between lines and between words. Basically I need to get them to be equal character length after I abridge the uneven spacing. In Python there is probably one simple command for this for a text

[Tutor] Word Frequency Chart

2008-12-23 Thread Ishan Puri
Hello, I am a beginner with Python but I understand a lot of linguistics. I am a high school student. I needed help (from the beginning) making a word frequency chart that I can use to chart out the numerical frequencies of words. Usually I can understand the code if it is annotated well, bu

[Tutor] NLTK

2009-01-14 Thread Ishan Puri
Hi, I have download NLTK for Python 2.5. It download automatically to C:\Program Files\Python25\libs\site-packages\nltk. When I try to open a module in python, it says that no such module exists. What do I need to do?___ Tutor maillist - Tutor@pyt

[Tutor] Corpora

2009-01-15 Thread Ishan Puri
Hi, I was wondering if anyone could tell me where I can get corpora containing IMs, or blogs or any internet communication? This is kind of urgent. Thanks. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor