Re: [Tutor] Bag of Words and libbow

2008-03-12 Thread Andre Halama
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dinesh B Vadhia wrote:

Hi Dinesh,

| I had a quick look at NLTK which is an NLP library suite whereas libbow
| is for statistical text analysis.  Cheers

what exactly are you trying to achieve that the statistical modules
included in NLTK don't give you?

A.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH14+cKWvEdxF+FtQRAu0hAJ4vqnULzeL/+TytHzVXdnJyzkXPTACeOqFn
Xznib3W5iZ3mnbVcv8AFUH8=
=XOS5
-END PGP SIGNATURE-
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Begining Python

2008-03-12 Thread Meftah Tayeb
hi my friend,
i have active python installed and the python-Win is Ready
but i have a Very Small problem:
i am blind, and i am using a Screen reader
this screen reader use the Microsoft Active Accessibiliti (MSAA) to find 
informations about actual object in the screen cursor
for Java Based applications, this screen Reader use the Java Access Bridj 
(JAB)
if it is no installed, java application is no accessible

but in python:
no accessibiliti layer is found for python !
I'd suggest you:
do not develope a new Accessibiliti layer
please, develope only a MSAA Server for represanting all python UI object to 
MSAA based application
and for JAVA / Python integration, please develope a JAVA Access Bridj (JAB) 
server to represanting python UI object to existing JAB Based application

Thank you,
Meftah Tayeb
- Original Message - 
From: "Terry Carroll" <[EMAIL PROTECTED]>
To: "python tutor" 
Sent: Wednesday, March 12, 2008 12:52 AM
Subject: Re: [Tutor] Begining Python


> On Tue, 11 Mar 2008, Meftah Tayeb wrote:
>
>> 2. do you know a Free IDE for Python (for windows) ?
>
> Meftah, I'd suggest you install Activestate's distribution of Python,
> which includes the PythonWin environment (not quite an IDE, in that
> there is no GUI designer, for example) and many Windows-specific python
> modules.
>
> http://www.activestate.com/Products/activepython/
>
> ___
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
> 

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Fwd: Begining Python

2008-03-12 Thread Daniel kavic



Begin forwarded message:


From: Meftah Tayeb <[EMAIL PROTECTED]>
Date: March 12, 2008 4:39:46 AM EDT
To: Terry Carroll <[EMAIL PROTECTED]>, python tutor 
Subject: Re: [Tutor] Begining Python

hi my friend,
i have active python installed and the python-Win is Ready
but i have a Very Small problem:
i am blind, and i am using a Screen reader
this screen reader use the Microsoft Active Accessibiliti (MSAA) to  
find

informations about actual object in the screen cursor
for Java Based applications, this screen Reader use the Java Access  
Bridj

(JAB)
if it is no installed, java application is no accessible

but in python:
no accessibiliti layer is found for python !
I'd suggest you:
do not develope a new Accessibiliti layer
please, develope only a MSAA Server for represanting all python UI  
object to

MSAA based application
and for JAVA / Python integration, please develope a JAVA Access  
Bridj (JAB)
server to represanting python UI object to existing JAB Based  
application


Thank you,
Meftah Tayeb
- Original Message -
From: "Terry Carroll" <[EMAIL PROTECTED]>
To: "python tutor" 
Sent: Wednesday, March 12, 2008 12:52 AM
Subject: Re: [Tutor] Begining Python



On Tue, 11 Mar 2008, Meftah Tayeb wrote:


2. do you know a Free IDE for Python (for windows) ?


Meftah, I'd suggest you install Activestate's distribution of Python,
which includes the PythonWin environment (not quite an IDE, in that
there is no GUI designer, for example) and many Windows-specific  
python

modules.

http://www.activestate.com/Products/activepython/

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor



___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] self-learning Python

