19 May, 2013











Forum
Manufacturers
Register
Login
Hey You! Registering only takes 5 seconds... literally! Look at the sign up form!
Latest Forum Posts
On ebay...
Posted in 13 hours ago
Road to 100k
Posted in 13 hours ago
Britchops Drum Tuiti&#...
Posted in 16 hours ago
New Paiste 602 Modern ...
Posted in 21 hours ago
Cymbal Vault - Greenbr...
Posted in 1 day ago
Sponsor Links
Online Users
There are 6 guests browsing this site
Newest Members
Please welcome our newest members:

Atjohns50@gmail
Registered 4 days ago
AMERICAN DAWG
Registered 21 days ago
djdrummerFM
Registered 25 days ago
fulmertc@yahoo.
Registered 33 days ago
rekerhugh
Registered 37 days ago
Register as a Member
Registering as a member is super easy and takes 5 seconds! Join in the discussion today.
 
Page: << 1 2  Forum Home - General - I wrote a computer program that writes essays for you
I wrote a computer program that writes essays for you
Gold Star
gclin



4,490 posts (1 today)
0 Awards

C is such a powerful language.

I'm impressed.PleasedPleasedPleasedPleasedPleased
Gene
Gold Star
ron_jacobson




3,978 posts (1 today)
1 Awards

Me too!!!!!GeekGeekGeekGeekGeek
I am a Weekend Warrior
www.theauthorities.net
\m/ -_- \m/
Silver Star
mrhappycow



1,739 posts (1 today)
1 Awards

Yeah I know mike but Its better when you can print the thread without the ads and the blue lines just writing. Its just better that way.
Matt the happy cow.

If this band was a person, it would be president. If this band was visual art, it would be the main attraction at Louvre. If this band was a book, it would be holier than the bible.
-METALLICA
Large Silver Star
crash



3,085 posts (6 today)
1 Awards

Electric toilet seats are better in the winter. But that's just the way it is.
Silver Star
mrhappycow



1,739 posts (1 today)
1 Awards

seriously crash are you that lazy haha jk. why would you want that over a beday hahahahahahaha Just Poo
Matt the happy cow.

If this band was a person, it would be president. If this band was visual art, it would be the main attraction at Louvre. If this band was a book, it would be holier than the bible.
-METALLICA
kyler228


1 posts (1 today)
0 Awards

Cool, very clever idea. I took it one step further, using python. It's still a prototype so it sounds like a the essay was written by an doplhin, but its a start.

Instructions:
1. Change the variable 'topic' to whatever topic you want (it goes off of the wikipedia article for reference so make sure the article exists)

2. Compile

3. Check the newly created .txt file, "text2.txt."

4. ???

5. profit

import re
import random
import urllib


topic = "Pineapple"
maxSentenceLength = 30
totalSentences = 20

if topic == None:
f = open("banana.txt")
sample = f.read()+"\n\n\n"
else:
filehandle = urllib.urlopen("https://en.wikipedia.org/w/api...les="+topic+"&explaintext")
sample = filehandle.read()

def getCommonAfter(a,s):
m = re.findall("(?i)"+a+" (\w+)",s)
try:
if max(set(m), key=m.count) == max(m, key=len):
return min(m, key=len)
except:
pass
if(random.random()>.9):
try:
return max(m, key=len)
except:
pass
if(random.random()>.7):
try:
return max(set(m), key=m.count)
except:
pass
try:
return random.choice(m)
except:
return None



final = "\t"
print "Beginning"
for s in range(totalSentences):
print "\tSentence "+str(s)+"..."
out = ""
last = random.choice(re.findall("\n(\w+)",sample))
out += last
for i in range(maxSentenceLength):
last = getCommonAfter(last,sample)
if(last==None):
break
out += " "+last
out += "."
if(random.random()>.85):
out += "\n\t"
if(i>5):
final += out+" "
print "Finished"
f = open('c:\python27\\text2.txt', 'w')
f.write(final)
Horn of Plenty
devoted2gretsch



13,280 posts (1 today)
3 Awards

Huh?

You realize this is a forum about DRUMS right?

Member since at least October 2005!
Page: << 1 2 

To post a reply, you need to login or register.



Drum-World.com Copyright © 2002 onwards. All rights reserved.