Re: [Tutor] Word Frequency Chart

2008-12-24 Thread Alan Gauld
Ishan Puri ballerz4i...@sbcglobal.net wrote 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. We are happy to help but as a rile we don;t write programs for you, we help you write your

[Tutor] strip function

2008-12-24 Thread Norman Khine
Hello, I have difficulties in trying to stripping the following: item_path = '/companies/company/news' item_strip = item_path.strip('/companies') item_strip 'y/new' I would like to return: item_strip '/company/news' What is the best way to do this. Thanks

Re: [Tutor] strip function

2008-12-24 Thread bob gailer
Norman Khine wrote: Hello, I have difficulties in trying to stripping the following: item_path = '/companies/company/news' item_strip = item_path.strip('/companies') item_strip 'y/new' I would like to return: item_strip '/company/news' What is

Re: [Tutor] strip function

2008-12-24 Thread Kent Johnson
On Wed, Dec 24, 2008 at 7:25 AM, Norman Khine nor...@khine.net wrote: Hello, I have difficulties in trying to stripping the following: item_path = '/companies/company/news' item_strip = item_path.strip('/companies') item_strip 'y/new' strip() doesn't do what you want. It removes any of

Re: [Tutor] Word Frequency Chart

2008-12-24 Thread Jan Ulrich Hasecke
Look at http://www.nltk.org/ Merry Christmas to all! juh -- Business: http://hasecke.com --- Private: http://hasecke.eu --- Blog: http://www.sudelbuch.de --- History: www.generationenprojekt.de --- Europe: www.wikitution.org smime.p7s Description: S/MIME cryptographic signature

Re: [Tutor] Word Frequency Chart

2008-12-24 Thread Chris Babcock
On Tue, 23 Dec 2008 19:17:33 -0800 (PST) Ishan Puri ballerz4i...@sbcglobal.net wrote: 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

[Tutor] beginsWith multiple prefixes

2008-12-24 Thread Emad Nawfal (عماد نوفل)
Hi Tutors, I want a function that acts like the startswith method, but can take multiple prefixes. As an amateur programmer, I came up with this one, and it works fine, but my experience tells me that my solutions are not always the best ones around. Can you please tell me what a better option

Re: [Tutor] beginsWith multiple prefixes

2008-12-24 Thread bob gailer
Emad Nawfal (عماد نوفل) wrote: Hi Tutors, I want a function that acts like the startswith method, but can take multiple prefixes. As an amateur programmer, I came up with this one, and it works fine, but my experience tells me that my solutions are not always the best ones around. Can you

Re: [Tutor] beginsWith multiple prefixes

2008-12-24 Thread Bill Campbell
On Wed, Dec 24, 2008, bob gailer wrote: Emad Nawfal ( ) wrote: Hi Tutors, I want a function that acts like the startswith method, but can take multiple prefixes. As an amateur programmer, I came up with this one, and it works fine, but my experience tells me that my solutions are