2008-03-12 Thread Kaushal Shriyan
On Tue, Mar 11, 2008 at 1:11 AM, Ian Ozsvald <[EMAIL PROTECTED]> wrote:
> Hi Enrique.  I'll suggest my ShowMeDo for video tutorials - our 'beginner' 
> subsection for Python has 101 videos:
>  http://showmedo.com/videos/python?topic=beginner_programming
>
>  Most of the videos are free (3 series - in yellow - require a subscription, 
> everything else is free).  Topics covered include learning Python, watching 
> Python modules in action, an online tour of Python web-resources, cool 
> modules like RUR-PLE, Crunchy, pyGame, wxPython and lots of other stuff.
>  There are even more tutorials in the main Python section:
>  http://showmedo.com/videos/python
>
>  Hope that helps,
>  Ian.
>
>
>
>  Enrique Nieves, Jr. wrote:
>  > I'm not a programmer, but would like to learn to program.  I'm
>  > considering self-learning python on my spare time.  Can you recommend
>  > the best books, online training, or other resources?  I know nothing
>  > about programming.
>  >
>  >
>  >
>  > enrique
>  >
>  >
>  > 
>
> >
>  > ___
>  > Tutor maillist  -  Tutor@python.org
>  > http://mail.python.org/mailman/listinfo/tutor
>
>  --
>  http://Services.ShowMeDo.com
>  http://ShowMeDo.com
>  [EMAIL PROTECTED]
>
>
> ___
>  Tutor maillist  -  Tutor@python.org
>  http://mail.python.org/mailman/listinfo/tutor
>

Hi all,

I am a newbie with no programming experience. As Kent Johnson has
already pointed here about the book "Python Programming for the
absolute beginner" by Michael Dawson,I checked both in www.amazon.com
and www.ebay.com website. Both this website say "Unavailable" or "Out
of  Stock"

where can i get this book. I am eagerly awaiting to buy this book

Thanks and Regards

Kaushal
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] self-learning Python

2008-03-12 Thread Kaushal Shriyan
On Wed, Mar 12, 2008 at 9:00 PM, Kent Johnson <[EMAIL PROTECTED]> wrote:
> Kaushal Shriyan wrote:
>  > I am a newbie with no programming experience. As Kent Johnson has
>  > already pointed here about the book "Python Programming for the
>  > absolute beginner" by Michael Dawson,I checked both in www.amazon.com
>  > and www.ebay.com website. Both this website say "Unavailable" or "Out
>  > of  Stock"
>  >
>  > where can i get this book. I am eagerly awaiting to buy this book
>
>  Today it is in stock at Amazon.com:
>  
> http://www.amazon.com/Python-Programming-Absolute-Beginner-Second/dp/1598631128/
>
>  Also it is available direct from the publisher:
>  
> http://premierpressbooks.com/ptr_detail.cfm?group=Programming&subcat=Other%20Programming&isbn=1%2D59863%2D112%2D8
>
>  Incidentally I am amazed to see how many new Python books are in the
>  works - more than 12 are scheduled for release in the next year!
>  
> http://www.amazon.com/s/ref=sr_st?keywords=python+programming&rs=1000&page=1&rh=n%3A1000%2Ck%3Apython+programming&sort=daterank
>
>  Kent
>

Thanks Kent :-)
I placed a ordered for this book

Thanks again

Thanks and Regards

Kaushal
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] self-learning Python

2008-03-12 Thread Kent Johnson
Kaushal Shriyan wrote:
> I am a newbie with no programming experience. As Kent Johnson has
> already pointed here about the book "Python Programming for the
> absolute beginner" by Michael Dawson,I checked both in www.amazon.com
> and www.ebay.com website. Both this website say "Unavailable" or "Out
> of  Stock"
> 
> where can i get this book. I am eagerly awaiting to buy this book

Today it is in stock at Amazon.com:
http://www.amazon.com/Python-Programming-Absolute-Beginner-Second/dp/1598631128/

Also it is available direct from the publisher:
http://premierpressbooks.com/ptr_detail.cfm?group=Programming&subcat=Other%20Programming&isbn=1%2D59863%2D112%2D8

Incidentally I am amazed to see how many new Python books are in the 
works - more than 12 are scheduled for release in the next year!
http://www.amazon.com/s/ref=sr_st?keywords=python+programming&rs=1000&page=1&rh=n%3A1000%2Ck%3Apython+programming&sort=daterank

