gvlassis commited on
Commit
574c0fc
·
1 Parent(s): e47caea

Manual rewrite

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. LICENSE.txt +7 -0
  2. README.md +5 -14
  3. res/demo.png +0 -3
  4. data/test-00000-of-00001.parquet → res/parquet/test.parquet +0 -0
  5. data/train-00000-of-00001.parquet → res/parquet/train.parquet +0 -0
  6. data/val-00000-of-00001.parquet → res/parquet/val.parquet +0 -0
  7. res/{αγαμεμνων.pdf → pdf/αγαμεμνων.pdf} +0 -0
  8. res/{αιας.pdf → pdf/αιας.pdf} +0 -0
  9. res/{αλκηστις.pdf → pdf/αλκηστις.pdf} +0 -0
  10. res/{ανδρομαχη.pdf → pdf/ανδρομαχη.pdf} +0 -0
  11. res/{αντιγονη.pdf → pdf/αντιγονη.pdf} +0 -0
  12. res/{αχαρνης.pdf → pdf/αχαρνης.pdf} +0 -0
  13. res/{βατραχοι.pdf → pdf/βατραχοι.pdf} +0 -0
  14. res/{ειρηνη.pdf → pdf/ειρηνη.pdf} +0 -0
  15. res/{εκκλησιαζουσες.pdf → pdf/εκκλησιαζουσες.pdf} +0 -0
  16. res/{επτα_επι_θηβας.pdf → pdf/επτα_επι_θηβας.pdf} +0 -0
  17. res/{ευμενιδες.pdf → pdf/ευμενιδες.pdf} +0 -0
  18. res/{ηρακλης_μενωμενος.pdf → pdf/ηρακλης_μενωμενος.pdf} +0 -0
  19. res/{θεσμοφοριαζουσες.pdf → pdf/θεσμοφοριαζουσες.pdf} +0 -0
  20. res/{κυκλωψ.pdf → pdf/κυκλωψ.pdf} +0 -0
  21. res/{λυσιστρατη.pdf → pdf/λυσιστρατη.pdf} +0 -0
  22. res/{μηδεια.pdf → pdf/μηδεια.pdf} +0 -0
  23. res/{νεφελες.pdf → pdf/νεφελες.pdf} +0 -0
  24. res/{οι_ορνιθες.pdf → pdf/οι_ορνιθες.pdf} +0 -0
  25. res/{οιδιπους_επι_κολωνω.pdf → pdf/οιδιπους_επι_κολωνω.pdf} +0 -0
  26. res/{οιδιπους_τυραννος.pdf → pdf/οιδιπους_τυραννος.pdf} +0 -0
  27. res/{ορεστης.pdf → pdf/ορεστης.pdf} +0 -0
  28. res/{πλουτος.pdf → pdf/πλουτος.pdf} +0 -0
  29. res/{προμηθευς_δεσμωτης.pdf → pdf/προμηθευς_δεσμωτης.pdf} +0 -0
  30. res/{χοηφοροι.pdf → pdf/χοηφοροι.pdf} +0 -0
  31. res/{αγαμεμνων.txt → txt/αγαμεμνων.txt} +0 -0
  32. res/{αιας.txt → txt/αιας.txt} +0 -0
  33. res/{αλκηστις.txt → txt/αλκηστις.txt} +0 -0
  34. res/{ανδρομαχη.txt → txt/ανδρομαχη.txt} +0 -0
  35. res/{αντιγονη.txt → txt/αντιγονη.txt} +0 -0
  36. res/{αχαρνης.txt → txt/αχαρνης.txt} +0 -0
  37. res/{βατραχοι.txt → txt/βατραχοι.txt} +0 -0
  38. res/{ειρηνη.txt → txt/ειρηνη.txt} +0 -0
  39. res/{εκκλησιαζουσες.txt → txt/εκκλησιαζουσες.txt} +0 -0
  40. res/{επτα_επι_θηβας.txt → txt/επτα_επι_θηβας.txt} +0 -0
  41. res/{ευμενιδες.txt → txt/ευμενιδες.txt} +0 -0
  42. res/{ηρακλης_μενωμενος.txt → txt/ηρακλης_μενωμενος.txt} +0 -0
  43. res/{θεσμοφοριαζουσες.txt → txt/θεσμοφοριαζουσες.txt} +0 -0
  44. res/{κυκλωψ.txt → txt/κυκλωψ.txt} +0 -0
  45. res/{λυσιστρατη.txt → txt/λυσιστρατη.txt} +0 -0
  46. res/{μηδεια.txt → txt/μηδεια.txt} +0 -0
  47. res/{νεφελες.txt → txt/νεφελες.txt} +0 -0
  48. res/{οι_ορνιθες.txt → txt/οι_ορνιθες.txt} +0 -0
  49. res/{οιδιπους_επι_κολωνω.txt → txt/οιδιπους_επι_κολωνω.txt} +0 -0
  50. res/{οιδιπους_τυραννος.txt → txt/οιδιπους_τυραννος.txt} +0 -0
