Re: Need Help with Programming Science Project

2014-01-27 Thread alex23
On 24/01/2014 8:05 PM, theguy wrote: I have a science project that involves designing a program which can examine a bit of text with the author's name given, then figure out who the author is if another piece of example text without the name is given. This sounds like exactly the sort of thin

Re: Need Help with Programming Science Project

2014-01-25 Thread Rustom Mody
On Saturday, January 25, 2014 8:12:20 PM UTC+5:30, Dennis Lee Bieber wrote: > > Heck, at the very least turn all those _99 variables into single > lists The posted code looks like something from 1968 K&K BASIC. Yes thats correct. My suggestion of data-files is a second step. A fir

Re: Need Help with Programming Science Project

2014-01-25 Thread Denis McMahon
On Fri, 24 Jan 2014 20:58:50 -0800, theguy wrote: > I know. I'm kind of ashamed of the code, but it does the job I need it > to up to a certain point OK, well first of all take a step back and look at the problem. You have n exemplars, each from a known author. You analyse each exemplar, and de

Re: Need Help with Programming Science Project

2014-01-24 Thread Gregory Ewing
theguy wrote: If I could get it to actually calculate the "points" for AUTHOR_SCOREBOARD properly, then all my problems would be solved. Have you tried getting it to print out the values it's getting for the scores, and comparing them with what you calculate by hand? -- Greg -- https://mail.py

Re: Need Help with Programming Science Project

2014-01-24 Thread Gregory Ewing
theguy wrote: I so far have three different authors in the program and have already put in the example text but for some reason, the program always leans toward one specific author, Suzanne Collins, no matter what insane number I try to put in or how much I tinker with the coding. It's obvious

Re: Need Help with Programming Science Project

2014-01-24 Thread Dave Angel
kvxde...@gmail.com Wrote in message: > Alright. I have the code here. Now, I just want to note that the code was not > designed to work "quickly" or be very well-written. It was rushed, as I only > had a few days to finish the work, and by the time I wrote the program, I > hadn't worked with Py

Re: Need Help with Programming Science Project

2014-01-24 Thread theguy
On Friday, January 24, 2014 7:06:55 PM UTC-8, Rustom Mody wrote: > On Saturday, January 25, 2014 8:12:41 AM UTC+5:30, kvxd...@gmail.com wrote: > > > Alright. I have the code here. Now, I just want to note that the code was > > not designed to work "quickly" or be very well-written. It was rushed,

Re: Need Help with Programming Science Project

2014-01-24 Thread Rustom Mody
On Saturday, January 25, 2014 8:12:41 AM UTC+5:30, kvxd...@gmail.com wrote: > Alright. I have the code here. Now, I just want to note that the code was not > designed to work "quickly" or be very well-written. It was rushed, as I only > had a few days to finish the work, and by the time I wrote t

Re: Need Help with Programming Science Project

2014-01-24 Thread kvxdelta
Alright. I have the code here. Now, I just want to note that the code was not designed to work "quickly" or be very well-written. It was rushed, as I only had a few days to finish the work, and by the time I wrote the program, I hadn't worked with Python (which I never had TOO much experience wi

Re: Need Help with Programming Science Project

2014-01-24 Thread Roy Smith
In article , Ben Finney wrote: > bob gailer writes: > > > On 1/24/2014 5:05 AM, theguy wrote: > > > I would post the code, but I don't know if it's fine to put it here, > > > as it contains pieces from books. I do believe that would go against > > > copyright laws. > > > AFAIK copyright laws

Re: Need Help with Programming Science Project

2014-01-24 Thread Terry Reedy
On 1/24/2014 7:34 PM, Chris Angelico wrote: On Sat, Jan 25, 2014 at 10:38 AM, bob gailer wrote: On 1/24/2014 5:05 AM, theguy wrote: I have a science project that involves designing a program which can examine a bit of text with the author's name given, then figure out who the author is if ano

Re: Need Help with Programming Science Project

2014-01-24 Thread Ben Finney
bob gailer writes: > On 1/24/2014 5:05 AM, theguy wrote: > > I would post the code, but I don't know if it's fine to put it here, > > as it contains pieces from books. I do believe that would go against > > copyright laws. > AFAIK copyright laws apply to reproducing something for profit. That's

Re: Need Help with Programming Science Project

2014-01-24 Thread Chris Angelico
On Sat, Jan 25, 2014 at 10:38 AM, bob gailer wrote: > On 1/24/2014 5:05 AM, theguy wrote: >> >> I have a science project that involves designing a program which can >> examine a bit of text with the author's name given, then figure out who the >> author is if another piece of example text without

Re: Need Help with Programming Science Project

2014-01-24 Thread bob gailer
On 1/24/2014 5:05 AM, theguy wrote: I have a science project that involves designing a program which can examine a bit of text with the author's name given, then figure out who the author is if another piece of example text without the name is given. I so far have three different authors in th

Re: Need Help with Programming Science Project

2014-01-24 Thread Peter Otten
theguy wrote: > I have a science project that involves designing a program which can > examine a bit of text with the author's name given, then figure out who > the author is if another piece of example text without the name is given. > I so far have three different authors in the program and have

Need Help with Programming Science Project

2014-01-24 Thread theguy
I have a science project that involves designing a program which can examine a bit of text with the author's name given, then figure out who the author is if another piece of example text without the name is given. I so far have three different authors in the program and have already put in the