Mark7549 commited on
Commit
8a850b7
·
1 Parent(s): 01b39fb

added subcorpora tab and content

Browse files
Files changed (1) hide show
  1. app.py +45 -2
app.py CHANGED
@@ -564,9 +564,52 @@ if selected == "FAQ":
564
  Vatri, A., & McGillivray, B. (2018). The Diorisis ancient Greek corpus: Linguistics and
565
  literature. *Research Data Journal for the Humanities and Social Sciences*, 3(1), 55-65.
566
  """)
567
-
 
 
 
 
 
 
 
 
 
 
 
 
 
568
 
569
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
570
  if selected == "License":
571
  st.markdown("""
572
  ## License
 
564
  Vatri, A., & McGillivray, B. (2018). The Diorisis ancient Greek corpus: Linguistics and
565
  literature. *Research Data Journal for the Humanities and Social Sciences*, 3(1), 55-65.
566
  """)
567
+
568
+
569
+ if selected == "Subcorpora":
570
+ st.markdown("""
571
+ <style>
572
+ table td:nth-child(1) {
573
+ display: none
574
+ }
575
+ table th:nth-child(1) {
576
+ display: none
577
+ }
578
+ </style>
579
+ ## Subcorpora
580
+ """, unsafe_allow_html=True)
581
 
582
+
583
+ # Create the data as a dictionary
584
+ data = {
585
+ "Time Slice": [
586
+ "Archaic (Homer-500 BCE)",
587
+ "Classical (499-324 BCE)",
588
+ "Hellenistic (323-31 BCE)",
589
+ "Early Roman (30 BCE-250 CE)",
590
+ "Late Roman (251-500 CE)"
591
+ ],
592
+ "Tokens": [
593
+ "229,999",
594
+ "2,628,193",
595
+ "1,471,917",
596
+ "4,900,879",
597
+ "753,907"
598
+ ],
599
+ "Authors/Texts": [
600
+ "Homer, Hesiod, Shield of Heracles, 34 Homeric hymns.",
601
+ "Andocides, Aeneas Tacticus, Antiphon, Aeschines, Aeschylus, Aristophanes, Aristotle, Demosthenes, Demades, Euripides, Herodotus, Hippocrates, Hyperides, Isaeus, Isocrates, Lycurgus, Lysias, Pindar, Plato, Sophocles, Thucydides, Xenophon.",
602
+ "Apollonius Rhodius, Aratus, Asclepiodotus, Callimachus, Bion of Phlossa, Demetrius, Against Dionysodorus (Demosthenes), Dinarchus, Diodorus, Euclides, Hyperides, Moschus, Lycophron, Septuaginta, Polybius, Theocritus, Theophrastus.",
603
+ "Achilles Tatius, Aelian, Appian, Agathemerus, Aelius Aristides, Aretaeus, Arrian, Athenaeus, Barnabas, Cassius Dio, Clement of Alexandria, Claudius Ptolemy, Chariton, Dio Chrysostom, Diogenes Laertius, Dionysius of Halicarnassus, Epictetus, Flavius Josephus, Harpocration, Galen, Lucian, Longinus, Longus, New Testament, Marcus Aurelius, Oppian, Oppian of Apamaea, Onasander, Philostratus the Athenian, Philostratus the Younger, Parthenius of Nicaea, Pausanias, Philostratus of Lemnos, Plutarch, Pseudo Apollodorus, Pseudo-Aristides, Pseudo-Plutarch, Second Alcibiades, Strabo, Triphiodorus, Xenophon of Ephesus.",
604
+ "Callistratus, Basilius, Eusebius of Caesarea, Julian the Emperor, Nonnus, Plotinus, Quintus Smyrnaeus."
605
+ ]
606
+ }
607
+
608
+ # Convert the dictionary to a DataFrame
609
+ df = pd.DataFrame(data)
610
+
611
+ # Display the DataFrame in Streamlit
612
+ st.table(df)
613
  if selected == "License":
614
  st.markdown("""
615
  ## License