From c5cffd10698932a5b9012bc32c0a816a1102e531 Mon Sep 17 00:00:00 2001 From: Tom Weber Date: Sun, 6 Feb 2022 18:25:35 +0100 Subject: [PATCH] clean up --- .gitignore | 3 +++ .python-version | 1 + shakespeare.txt => data/shakespeare.txt | 0 markdown_header.txt | 7 ++++++- rnn_2epochs.pth => saved_models/rnn_2epochs.pth | Bin src/DOTD_generator/__init__.py | 2 ++ .../DOTD_generator/drama_of_the_day.py | 0 tests/__init__.py | 0 8 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 .python-version rename shakespeare.txt => data/shakespeare.txt (100%) rename rnn_2epochs.pth => saved_models/rnn_2epochs.pth (100%) create mode 100644 src/DOTD_generator/__init__.py rename drama_of_the_day.py => src/DOTD_generator/drama_of_the_day.py (100%) create mode 100644 tests/__init__.py diff --git a/.gitignore b/.gitignore index f3bef95..3546198 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ dramaoftheday.md +.idea/ .venv/ +saved_models/* +!saved_models/rnn_2epochs.pth diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..c1e43e6 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.7.3 diff --git a/shakespeare.txt b/data/shakespeare.txt similarity index 100% rename from shakespeare.txt rename to data/shakespeare.txt diff --git a/markdown_header.txt b/markdown_header.txt index 57f6ee6..2260b9c 100644 --- a/markdown_header.txt +++ b/markdown_header.txt @@ -5,10 +5,15 @@ date = "2021-11-07" This excerpt of a drama, although inspired by Shakespeare, is entirely artifically generated. -The language model that was used to produce this text only had prior knowledge about the latin alphabet. This means that all the (pseudo-)words produced were learnt through imitating Shakespeare. Therefore, you might find quite a few neologisms, in true Shakespearean spirit. +The language model that was used to produce this text only had prior knowledge about the latin alphabet. All the (pseudo-)words produced were learnt through imitating Shakespeare. Therefore, you might find quite a few neologisms, in true Shakespearean spirit. + + Everyday, the model is told to use the prompt **TOM:** and then produces the rest up to 10000 characters, thereby creating a unique new drama. +If you like to know more about this, [click here](/DOTD_generator). + + --- diff --git a/rnn_2epochs.pth b/saved_models/rnn_2epochs.pth similarity index 100% rename from rnn_2epochs.pth rename to saved_models/rnn_2epochs.pth diff --git a/src/DOTD_generator/__init__.py b/src/DOTD_generator/__init__.py new file mode 100644 index 0000000..f38884b --- /dev/null +++ b/src/DOTD_generator/__init__.py @@ -0,0 +1,2 @@ +__version__ = "0.1.0" + diff --git a/drama_of_the_day.py b/src/DOTD_generator/drama_of_the_day.py similarity index 100% rename from drama_of_the_day.py rename to src/DOTD_generator/drama_of_the_day.py diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29