NaNoGenMo / 2019

National Novel Generation Month, 2019 edition.
98 stars 5 forks source link

Back to Basics this year... #76

Open chipmonkey opened 4 years ago

chipmonkey commented 4 years ago

I was maybe overly ambitious in years past... trying to formalize a bit more this time 'round...

My goal this year was to take some random text, character, and location generators and build a basic recursive quest engine.

Let's unpack that. All I want for now is:

Eh, maybe that's even too much. I work a super lot and in eight days of November so far all I've done is written those bullets. But let's see what's out there...

At the moment I'm thinking of tying TextWorld with GPT-2 to automate universe building and text generation. TextWorld needs multi-character support, but it has a nice questing tree. Borrow Borrow!

chipmonkey commented 4 years ago

Ok, some dev notes here: http://www.chiplynch.com/wiki/index.php/NaNoGenMo_2019_-_GPT-2_Edition

First draft here: http://www.chiplynch.com/wiki/index.php/NaNoGenMo2019_Attempt_1

Which is awful, but has a few gems: "Never lose confidence. Sure, you've been auctioned off, money has gone bad, just keep on parking."

"And that is when it ends For every time things melt out faster I have always wantedlet mankind melt Ain't everything burn to shreds when bursting apart, And being lost apart through convenience achievements"

but it's not adhering to the storyline as much as I'd like. Working on it.

chipmonkey commented 4 years ago

Success! Mostly. Kind of.

TLDR; Code is here: https://github.com/chipmonkey/ChipMonkeyNaNoGenMo2019 50k text is here: https://github.com/chipmonkey/ChipMonkeyNaNoGenMo2019/blob/master/masterpiece.txt

OK, was on call for work today so in between making sure things don't crash I polished this little dirt ball up as much as I think I can for the month, and I think it's getting shinier!

I'm cutting it off for now. I have 50k words, reminiscent of the Brothers' Grimm, on whose prose the neural net was trained. The previous plan still applies - generate a world with a story and a walkthrough in TextWorld then embellish the runthrough with gpt-2.

Instructions in the README.md

When the old folks were gone, and the wood behind the mill was dry, the little girl sat down upon a branch and cried:

‘My mother, my dear boy, Will you cry?’

And the mother answered: ‘Oh, yes, dear boy, you should.’

A few things... I lost Chapter formatting after the last version, because I switched from using GPT-2 directly to using gpt-2-simple and forgot to port that part over, but it shouldn't be hard.

And the story line still isn't real, but it's there, if you look really, REALLY hard for it.

hugovk commented 4 years ago

Well done!

I'll re-open this, we like to keep issues open so people can find entries easier.

chipmonkey commented 4 years ago

Thanks @hugovk! Wasn't really following how to handle it, so I appreciate the tags and re-open. 'til next year!