Neural Networks: new text from existing prose, part 2

Hey All

As promised here is the second installation of my experiments with literature interpretation and creation by the Textgenrnn deep learning framework.

Over the course of working with the model creation process, and because I’m a weirdo, I have given the resulting model a name: “Delores”. It’s just for convenience – no really.

Anyway, this time I thought let’s see what Delores thinks about two complete opposite ends of the spectrum, so I chose William Shakespeare, and Hunter S. Thompson.

My earlier efforts around using these frameworks on home or consumer-grade equipment led me to take some steps to manage the extended time the kit would spend in high temperature mode. Being a fairly decent model it wouldn’t let itself get damaged as a result, but it would very likely de-rate the processors in order the modulate the temperature, making everything run slower. So some passive thermal management was probably in order.

Living in a cold area which can get down -2 celsius at during winter, I experimented with a few configurations and it turned out that the easiest one which let me both close the sliding door and also easily read the screen, was in fact to just prop it up on a chair with the back of the screen flush against the glass (forming what turned out to be an effective heat sink), and the rear exhaust ports unobstructed.

In this position there was good conductive and convective heat exchange and I was able to ensure all cores at maximum frequency without being throttled by the thermal management firmware. Even better would have been to invert it so that their was also that extra bit of convective assist, but it was good enough to keep things humming, and handier for checking the screen during the various tweaks and iterations.

Anyhoo, on with the show!


First up, the complete works of William Shakespeare

totalling in at 960,690 words. This was obtained from one of several public domain sites which offer non-copyrighted works in various formats. Here’s what Delores thought:

In worthy death, you then, that they will see thee.
And will I see the gods that would not strive.
And of his beauty of the world of blood.
Will I be made and make your own son.
But some servant of the fire of my life of love.
The man and the blood is but the hand of the house.
Thou beauty, thou art the mountain man in the way.
And blood with my mother’s steel may end.
The worse of a noble court in your very soldiers.
And the wave of your coming and the great blood.
The soldiers have no a woman's mouth.
And the world is the ambition of the strange.
What may see your name shall not make it.
The sight is to be so blessed and blood.
The world will be in the world that speak with the good wife.
That is not and willing on the rich winds.
The speed is a good morrow. There is dead.
And will I know the world will have any speech.
That we might defend thee my father.
But the blood is not an enemy of my body.
The countenance of the blood be with the street.
Let me lodge and stay.
I am not the purpose. I shall not leave thee again.
With my tongue and mind that I shall read thee.

Remember – none of these sentences occur anywhere in the text(s). What strikes me is how dark so much of it is. Maybe the laptop was annoyed ? That aside though, one of Shakespeare’s great talents was that he was master of the arts – comedy and tragedy; brevity alacrity and wit. To python then, summarizing and visualising the relative dominance of words across the entire corpus:


Not so dark then 🙂

* * *

Hunter S. Thompson

What can you say… the literary progeny of Keith Richards and Frank Zappa speaking Salvador Dali.

Hunter was a trained writer & journalist who first sprang to notoriety when his now best-known work “Fear and Loathing in Las Vegas: A Savage Journey to the Heart of the American Dream” was published in Rolling Stone magazine on November 11 1971 back when he was working for them as a roving correspondent and doing and writing things that nobody else knew or dared to attempt or express. That’s him above in the banner – as you can see he had certain proclivities.

Prior to Fear and Loathing he decided and then informed his Editor, that he would inject himself into the Hells Angels and report back about what went on there, in general, and do writing. He got so deep under the skin of the subculture and collected so much material that he turned it into a book. It made for tough reading, partly because of what it exposed and also partly because of his use of language – I call it “subdued glee” – in describing the disturbing, surprising, regretful things he encountered. I call it this not because he enjoyed writing about bad things but because he was the only one examining the American Underbelly and that was his El Dorado, at least those are my thoughts; half the time he was high as a kite. I’m a fan of words as you can probably tell and in fact did a year of English Literature before turning to Computer Science (a natural progression of course). But I digress ! What did Delores come up with in response to the full text of Fear & Loathing ? For some reason the results were the most confusing of all so far. Hunter’s writing was structured, coherent, and in all other ways syntactically sound. It was just profane, urgent, and unique. But anyway. The following is a curated list:

“Here,” I said. “We’re on our way to Las Vegas. “The really fine was understand,” I said. “We’re on our way to find the brain and dawn and moved the bastard and take him a lot of this scumbags … and we were both helicopters all the page.

“What will you see that?” he said. “I’m your attorney, I can’t be true! Meanwhile in his back straight and there’s a face of this time. The politic ‘Magnum'.

I asked my attorney he said he was careening in a press casino.

“How about the escalative?”

“No for something,” I said. “You better he confused, as you forced the track of this factors … still screaming away.

“Just flodge the door.” I said to the splodge. “That was that,” I said. “You’ll call you until about 100 yards. He suddenly leave the bartender.

“Good mind,” I said. “I’m a face of that mutantial full of specialists; I could see around to watch him that I knew I was in the first respectable lining around the car and take me for a very special freak, “saw me to ask,” I said. “I’m a far office and staggering that stop has a flash

“Now it was all the nexts?”

My attorney can turn the people – and for green water. “How many office was something like a music behind me.:

He smiled. “As your attorney, I advise you to shrug sh*t, understanding in the car and turned again, then to the start calmed by the Circus-Circus and the first time we’d win to pull over to grasp for Las Vegas. This is the final speed for a place like there and I thought.

“Well, we’re right!” I said. “If you follow me?”

Hunter passed in 2005.

Thanks for watching 🙂

Footnote: See William Gibson undergo the AI treatment in part 1.

error: Content is protected.