From 368f0dccbbb2cd79daf20a350d994d740576a0a7 Mon Sep 17 00:00:00 2001 From: Michael Murtaugh Date: Tue, 10 Nov 2020 10:40:02 +0100 Subject: [PATCH] updated parody bot --- parody-bot.ipynb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/parody-bot.ipynb b/parody-bot.ipynb index 7949eb0..a8887a4 100644 --- a/parody-bot.ipynb +++ b/parody-bot.ipynb @@ -226,21 +226,22 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 12, "metadata": {}, "outputs": [ { "name": "stdin", "output_type": "stream", "text": [ - " Today is the first day of the rest of your life.\n" + " Today is the first day of the rest of your life\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "END is the great underneath outside a pea at his time .\n" + "Today is the first day of the rest of your life\n", + "END is a sorry thief of the sobs upon your run\n" ] } ], @@ -261,6 +262,7 @@ " newword = choice(index[tag])\n", " new.append(newword)\n", " # print (\"replace with\", newword)\n", + "print (i)\n", "print (' '.join(new))" ] },