Darius Bacon ([info]darius) wrote,
@ 2009-03-04 01:41:00
Previous Entry  Add to memories!  Tell a Friend  Next Entry
The web speaks
Here's the 'best' of the first half-dozen 'poems' from my new program: it babbles at random according to a Markov model using the most common bigrams from Google's whole-web corpus, constrained to a Shakespearean sonnet.


Agreed on their weight for this piece of them
For your position and became a trip
To add to you to do we must hold em
In self adhesive tape is more or zip
Code is to being with your bill in less
Than just eight points out in a way to get
A business days per month of your success
Of anal hardcore porno film is set
In prison for improved upon it will
Have seen as well to view cart is an end
Of firms that was extremely slow but still
Free web site will give to protect the trend
In thread for instant credit cards were laid
In for the children will not to be paid.
Another:
With package deals for sale at times to her
Life in case for the blessed with long on this
Scope and support group for the children were
Not gonna take this reason to dismiss
The right now if at this search engine which
Are not break free porn free world wide range for
The patient with care so forth from a bitch
About the pension plan must state of more
Attractive to go with some way to take
A gift of patients have a wife on this
Research results for your own mind that make
A self esteem and has been to dismiss
The court date on effective for which is
Served basis as far as they have heard his.

A completely safe for work one:
More stable in support that there were some
Type is shown in my products and thought this
Or been in their poor in a large groups from
Their friends and most things that some are still miss
Him well aware of his words to hang out
And his concerns for front of business to
Be paid for such sale or to lie about
The comic book by any light of view
Complete this section that a named on your
Search tips and he threw it will be a thought
I hate to spin on last line shopping for
The first few years there are not have been taught
By other regions where you understand
What you can range of any other hand.


So the program mostly works from the formal point of view, though with a few terrible rhymes like them/em, some mindlessly repeated rhymes, and it never tries for feminine rhymes. I'm surprised at how decent the scansion is, from such a simple algorithm. It sounds out the words using CMU's pronouncing dictionary.



(10 comments) - (Post a new comment)


[info]lunza
2009-03-04 12:40 pm UTC (link)
Amusing.

Edited at 2009-03-04 12:41 pm UTC

(Reply to this)


[info]dariusk
2009-03-04 01:29 pm UTC (link)
Oh, that is amazing. Is the source up anywhere yet? (I've been working on a different sort of sonnet-generator myself.)

(Reply to this) (Thread)


[info]dariusk
2009-03-04 01:31 pm UTC (link)
Err, I just realized you're probably accessing that 6-DVD set of data, though?

(Reply to this) (Parent)(Thread)


[info]darius
2009-03-04 06:41 pm UTC (link)
Not directly, though I might go and buy it. The data's from someone at Google who wrote a great article about some of the cool things you can do with that dataset -- but the article hasn't been published yet so I don't know if I can say more or give out this condensation of the data.

(Reply to this) (Parent)


[info]darius
2009-03-04 06:36 pm UTC (link)
Thanks! I guess I'll put the code up on github as it is now (an ugly mess). Different how?

(Reply to this) (Parent)(Thread)


[info]dariusk
2009-03-04 06:39 pm UTC (link)
I helped a poet I know write something that takes existing sonnets and does some simple regex to kind of rearrange them in interesting ways.

(Reply to this) (Parent)(Thread)


[info]darius
2009-03-04 06:43 pm UTC (link)
Ah, cool. If it weren't simple I wouldn't have the patience.

(Reply to this) (Parent)


[info]darius
2009-03-04 06:57 pm UTC (link)
Code now at http://github.com/darius/languagetoys/tree/master

(Reply to this) (Parent)


[info]gustavolacerda
2009-05-26 09:48 am UTC (link)
that's pretty cool!

(Reply to this) (Thread)


[info]darius
2009-05-27 12:05 am UTC (link)
Thanks. :)

(Reply to this) (Parent)


(10 comments) - (Post a new comment)

Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…