LICENSE.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ Copyright (c)
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
README.md CHANGED
@@ -5,31 +5,24 @@ dataset_info:
5
  dtype: string
6
  splits:
7
  - name: train
8
- num_bytes: 2173017
9
  num_examples: 18
10
  - name: val
11
- num_bytes: 183032
12
  num_examples: 2
13
  - name: test
14
- num_bytes: 359226
15
  num_examples: 4
16
- download_size: 1360491
17
- dataset_size: 2715275
18
  configs:
19
  - config_name: default
20
  data_files:
21
  - split: train
22
- path: data/train-*
23
- - split: val
24
- path: data/val-*
25
  - split: test
26
- path: data/test-*
27
- license: mit
28
  task_categories:
29
  - text-generation
30
  language:
31
  - el
32
- pretty_name: Ancient Greek Theatre
33
  ---
34
  # Ancient Greek Theatre
35
 
@@ -39,12 +32,10 @@ pretty_name: Ancient Greek Theatre
39
  ## Description
40
  The dataset is basically [shakespearefirstfolio](https://huggingface.co/datasets/gvlassis/shakespearefirstfolio), which was itself a better [Tiny Shakespeare](https://huggingface.co/datasets/karpathy/tiny_shakespeare), but for Ancient Greek theatre plays and Modern Greek. Remarkably, and similarly to [Karpathy](https://karpathy.github.io/2015/05/21/rnn-effectiveness/), we observe that language models trained from scratch on this tiny dataset can produce samples that look eerily close to those written by Ancient Greek playwrights. You can see an example below:
41
 
42
- ![demo](./res/demo.png)
43
 
44
  The dataset was collected as follows: I first looked for free Modern Greek translations of complete Ancient Greek plays on [openbook.gr](https://www.openbook.gr/). For every PDF file found, I extracted the text with [pdfly](https://github.com/py-pdf/pdfly). The resulting .txt files undergone several rounds of manual and automatic cleaning via vim and vimscript. I also filled in missing parts (e.g characters, plot) from Wikipedia. This was very laborious, but I stuck with it until I was content with the result. As a final preprocessing step, I applied [NFKD normalization](https://unicode.org/reports/tr15/) via [uconv](https://linux.die.net/man/1/uconv). This lead to a *very* clean (albeit not perfect) collection of 24 Ancient Greek plays. The plays were written by Aristophanes, Euripides, Aeschylus and Sophocles. A complete list of the plays can be found in [./res](https://huggingface.co/datasets/gvlassis/ancient_greek_theatre/tree/main/res).
45
 
46
- t
47
-
48
  ## Usage
49
  import datasets
50
 
 
5
  dtype: string
6
  splits:
7
  - name: train
 
8
  num_examples: 18
9
  - name: val
 
10
  num_examples: 2
11
  - name: test
 
12
  num_examples: 4
 
 
13
  configs:
14
  - config_name: default
15
  data_files:
16
  - split: train
17
+ path: res/parquet/train.parquet
18
+ - split: validation
19
+ path: res/parquet/val.parquet
20
  - split: test
21
+ path: res/parquet/test.parquet
 
22
  task_categories:
23
  - text-generation
24
  language:
25
  - el
 
26
  ---
27
  # Ancient Greek Theatre
28
 
 
32
  ## Description
33
  The dataset is basically [shakespearefirstfolio](https://huggingface.co/datasets/gvlassis/shakespearefirstfolio), which was itself a better [Tiny Shakespeare](https://huggingface.co/datasets/karpathy/tiny_shakespeare), but for Ancient Greek theatre plays and Modern Greek. Remarkably, and similarly to [Karpathy](https://karpathy.github.io/2015/05/21/rnn-effectiveness/), we observe that language models trained from scratch on this tiny dataset can produce samples that look eerily close to those written by Ancient Greek playwrights. You can see an example below:
34
 
35
+ ΑΝΤΙΓΟΝΗ
36
 
37
  The dataset was collected as follows: I first looked for free Modern Greek translations of complete Ancient Greek plays on [openbook.gr](https://www.openbook.gr/). For every PDF file found, I extracted the text with [pdfly](https://github.com/py-pdf/pdfly). The resulting .txt files undergone several rounds of manual and automatic cleaning via vim and vimscript. I also filled in missing parts (e.g characters, plot) from Wikipedia. This was very laborious, but I stuck with it until I was content with the result. As a final preprocessing step, I applied [NFKD normalization](https://unicode.org/reports/tr15/) via [uconv](https://linux.die.net/man/1/uconv). This lead to a *very* clean (albeit not perfect) collection of 24 Ancient Greek plays. The plays were written by Aristophanes, Euripides, Aeschylus and Sophocles. A complete list of the plays can be found in [./res](https://huggingface.co/datasets/gvlassis/ancient_greek_theatre/tree/main/res).
38
 
 
 
39
  ## Usage
40
  import datasets
41
 
res/demo.png DELETED

Git LFS Details

  • SHA256: 4f6069b8470f6009486b285c65aea2165675f2a3f998d5d6315c9397751c1322
  • Pointer size: 130 Bytes
  • Size of remote file: 47.8 kB
data/test-00000-of-00001.parquet → res/parquet/test.parquet RENAMED
File without changes
data/train-00000-of-00001.parquet → res/parquet/train.parquet RENAMED
File without changes
data/val-00000-of-00001.parquet → res/parquet/val.parquet RENAMED
File without changes
res/{αγαμεμνων.pdf → pdf/αγαμεμνων.pdf} RENAMED
File without changes
res/{αιας.pdf → pdf/αιας.pdf} RENAMED
File without changes
res/{αλκηστις.pdf → pdf/αλκηστις.pdf} RENAMED
File without changes
res/{ανδρομαχη.pdf → pdf/ανδρομαχη.pdf} RENAMED
File without changes
res/{αντιγονη.pdf → pdf/αντιγονη.pdf} RENAMED
File without changes
res/{αχαρνης.pdf → pdf/αχαρνης.pdf} RENAMED
File without changes
res/{βατραχοι.pdf → pdf/βατραχοι.pdf} RENAMED
File without changes
res/{ειρηνη.pdf → pdf/ειρηνη.pdf} RENAMED
File without changes
res/{εκκλησιαζουσες.pdf → pdf/εκκλησιαζουσες.pdf} RENAMED
File without changes
res/{επτα_επι_θηβας.pdf → pdf/επτα_επι_θηβας.pdf} RENAMED
File without changes
res/{ευμενιδες.pdf → pdf/ευμενιδες.pdf} RENAMED
File without changes
res/{ηρακλης_μενωμενος.pdf → pdf/ηρακλης_μενωμενος.pdf} RENAMED
File without changes
res/{θεσμοφοριαζουσες.pdf → pdf/θεσμοφοριαζουσες.pdf} RENAMED
File without changes
res/{κυκλωψ.pdf → pdf/κυκλωψ.pdf} RENAMED
File without changes
res/{λυσιστρατη.pdf → pdf/λυσιστρατη.pdf} RENAMED
File without changes
res/{μηδεια.pdf → pdf/μηδεια.pdf} RENAMED
File without changes
res/{νεφελες.pdf → pdf/νεφελες.pdf} RENAMED
File without changes
res/{οι_ορνιθες.pdf → pdf/οι_ορνιθες.pdf} RENAMED
File without changes
res/{οιδιπους_επι_κολωνω.pdf → pdf/οιδιπους_επι_κολωνω.pdf} RENAMED
File without changes
res/{οιδιπους_τυραννος.pdf → pdf/οιδιπους_τυραννος.pdf} RENAMED
File without changes
res/{ορεστης.pdf → pdf/ορεστης.pdf} RENAMED
File without changes
res/{πλουτος.pdf → pdf/πλουτος.pdf} RENAMED
File without changes
res/{προμηθευς_δεσμωτης.pdf → pdf/προμηθευς_δεσμωτης.pdf} RENAMED
File without changes
res/{χοηφοροι.pdf → pdf/χοηφοροι.pdf} RENAMED
File without changes
res/{αγαμεμνων.txt → txt/αγαμεμνων.txt} RENAMED
File without changes
res/{αιας.txt → txt/αιας.txt} RENAMED
File without changes
res/{αλκηστις.txt → txt/αλκηστις.txt} RENAMED
File without changes
res/{ανδρομαχη.txt → txt/ανδρομαχη.txt} RENAMED
File without changes
res/{αντιγονη.txt → txt/αντιγονη.txt} RENAMED
File without changes
res/{αχαρνης.txt → txt/αχαρνης.txt} RENAMED
File without changes
res/{βατραχοι.txt → txt/βατραχοι.txt} RENAMED
File without changes
res/{ειρηνη.txt → txt/ειρηνη.txt} RENAMED
File without changes
res/{εκκλησιαζουσες.txt → txt/εκκλησιαζουσες.txt} RENAMED
File without changes
res/{επτα_επι_θηβας.txt → txt/επτα_επι_θηβας.txt} RENAMED
File without changes
res/{ευμενιδες.txt → txt/ευμενιδες.txt} RENAMED
File without changes
res/{ηρακλης_μενωμενος.txt → txt/ηρακλης_μενωμενος.txt} RENAMED
File without changes
res/{θεσμοφοριαζουσες.txt → txt/θεσμοφοριαζουσες.txt} RENAMED
File without changes
res/{κυκλωψ.txt → txt/κυκλωψ.txt} RENAMED
File without changes
res/{λυσιστρατη.txt → txt/λυσιστρατη.txt} RENAMED
File without changes
res/{μηδεια.txt → txt/μηδεια.txt} RENAMED
File without changes
res/{νεφελες.txt → txt/νεφελες.txt} RENAMED
File without changes
res/{οι_ορνιθες.txt → txt/οι_ορνιθες.txt} RENAMED
File without changes
res/{οιδιπους_επι_κολωνω.txt → txt/οιδιπους_επι_κολωνω.txt} RENAMED
File without changes
res/{οιδιπους_τυραννος.txt → txt/οιδιπους_τυραννος.txt} RENAMED
File without changes