Kent
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Hard time understanding classes

2008-03-12 Thread Norm All
Hello,

I am learning python and so far have done pretty well, until I got to the
subject of classes which I have been struggling to understand for a while. I
have not found any easy to understand tutorial on the web or looking in some
books for a clear step by step example. Would  appreciate any help or links
to read.

Regards.
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Hard time understanding classes

2008-03-12 Thread Ole Henning Jensen
Norm All wrote:
> I am learning python and so far have done pretty well, until I got to 
> the subject of classes which I have been struggling to understand for a 
> while. I have not found any easy to understand tutorial on the web or 
> looking in some books for a clear step by step example. Would  
> appreciate any help or links to read.
> 


While this is a very long discussion thread, I found it extremly helpful 
in my understanding of classes and how they should be built/designed.

http://www.nabble.com/designing-POOP-tc15290468.html
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Hard time understanding classes

2008-03-12 Thread Alan Gauld
"Norm All" <[EMAIL PROTECTED]> wrote

> I am learning python and so far have done pretty well, until I got 
> to the
> subject of classes which I have been struggling to understand for a 
> while.

First, you are not alone.
Some people find the idea of objects easy to grasp but the majority
of programmers struggle because it is a different way of thinking
about programs and problems. Once you "get it" you will wonder
what all the fuss was about :-)

Second, while classes are very useful for some things you don't
*need* to use classes to program even quite complex programs.

So don't panic.

> have not found any easy to understand tutorial on the web or looking 
> in some
> books for a clear step by step example. Would  appreciate any help 
> or links
> to read.

It might help if we know what you have read so far and if you can give
some specific things that you find hard to grasp. That gives us a
direction to head down.

Obligatory plug, you can try the OOP topic in my tutor if you
haven't already...

HTH,

-- 
Alan Gauld
Author of the Learn to Program web site
Temorarily at:
http://uk.geocities.com/[EMAIL PROTECTED]/
Normally:
http://www.freenetpages.co.uk/hp/alan.gauld 


___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Hard time understanding classes

2008-03-12 Thread Dick Moores
At 01:58 PM 3/12/2008, Norm All wrote:
>Hello,
>
>I am learning python and so far have done pretty well, until I got 
>to the subject of classes which I have been struggling to understand 
>for a while. I have not found any easy to understand tutorial on the 
>web or looking in some books for a clear step by step example. 
>Would  appreciate any help or links to read.

I suggest the new book, _Object-Oriented Programming in Python_, by 
Goldwasser and Letscher:



Dick Moores

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Simple reg-ex syntax?

2008-03-12 Thread Allen Fowler
Hello,

I have code that looks something like:

self.aString = "abc123xyz"
self.theNumber = int(re.search('(\d+)',self.aString).group())

Is there a more Pythonic way of doing this? (Both the reg-ex and the Int 
coercion.)  How about when I will need to extract more than one substring?

Thank you,
:)
 



  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Correct way to call an outside program?

2008-03-12 Thread Allen Fowler
Hello,

I need to call an external command line .exe utility from my Python script.

What is the best way to capture the output (if any) and (optionally) direct it 
to my normal standard output?

There seem to be many options...

Thank you,
:)







  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Correct way to call an outside program?

2008-03-12 Thread Alan Gauld

"Allen Fowler" <[EMAIL PROTECTED]> wrote

> I need to call an external command line .exe utility from my Python 
> script.
>
> What is the best way to capture the output (if any) and (optionally)
> direct it to my normal standard output?
>
> There seem to be many options...

Historically there have been lots of methods introduced howeever
the most recent and officially correct way is now tyo use the
subprocess module. There are examples on the web pages
to show what you want.

Or read the Using the OS topic in my tutorial for the basics.

HTH,

-- 
Alan Gauld
Author of the Learn to Program web site
Temorarily at:
http://uk.geocities.com/[EMAIL PROTECTED]/
Normally:
http://www.freenetpages.co.uk/hp/alan.gauld 


___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor