Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The House that Conceptnet Built #61

Open
zachwhalen opened this issue Nov 2, 2017 · 8 comments
Open

The House that Conceptnet Built #61

zachwhalen opened this issue Nov 2, 2017 · 8 comments
Labels
completed For completed novels! preview There is an excerpt somewhere in the thread!

Comments

@zachwhalen
Copy link

I didn't manage to complete this last year or the year before, so this year I plan to revisit one or both of those.

New ideas for this year include:

  • something something char-rnn something
  • POS-tagging and substitution -- one novel's words in the syntax of another novel.
  • something with Tracery
@zachwhalen
Copy link
Author

Alright, so I've moved along with a couple of these ideas.

First, I've been playing with Conceptnet to try and build action chains following the formula of the "This the House That Jack Built" poem. I started this last year and got as far as some basic rhyme and meter. It didn't make sense, though, so this year, I'm revisiting the idea with concepnet.io to see if it comes together. So far, I can generate fairly plausible sentences like:

a bed that rested a person in the house that Jack built of brick
a cat that watched a mouse in the house that Jack located on an estate
a human that drank coffee in the house that Jack divided into several rooms

The code is a mess, but I like what it can do so far.

@hugovk hugovk added the preview There is an excerpt somewhere in the thread! label Nov 7, 2017
@zachwhalen zachwhalen changed the title Intent to Participate The House that Conceptnet Built Nov 7, 2017
@zachwhalen
Copy link
Author

zachwhalen commented Dec 5, 2017

I know it's December, but hey, it's always November somewhere, right?

I've been working on this little by little, and I did get the text generation part worked out before 12/1. I'm now on to the layout and illustration generation, which I really want to complete before sharing much. I'm pretty happy with the output, which can currently generate strings like this:

This is the TIGER that drank the water that stopped the fire that hurt the person that pushed the car that killed the person that ate the animal that hunted for the food that pleased the hungry person that analyzed the results of the test that placed the student that listened the teacher that listened to the student that fooled the teacher that helped to teach the student that doubted the teacher that passed the student that surprised the teacher that struck the pupil that bugged the teacher that questioned the student that sharpened the pencil that marked the piece of paper that flew in the wind that shook the tree that shaded the car that drove over the cat that ate the bird that landed on the tree that shaded the flower bed that rested the person that analyzed the color in the painting that pleased the person that skated across the field of ice that cured the headache that pained the person that relied on the computer that taught lessons to the student that proved the talents to the teacher that helped the student that questioned the teacher that taught the child that questioned the parent that dressed the child that needled the parent that feed the child that taught the adult that helped the child that received the hug from the parent that left the family that moved to the new house that Jack built.

@tra38
Copy link

tra38 commented Dec 5, 2017

I actually like how that output is itself a mini-story that elaborates how the tiger is indirectly connected to everything else.

@zachwhalen
Copy link
Author

Much progress has been made! In fact, I've got a complete book of 49,799 words, 800 pages, but I need to get to a computer with Acrobat so I can reduce the file size down from 1.2gb to something more reasonable.

@zachwhalen
Copy link
Author

OK I think I'm done, only two weeks late! The final sample optimized down to 23mb through whatever black magic happens inside Acrobat Pro.

All told, it was more work than I thought, but I'm quite pleased with the output. I read the shorter version to two of my kids (to whom the book is dedicated) and they actually liked it. My youngest actually requested it again a day later, so I think that's a good review.

@zachwhalen
Copy link
Author

So @hugovk can I get that completed tag? (Or am I too late because it's December?)

@hugovk hugovk added the completed For completed novels! label Dec 18, 2017
@hugovk
Copy link
Member

hugovk commented Dec 18, 2017

It looks great! Have a tag!

@tra38
Copy link

tra38 commented Dec 29, 2017

I read the shorter version to two of my kids (to whom the book is dedicated) and they actually liked it. My youngest actually requested it again a day later, so I think that's a good review.

Every year, the Neukom Institute Turing Tests in the Creative Arts hosts the Creative Turing Tests, and this year, one of the tests is "DigiKidLit" - create an computer program that can generate a short story for children. If you want, you could adapt this entry and enter it into the competition. If it is awesome for your kids, maybe it'd be awesome for other people's kids as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completed For completed novels! preview There is an excerpt somewhere in the thread!
Projects
None yet
Development

No branches or pull requests

3 participants