This project aims to close to loop on making it relevant to segue from talking about Python back to its namesake, Monty Python. The secondary goal is to provide new Monty Python content when this lot all kick the bucket.
Note that the above graph explicitly recognises that Loretta no longer wants to be considered a white male for the purposes of finding blame for everything that is wrong with the world.
First clone the repository and install textgenrnn:
git clone git@github.com:mensly/python-der-pythonen.git
pip install textgenrnn
If you end up with an error related to multi_gpu_model like I did, you may need to grab the current development version of textgenrnn.
pip uninstall textgenrnn
git clone git@github.com:minimaxir/textgenrnn.git
pip install ./textgenrnn
Next you will need to download some input data for the input.txt
file, the data needed can be
found online. If Monty Python's lawyers have this
taken down, I'll throw them under a camel. Assuming you're lazy, this can be done for you:
./fetch-data.py
You can then force your computer to read nonsense:
./training.py
Finally, you can generate something funny:
./generate.py
less output.txt
Training?
To save time, you can download my training data and skip straight to generating content.
Go take a look at the options available for textgenrnn
then just tweak training.py
and generate.py
to suit. If you have some spare time on your hands,
I'll accept any PRs that add argparse
to these scripts.
Mr. Simpson: No, no, no, no, no, no, no, no.
John Cleese: No, no, no, no, no, no, no, no, no, no, no, no, no, no, no, no, no, no, no, no, no, I went so you are also the central centress of bar end through the house of them always like this some of the meal. I mean the shoe!
Palin: Would you leave them?
And he said a bit of a moment and the banana.
Man in crowd III: Hello, brought the show!
Cleveland: Oh dear. Now you must!
Man: I don't know what they is complaining as the fish of the stuff in an argument, my lady of the way to the first and depressing and top of the common, and this is the shape of the matter of the
in the servant Parrots - the sun the country where I-I make it a lot
Barrister I:Michael Palin beast with the shouts and HARRY
And he said it a fine. Ooh.
Doctor: I wasn't going to have a second back to be an indeed with a few high same from the radio in here when I think it's a lot.
mine, and then he had me, and the model cry you say the Piranha nails and her wit!
GUARD #1: Oh, yes.
and the prince of the semi-clear.
Mr. Smoketoomuch: ...Bignose of the Round Table.
Man in crowd III: Oh look, that's right. Well, what do you mean "'Thoy-- Sir Launcelot of Studio is to the business of the business down the sun
Reg: Ah, well we have been having the baby or something we had to get the shrubbery,
He likes traffic lights,
Arthur: Right! What do you mean? And now there's nothing to prove in the she is, and there is nothing quite as he shall begin about the film of
You must go and tell
Music: 'The Maitre?
Ex-leper: Yes, but I'm sorry, but I think I quite wadney and then he had to crackle men for doubt and the baltwin children and the mountain discreams of the British tart
[King Arthur music]
The contact lenses is thrown and a better to be a bit of the poison of the cheese warned!
little thinker, eh?
and last we are taking the right as chanteuse and
probably and the match or of course more of your--
Graham Chapman: Sorry that the children development of the single possibiline stars like
you and death must buy humbanged with the streets of the controversian story of the restaurant and the place.
the square in the head and the big central point, and then his eludest square that will head a bit of the sort of things they said the black knights.
Wise Man 1: We have to go and string.
got a standing brain for the mountain of the string.
Katzenberg: And just that all right, that's a long brother, we're going to be a real father sing and fall and so the
here]
Prophet III: What do you mean?
Man: There's the reap to the sort of forced sounds of the restaurants off.
Brian: Are you the person?
Husband: Well why don't you be quite ready!
for me the blood of his British Concentman are still
Crucifixion Party: [Whistle]
And when you're not perfectly right from the first public prevailoss of it all the sun leaves in
ARTHUR: No, no, it could have a very good symphony.
Reg: Well why don't they say that you want to be for a large.
Mother: No, no, my liver desk completely inside the air.
Man in crowd III: He has given us a bit up and the five minutes is the song of the scene when help me a little public
Man I: What exactly? What is the basement?
========================================
O: No it isn't!
Rogers: I do
2: We don't get much as I say 'e' heep!
Arthur: O Knights of Ni, she's agreeuts John Cleese
Carl French: Well, what is it the five minutes?
every sperm is good.
What?
Proprietor: Well, I am anything to spam a bit of a bank hand. I'm afraid this is a skit, and there's the surgery and heart the shot. There is nothing quite as much raw in the word by a muddy last wise but we call the fish in twenty-four, he did not have the express in tent. We haven't got a subj
and the middle of the state was a being anyway, and they're going to see, the castle.
you go to this time, and he was worth twenty-fun
comparative death, and the film I doesn't mate his back on the world!
Arthur: I never sack her at a nice fish and the world of this would be undroadment, and there is nothing quite as beautiful, warning to have a look at the table.
going to tell you to be opened on the bananas
And the curtain - the mother of strishourst star
Constable: Oh yeah. Well we get really what I mean take a bit of a minute.
Don't be a bank balm to LAVMED BELL, ITS OF JOH DONA EVERYLIN
Man: 5
From our fathers: Well of course I went and show me out of the food and other stuff in the sun turned by a moment with the sale three in her
From: Monty Python's Contractual Obligations and starts to have a contraduct of the background they can eat Horror of British tauntain and the short-busily was the Romans again. A minute.
face of fresh through the problem by you controversial and six advertised the Shint
WIFE (the corridor): I see.
and crucifixion. [He liees laughter for a spank)
and have been standing to the start and the first
I like traffic lights
Constable: That's a belly class, the parts with a
straight through. The floor. The ballip is the state of the sun lenses of glass of the cougans of Michael Palin
Chapman: No, no, no, no, no, no, no, no, no, no, no, no, no. No, no, no, no.
Barrister I: What?
And all the roadmaster was a little house. And comes another three record from the walls of the string...
repeated, and the most trick is a speed of a disappear.
Brian: Aah, Well he says I say this isn't a doctor of the sun.
The Lambert: Welcome to a strange person, and throw a book, we have done there.
Mr Hendy: Oh, yes. But he speaks another face and the middle of the end of stoning - the service.
Lambert: Morning.
Grim Reaper: Well, I think I shall have to go onto the start of light you know,
Woman in crowd II: Oh, don't then, that's the so...
(pause)
Crucifixion Supervisor: Perhaps the last three one of the contact lenses)
Biggs: You don't like them.
every sperm is good...
Crucifixion Supervisor: No, you didn't.
and (Michael Palin): There's some of that started to the hole into the bucket and there are still
You just want to be well as he starts to be
O: No.
Loretta: No, no, no, no, we are before you go to be truly to shot our father--
4 SCHILOOM
From: Monty Python's Flying Circus
Reg: Ah, I think I was just done a little then. There it is from the rest of you, and the court masters.
Proprietor: (pause) I want to be a little window-clap for this critic associatent, and ten discovers. And the world, and the mouseboy is a 'man and every two minutes of the straight and the matter of life arrives at him! I mean, and the match the other time I was saying it again.
The Maitre D is the most minor of the start and he would not have a screech "Daver ot any moves and of archbishop into the minute.
Brian: Ah, I see. I've got your wife and the most town and specially supposed to argue us at the sharplan.
And have been string in my face,
Landing 4