Re: [BangPypers] Text/Mail filtering/classification using python

2011-12-26 Thread Vijay Ramachandran
Use scikit - we've found that it works better than the classifiers in nltk. For the spam/ham problem, I've heard (circa 2006!!) that naive bayes works as well as any other classifier. For the label classification problem, since there is dependency between words, so

Re: [BangPypers] golf problem

2011-12-26 Thread Kenneth Gonsalves
On Mon, 2011-12-26 at 10:01 +0530, Pratap Chakravarthy wrote: > # Initialize variables > holes, bk = HOLES[:], {} ; > random.shuffle( holes ) > > # Make buckets > [ bk.setdefault(y, []).append((x,y)) for x, y in holes ] > > # Result > print [ bk[3].pop(0), bk[4].pop(0), bk[5].pop(0) ] + random.

Re: [BangPypers] golf problem

2011-12-26 Thread Noufal Ibrahim
Kenneth Gonsalves writes: [...] > just curious - why do you and Noufal think this is a crude method? I don't like special casing stuff and the 3 selections outside the "main" flow sticks out in my solution. -- ~noufal http://nibrahim.net.in Parting is such sweet sorrow. -William Shakespear

Re: [BangPypers] golf problem

2011-12-26 Thread Pratap Chakravarthy
> I don't like special casing stuff and the 3 selections outside the> "main" > flow sticks out in my solution. I guess that is right. Any logic that is outside the main flow breaks the beauty and create kludge. Attempted to solve the same problem using Erlang, and surprisingly what was looking li

[BangPypers] check printing with python

2011-12-26 Thread Ramdas S
Is there anyway to print a check online using Django/Python? I see a possibility of making PDF on the fly, and sending it to the printer, but I want some opinion ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/ba

Re: [BangPypers] golf problem

2011-12-26 Thread Kenneth Gonsalves
On Mon, 2011-12-26 at 17:34 +0530, Pratap Chakravarthy wrote: > Attached is the file. I think the attachment got stripped. -- regards Kenneth Gonsalves ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpyper

Re: [BangPypers] check printing with python

2011-12-26 Thread Noufal Ibrahim
Ramdas S writes: > Is there anyway to print a check online using Django/Python? > > I see a possibility of making PDF on the fly, and sending it to the > printer, but I want some opinion I think you'd have best control with a PDF but it might also be possible to create the page in HTML and use a

Re: [BangPypers] check printing with python

2011-12-26 Thread Noufal Ibrahim
Ramdas S writes: > Is there anyway to print a check online using Django/Python? > > I see a possibility of making PDF on the fly, and sending it to the > printer, but I want some opinion I think you'd have best control with a PDF but it might also be possible to create the page in HTML and use a