Urdatorn commited on
Commit
1dfa183
·
verified ·
1 Parent(s): fde1473

Norma accuracy by silver form and lemma coverage (reviewer: unseen forms/lemmas); hand lemmas for forms odyCy cannot lemmatise

Browse files
analysis/lemma/lemma_analysis.py ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Accuracy on Norma by silver word-form and lemma coverage (reviewer: "how many unseen
2
+ word forms/lemmas are predicted correctly by the transformer").
3
+
4
+ Per gold position:
5
+ form seen the word form (lowercase, grave->acute) occurs in the silver data
6
+ form unseen, lemma seen the form never occurs, but its lemma does
7
+ form and lemma unseen neither occurs
8
+ Lemmas: silver side = OGA CoNLL-U lemmas of the sentences in the HF data (silver_lemmas.py);
9
+ Norma side = odyCy lemma in context (norma_lemmas.py); for the forms odyCy could not
10
+ lemmatise (it returns the form itself), hand lemmas from manual_lemmas.tsv. The two lemmatisers differ in
11
+ conventions, so lemmas are compared without diacritics, and the "lemma unseen" items are
12
+ listed for manual checking. Agreement of odyCy with the OGA lemma on seen forms is reported.
13
+
14
+ python analysis/lemma/lemma_analysis.py --split test > analysis/lemma/lemma_analysis.test.md
15
+ """
16
+ import argparse, collections, glob, json, os, sys, unicodedata
17
+ HERE = os.path.dirname(os.path.abspath(__file__)); ROOT = os.path.dirname(os.path.dirname(HERE))
18
+ sys.path.insert(0, os.path.dirname(HERE))
19
+ import error_analysis as ea
20
+
21
+ def bare(s):
22
+ return "".join(c for c in unicodedata.normalize("NFD", s.lower()) if not unicodedata.combining(c)).replace("ς", "σ")
23
+
24
+ def main():
25
+ ap = argparse.ArgumentParser()
26
+ ap.add_argument("--split", default="test")
27
+ ap.add_argument("--runs", default="runs/final-v2")
28
+ ap.add_argument("--overlap", default="analysis/silver_overlap_5d737f8/per_vowel.jsonl")
29
+ ap.add_argument("--rule_dir", default="results/rule-based-a949b76")
30
+ a = ap.parse_args()
31
+ lem = json.load(open(os.path.join(HERE, "silver_lemmas.json")))
32
+ flem = json.load(open(os.path.join(HERE, "silver_form_lemma.json")))
33
+ lem_bare = collections.Counter()
34
+ for l, c in lem.items(): lem_bare[bare(l)] += c
35
+ ody = {(r["split"], r["source"], r["line"], r["tok"]): r for r in map(json.loads, open(os.path.join(HERE, "norma_lemmas.jsonl"), encoding="utf-8"))}
36
+ import csv
37
+ manual = {}
38
+ for r in csv.DictReader(open(os.path.join(HERE, "manual_lemmas.tsv"), encoding="utf-8"), delimiter="\t"):
39
+ manual[ea_norm(r["form"])] = [c for c in r["lemma_candidates"].split("|")]
40
+ sil = [r for r in ea.load(os.path.join(ROOT, a.overlap)) if r["split"] == a.split and r["gold"]]
41
+ by = collections.defaultdict(list)
42
+ for r in sil: by[r["source"]].append(r)
43
+
44
+ def attach(pos):
45
+ cnt = collections.Counter()
46
+ for p in pos:
47
+ q = by[p["source"]][cnt[p["source"]]]; cnt[p["source"]] += 1
48
+ assert q["gold"] == p["gold"]
49
+ o = ody[(q["split"], q["source"], q["line"], q["tok"])]
50
+ assert o["word"] == q["word"], (o, q)
51
+ p["form"] = q["word"]; p["lemma_odycy"] = o["lemma"]
52
+ p["form_seen"] = q["f_norm"] > 0
53
+ k = ea_norm(q["word"])
54
+ p["lemma_oga"] = max(flem[k].items(), key=lambda kv: kv[1])[0] if k in flem else None
55
+ p["lemma_count"] = lem_bare.get(bare(o["lemma"] or ""), 0)
56
+ p["lemma_manual"] = None
57
+ mk = ea_norm(q["word"].rstrip(".,·;:"))
58
+ if not p["form_seen"] and mk in manual:
59
+ # odyCy often returns the unseen form itself as lemma: use the hand lemma
60
+ p["lemma_manual"] = "|".join(manual[mk])
61
+ p["lemma_count"] = max(lem_bare.get(bare(c), 0) for c in manual[mk])
62
+ if p["form_seen"]:
63
+ p["cov"] = "form seen"
64
+ elif p["lemma_count"] > 0:
65
+ p["cov"] = "form unseen, lemma seen"
66
+ else:
67
+ p["cov"] = "form and lemma unseen"
68
+ return pos
69
+
70
+ systems = {}
71
+ for s in (1, 2, 3):
72
+ f, = glob.glob(os.path.join(ROOT, f"{a.runs}/seed{s}/eval/*.{a.split}.positions.jsonl"))
73
+ systems[f"seed{s}"] = attach(ea.load(f))
74
+ systems["rule-based"] = attach(ea.load(os.path.join(ROOT, a.rule_dir, f"rule-based.{a.split}.positions.jsonl")))
75
+ S1 = systems["seed1"]
76
+ keys = ["form seen", "form unseen, lemma seen", "form and lemma unseen"]
77
+ print(f"# Accuracy by silver form and lemma coverage, Norma {a.split}\n")
78
+ print(f"Models: {a.runs}/seed{{1,2,3}}; rule-based: {a.rule_dir}; silver = oga-macronized-no-norma 5d737f8.\n")
79
+ # lemmatiser agreement on seen forms
80
+ seen = [p for p in S1 if p["lemma_oga"] and p["lemma_odycy"]]
81
+ agree = sum(bare(p["lemma_oga"]) == bare(p["lemma_odycy"]) for p in seen)
82
+ print(f"odyCy vs OGA lemma on positions whose form is in silver: {agree}/{len(seen)} = {100*agree/len(seen):.1f}% agree (diacritics ignored).\n")
83
+ print(ea.table("Accuracy by coverage (rule-based counts abstentions as wrong)", lambda r: r["cov"], keys, systems))
84
+ for lab in ("^", "_"):
85
+ sub = {k: [r for r in v if r["gold"] == lab] for k, v in systems.items()}
86
+ print(ea.table(f"gold {'short' if lab == '^' else 'long'}", lambda r: r["cov"], keys, sub))
87
+ # rule-based coverage (non-abstention) per bucket
88
+ rb = systems["rule-based"]
89
+ print("### Rule-based: coverage and accuracy when it marks\n\n| group | n | marked | accuracy on marked |\n|---|---:|---:|---:|")
90
+ for k in keys:
91
+ rr = [r for r in rb if r["cov"] == k]; m = [r for r in rr if r["pred"]]
92
+ if rr: print(f"| {k} | {len(rr)} | {100*len(m)/len(rr):.1f}% | {100*sum(r['pred']==r['gold'] for r in m)/max(1,len(m)):.1f}% |")
93
+ # distinct forms per bucket
94
+ print("\n### Distinct word forms and lemmas per bucket\n\n| group | positions | distinct forms | distinct lemmas (odyCy) |\n|---|---:|---:|---:|")
95
+ for k in keys:
96
+ rr = [r for r in S1 if r["cov"] == k]
97
+ print(f"| {k} | {len(rr)} | {len({ea_norm(r['form']) for r in rr})} | {len({bare(r['lemma_odycy'] or '') for r in rr})} |")
98
+ print("\n### Positions with form and lemma unseen (for manual checking)\n")
99
+ print("| source | word | gold | lemma | seed1 | seed2 | seed3 | rule |\n|---|---|---|---|---|---|---|---|")
100
+ idx = [i for i, r in enumerate(S1) if r["cov"] == "form and lemma unseen"]
101
+ for i in idx:
102
+ r = S1[i]; pr = lambda s: systems[s][i]["pred"] or "–"
103
+ print(f"| {r['source']} | {r['word']} | {r['gold']} | {r['lemma_manual'] or r['lemma_odycy']} | {pr('seed1')} | {pr('seed2')} | {pr('seed3')} | {pr('rule-based')} |")
104
+ print("\n### Positions with form unseen, lemma seen (lemma, silver token count of lemma)\n")
105
+ print("| source | word | gold | odyCy lemma | silver count | seed1 | rule |\n|---|---|---|---|---:|---|---|")
106
+ for i, r in enumerate(S1):
107
+ if r["cov"] == "form unseen, lemma seen":
108
+ print(f"| {r['source']} | {r['word']} | {r['gold']} | {r['lemma_manual'] or r['lemma_odycy']} | {r['lemma_count']} | {r['pred'] or '–'} | {systems['rule-based'][i]['pred'] or '–'} |")
109
+
110
+ def ea_norm(w):
111
+ d = unicodedata.normalize("NFD", w.lower()).replace("̀", "́")
112
+ return unicodedata.normalize("NFC", d)
113
+
114
+ if __name__ == "__main__":
115
+ main()
analysis/lemma/lemma_analysis.test.md ADDED
@@ -0,0 +1,329 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Accuracy by silver form and lemma coverage, Norma test
2
+
3
+ Models: runs/final-v2/seed{1,2,3}; rule-based: results/rule-based-a949b76; silver = oga-macronized-no-norma 5d737f8.
4
+
5
+ odyCy vs OGA lemma on positions whose form is in silver: 1217/1596 = 76.3% agree (diacritics ignored).
6
+
7
+ ### Accuracy by coverage (rule-based counts abstentions as wrong)
8
+
9
+ | group | n | seed1 | seed2 | seed3 | rule-based |
10
+ |---|---:|---:|---:|---:|---:|
11
+ | form seen | 1645 | 94.8 | 93.9 | 94.0 | 74.4 |
12
+ | form unseen, lemma seen | 182 | 86.8 | 86.8 | 85.2 | 26.4 |
13
+ | form and lemma unseen | 89 | 86.5 | 86.5 | 86.5 | 13.5 |
14
+ | **all** | 1916 | 93.7 | 92.9 | 92.8 | 67.0 |
15
+
16
+ ### gold short
17
+
18
+ | group | n | seed1 | seed2 | seed3 | rule-based |
19
+ |---|---:|---:|---:|---:|---:|
20
+ | form seen | 1394 | 97.7 | 97.4 | 97.6 | 76.3 |
21
+ | form unseen, lemma seen | 133 | 99.2 | 98.5 | 100.0 | 27.1 |
22
+ | form and lemma unseen | 66 | 95.5 | 95.5 | 98.5 | 15.2 |
23
+ | **all** | 1593 | 97.7 | 97.4 | 97.8 | 69.7 |
24
+
25
+ ### gold long
26
+
27
+ | group | n | seed1 | seed2 | seed3 | rule-based |
28
+ |---|---:|---:|---:|---:|---:|
29
+ | form seen | 251 | 78.9 | 74.5 | 74.1 | 63.7 |
30
+ | form unseen, lemma seen | 49 | 53.1 | 55.1 | 44.9 | 24.5 |
31
+ | form and lemma unseen | 23 | 60.9 | 60.9 | 52.2 | 8.7 |
32
+ | **all** | 323 | 73.7 | 70.6 | 68.1 | 53.9 |
33
+
34
+ ### Rule-based: coverage and accuracy when it marks
35
+
36
+ | group | n | marked | accuracy on marked |
37
+ |---|---:|---:|---:|
38
+ | form seen | 1645 | 77.2% | 96.4% |
39
+ | form unseen, lemma seen | 182 | 29.7% | 88.9% |
40
+ | form and lemma unseen | 89 | 15.7% | 85.7% |
41
+
42
+ ### Distinct word forms and lemmas per bucket
43
+
44
+ | group | positions | distinct forms | distinct lemmas (odyCy) |
45
+ |---|---:|---:|---:|
46
+ | form seen | 1645 | 1044 | 876 |
47
+ | form unseen, lemma seen | 182 | 115 | 115 |
48
+ | form and lemma unseen | 89 | 50 | 50 |
49
+
50
+ ### Positions with form and lemma unseen (for manual checking)
51
+
52
+ | source | word | gold | lemma | seed1 | seed2 | seed3 | rule |
53
+ |---|---|---|---|---|---|---|---|
54
+ | acharnenses | ψαμμακοσιογάργαρα. | ^ | ψαμμακοσιογάργαρα | ^ | ^ | ^ | – |
55
+ | acharnenses | ψαμμακοσιογάργαρα. | ^ | ψαμμακοσιογάργαρα | ^ | ^ | ^ | – |
56
+ | acharnenses | ψαμμακοσιογάργαρα. | ^ | ψαμμακοσιογάργαρα | ^ | ^ | ^ | – |
57
+ | acharnenses | ψαμμακοσιογάργαρα. | ^ | ψαμμακοσιογάργαρα | ^ | ^ | ^ | ^ |
58
+ | aristophanes | ἐγχανοῦνται· | ^ | ἐγχάσκω | ^ | ^ | ^ | – |
59
+ | aristophanes | ἐξιπώκατον. | ^ | ἐξιπόω | _ | ^ | ^ | – |
60
+ | aristophanes | ἐξιπώκατον. | ^ | ἐξιπόω | ^ | ^ | ^ | – |
61
+ | aristophanes | Νικοδίκη, | _ | Νικοδίκη | _ | _ | _ | – |
62
+ | aristophanes | Νικοδίκη, | ^ | Νικοδίκη | ^ | ^ | ^ | – |
63
+ | aristophanes | περιφυσήτω | ^ | περιφυσάω | ^ | ^ | ^ | – |
64
+ | aristophanes | περιφυσήτω | _ | περιφυσάω | _ | _ | _ | – |
65
+ | aristophanes | χρυσολόφα | _ | χρυσόλοφος | _ | _ | _ | – |
66
+ | aristophanes | χρυσολόφα | _ | χρυσόλοφος | ^ | ^ | ^ | ^ |
67
+ | aristophanes | μεγαλόπετρον, | ^ | μεγαλόπετρος | ^ | ^ | ^ | ^ |
68
+ | aristophanes | ἐπαποδυώμεθ', | ^ | ἐπαποδυώμεθ | ^ | ^ | ^ | – |
69
+ | aristophanes | ἐπαποδυώμεθ', | ^ | ἐπαποδυώμεθ | ^ | ^ | ^ | – |
70
+ | aristophanes | ἐκδυώμεθ', | ^ | ἐκδυώμεθ | ^ | ^ | ^ | – |
71
+ | aristophanes | ἐντεθριῶσθαι | _ | ἐνθριόω|θριόω | ^ | _ | ^ | – |
72
+ | aristophanes | τέθυχ', | ^ | τέθυχ | ^ | ^ | ^ | – |
73
+ | aristophanes | Χαριτιμίδη | ^ | Χαριτιμίδης | ^ | ^ | ^ | – |
74
+ | aristophanes | Χαριτιμίδη | ^ | Χαριτιμίδης | _ | ^ | ^ | – |
75
+ | aristophanes | Χαριτιμίδη | _ | Χαριτιμίδης | _ | _ | ^ | – |
76
+ | aristophanes | Χαριτιμίδη | ^ | Χαριτιμίδης | ^ | ^ | ^ | – |
77
+ | aristophanes | βράδυν'· | ^ | βράδυν | ^ | ^ | ^ | – |
78
+ | aristophanes | βράδυν'· | _ | βράδυν | ^ | ^ | ^ | – |
79
+ | aristophanes | διασποδῆσαι | ^ | διασποδέω | ^ | ^ | ^ | – |
80
+ | aristophanes | δημοκρατούμεθα. | ^ | δημοκρατέω | ^ | ^ | ^ | ^ |
81
+ | aristophanes | δημοκρατούμεθα. | _ | δημοκρατέω | ^ | ^ | ^ | ^ |
82
+ | aristophanes | σανδαλίσκον | ^ | σανδαλίσκος | ^ | ^ | ^ | – |
83
+ | aristophanes | μεμυήμεθ' | ^ | μεμυήμεθ | ^ | ^ | ^ | – |
84
+ | aristophanes | χηστρίδ' | ^ | χηστρίδ | ^ | ^ | ^ | – |
85
+ | aristophanes | ἁμίδ', | ^ | ἁμίδ | ^ | _ | ^ | – |
86
+ | aristophanes | ἁμίδ', | ^ | ἁμίδ | ^ | ^ | ^ | – |
87
+ | aristophanes | παραινεῖτ', | ^ | παραινεῖτ | ^ | ^ | ^ | – |
88
+ | aristophanes | ἀμφιλάλοις | ^ | ἀμφίλαλος | ^ | ^ | ^ | – |
89
+ | aristophanes | ἀμφιλάλοις | ^ | ἀμφίλαλος | ^ | ^ | ^ | ^ |
90
+ | aristophanes | ὀξύλαλόν | ^ | ὀξύλαλος | ^ | ^ | ^ | – |
91
+ | aristophanes | ὀξύλαλόν | ^ | ὀξύλαλος | ^ | ^ | ^ | – |
92
+ | aristophanes | σμιλευματοεργοῦ | _ | σμιλευματοεργός | _ | _ | _ | – |
93
+ | aristophanes | σμιλευματοεργοῦ | ^ | σμιλευματοεργός | ^ | ^ | ^ | – |
94
+ | aristophanes | στοματουργός, | ^ | στοματουργός | ^ | ^ | ^ | ^ |
95
+ | aristophanes | βασανίστρια, | ^ | βασανίστρια | ^ | ^ | ^ | – |
96
+ | aristophanes | βασανίστρια, | ^ | βασανίστρια | ^ | ^ | ^ | – |
97
+ | aristophanes | βασανίστρια, | ^ | βασανίστρια | ^ | ^ | ^ | – |
98
+ | aristophanes | βασανίστρια, | ^ | βασανίστρια | ^ | ^ | ^ | ^ |
99
+ | aristophanes | ἀνασπῶντ' | ^ | ἀνασπῶντ | ^ | ^ | ^ | – |
100
+ | bacchylides | ἱπποδινήτων | _ | ἱπποδίνητος | ^ | _ | _ | – |
101
+ | bacchylides | χρυσόπαχυς | _ | χρυσόπηχυς|χρυσόπαχυς | _ | _ | _ | – |
102
+ | bacchylides | χρυσόπαχυς | _ | χρυσόπηχυς|χρυσόπαχυς | ^ | ^ | ^ | – |
103
+ | bacchylides | χρυσόπαχυς | ^ | χρυσόπηχυς|χρυσόπαχυς | ^ | ^ | ^ | ^ |
104
+ | bacchylides | ἐρειψιπύλαν | ^ | ἐρειψίπυλος|ἐρειψιπύλας | ^ | ^ | ^ | – |
105
+ | bacchylides | ἐρειψιπύλαν | ^ | ἐρειψίπυλος|ἐρειψιπύλας | ^ | ^ | ^ | – |
106
+ | bacchylides | ἐρειψιπύλαν | _ | ἐρειψίπυλος|ἐρειψιπύλας | _ | _ | _ | – |
107
+ | bacchylides | Ἀλκμήνιος | ^ | Ἀλκμήνιος | ^ | ^ | ^ | – |
108
+ | bacchylides | λιγυκλαγγῆ | ^ | λιγυκλαγγής | ^ | ^ | ^ | – |
109
+ | bacchylides | χαλκεόκρανον | _ | χαλκεόκρανος | _ | _ | _ | _ |
110
+ | bacchylides | φοινικονώτων | _ | φοινικόνωτος | _ | _ | _ | – |
111
+ | bacchylides | ἀναιδομάχαν | ^ | ἀναιδομάχας | ^ | ^ | ^ | – |
112
+ | bacchylides | ἀναιδομάχαν | ^ | ἀναιδομάχας | ^ | ^ | ^ | – |
113
+ | bacchylides | Καλυδῶν' | ^ | Καλυδοί | ^ | ^ | ^ | – |
114
+ | bacchylides | Καλυδῶν' | ^ | Καλυδοί | ^ | ^ | ^ | – |
115
+ | bacchylides | στασάμεθ' | _ | στασάμεθ | ^ | ^ | ^ | – |
116
+ | bacchylides | στασάμεθ' | ^ | στασάμεθ | ^ | ^ | ^ | – |
117
+ | bacchylides | Ἀφάρητα | ^ | Ἀφάρης | ^ | ^ | ^ | – |
118
+ | bacchylides | Ἀφάρητα | ^ | Ἀφάρης | _ | ^ | _ | – |
119
+ | bacchylides | ἀτάρβακτος | ^ | ἀτάρβακτος | ^ | ^ | ^ | – |
120
+ | bacchylides | ἐξαύσασα | _ | ἐξαύω | _ | _ | _ | – |
121
+ | bacchylides | Δαϊπύλου | _ | Δαΐπυλος | _ | ^ | ^ | – |
122
+ | bacchylides | Δαϊπύλου | ^ | Δαΐπυλος | ^ | ^ | ^ | – |
123
+ | bacchylides | Δαϊπύλου | ^ | Δαΐπυλος | ^ | ^ | ^ | ^ |
124
+ | bacchylides | ἀκαμαντορόαν | ^ | ἀκαμαντορόας | ^ | ^ | ^ | – |
125
+ | bacchylides | ἀκαμαντορόαν | ^ | ἀκαμαντορόας | ^ | ^ | ^ | – |
126
+ | bacchylides | ἀκαμαντορόαν | _ | ἀκαμαντορόας | _ | _ | _ | – |
127
+ | dioscorides | ῥοδόπυγον | _ | ῥοδόπυγος | _ | _ | _ | _ |
128
+ | dioscorides | ἀμφισαλευομένης | ^ | ἀμφισαλεύω | ^ | ^ | ^ | – |
129
+ | dioscorides | ἀμφισαλευομένης | ^ | ἀμφισαλεύω | ^ | ^ | ^ | – |
130
+ | partheneion | Ἀγιδῶς | _ | Ἀγιδώ | ^ | ^ | ^ | – |
131
+ | partheneion | Ἀγιδῶς | ^ | Ἀγιδώ | ^ | _ | ^ | – |
132
+ | partheneion | Ἀγιδὼ | _ | Ἀγιδώ | ^ | ^ | ^ | – |
133
+ | partheneion | Ἀγιδὼ | ^ | Ἀγιδώ | ^ | _ | ^ | – |
134
+ | plutarchus | ὀδυνοσπάδος | ^ | ὀδυνοσπάς | ^ | ^ | ^ | – |
135
+ | plutarchus | ὀδυνοσπάδος | ^ | ὀδυνοσπάς | ^ | ^ | ^ | ^ |
136
+ | supplices | προστομίων | ^ | προστόμιον | ^ | ^ | ^ | – |
137
+ | supplices | λεπτοψαμάθων | ^ | λεπτοψάμαθος | ^ | ^ | ^ | – |
138
+ | supplices | λεπτοψαμάθων | ^ | λεπτοψάμαθος | ^ | ^ | ^ | ^ |
139
+ | supplices | δημηλασίαν | ^ | δημηλασία | ^ | ^ | ^ | – |
140
+ | supplices | δημηλασίαν | ^ | δημηλασία | ^ | ^ | ^ | – |
141
+ | supplices | φυξανορίαν, | _ | φυξανορία | _ | ^ | ^ | – |
142
+ | supplices | φυξανορίαν, | ^ | φυξανορία | ^ | ^ | ^ | – |
143
+
144
+ ### Positions with form unseen, lemma seen (lemma, silver token count of lemma)
145
+
146
+ | source | word | gold | odyCy lemma | silver count | seed1 | rule |
147
+ |---|---|---|---|---:|---|---|
148
+ | acharnenses | διεστράφην | ^ | διαστρέφω | 639 | ^ | – |
149
+ | acharnenses | διεστράφην | ^ | διαστρέφω | 639 | ^ | – |
150
+ | aristophanes | Στρυμόδωρ', | _ | Στρυμόδωρ | 1 | _ | – |
151
+ | aristophanes | ἀψάλακτος, | ^ | ἀψάλακτος | 3 | ^ | ^ |
152
+ | aristophanes | φυσητέον, | _ | φυσάω | 438 | _ | _ |
153
+ | aristophanes | ἔβρυκε | _ | βρύκω | 78 | ^ | _ |
154
+ | aristophanes | Κρίτυλλαν | ^ | Κρίτυλλα | 1 | ^ | – |
155
+ | aristophanes | κνεφαία | _ | κνεφαίος | 20 | _ | ^ |
156
+ | aristophanes | χυτρείου, | ^ | χυτρῖον | 3 | ^ | – |
157
+ | aristophanes | δούλαισιν | ^ | δούλη|δοῦλος | 5997 | ^ | ^ |
158
+ | aristophanes | καομέναις | _ | καίω | 3963 | ^ | – |
159
+ | aristophanes | τυφογέροντας | _ | τυφογέρων | 2 | _ | – |
160
+ | aristophanes | τυφογέροντας | _ | τυφογέρων | 2 | ^ | ^ |
161
+ | aristophanes | στελέχηφέροντας | ^ | στέλεχος|φέρω | 28635 | ^ | ^ |
162
+ | aristophanes | βαλανεύσοντας | ^ | βαλανεύω | 5 | ^ | – |
163
+ | aristophanes | βαλανεύσοντας | ^ | βαλανεύω | 5 | ^ | – |
164
+ | aristophanes | πιμπραμένας | ^ | πίμπρημι | 122 | ^ | – |
165
+ | aristophanes | πιμπραμένας | _ | πίμπρημι | 122 | _ | – |
166
+ | aristophanes | ῥυσαμένας | _ | ῥύομαι | 2039 | _ | – |
167
+ | aristophanes | ῥυσαμένας | ^ | ῥύομαι | 2039 | ^ | – |
168
+ | aristophanes | ῥυσαμένας | _ | ῥύομαι | 2039 | _ | – |
169
+ | aristophanes | ὑποπιμπρῇσιν | ^ | ὑποπίμπρημι | 34 | ^ | – |
170
+ | aristophanes | ὑποπιμπρῇσιν | ^ | ὑποπίμπρημι | 34 | ^ | – |
171
+ | aristophanes | καματήριος. | ^ | καματήριος|καματηρός | 33 | ^ | – |
172
+ | aristophanes | καματήριος. | ^ | καματήριος|καματηρός | 33 | ^ | – |
173
+ | aristophanes | καματήριος. | ^ | καματήριος|καματηρός | 33 | ^ | – |
174
+ | aristophanes | ἐξεπάρωσιν | _ | ἐξεπαίρω | 1 | ^ | – |
175
+ | aristophanes | χλιδῶσαν | ^ | χλιδάω | 23 | ^ | – |
176
+ | aristophanes | χλιδῶσαν | ^ | χλιδάω | 23 | ^ | ^ |
177
+ | aristophanes | ἀγλαῶς | _ | ἀγλαός | 293 | _ | _ |
178
+ | aristophanes | ἀγλαῶς | ^ | ἀγλαός | 293 | ^ | ^ |
179
+ | aristophanes | τἀρχηγέτι· | ^ | ἀρχηγέτις|ἀρχηγέτης | 133 | ^ | – |
180
+ | aristophanes | κἀκανηφόρουν | _ | κανηφορέω | 12 | _ | – |
181
+ | aristophanes | κἀκανηφόρουν | ^ | κανηφορέω | 12 | ^ | – |
182
+ | aristophanes | κἀπιδώσειν | _ | ἐπιδίδωμι | 1703 | ^ | – |
183
+ | aristophanes | κἀπιδώσειν | ^ | ἐπιδίδωμι | 1703 | ^ | – |
184
+ | aristophanes | κἀναπτερῶσαι | _ | ἀναπτερόω | 132 | ^ | – |
185
+ | aristophanes | κἀποσείσασθαι | _ | ἀποσείω | 437 | ^ | – |
186
+ | aristophanes | ζωπυρήσεις, | ^ | ζωπυρέω | 61 | ^ | – |
187
+ | aristophanes | ἐκδυώμεθα, | ^ | ἐκδύω | 353 | ^ | ^ |
188
+ | aristophanes | ἐκδυώμεθα, | ^ | ἐκδύω | 353 | ^ | ^ |
189
+ | aristophanes | ὑπερχολῶ | ^ | ὑπερχολάω | 2 | ^ | – |
190
+ | aristophanes | κοὐκέτι | ^ | κοὐκέτι | 1 | ^ | ^ |
191
+ | aristophanes | παρασκευαζόμεσθα | ^ | παρασκευάζω | 4864 | ^ | – |
192
+ | aristophanes | παρασκευαζόμεσθα | ^ | παρασκευάζω | 4864 | ^ | ^ |
193
+ | aristophanes | κἄχομεν | _ | καγχἄνω | 1 | ^ | – |
194
+ | aristophanes | κἀγαθούς. | _ | ἀγαθός | 33788 | ^ | _ |
195
+ | aristophanes | κἀγαθούς. | ^ | ἀγαθός | 33788 | ^ | ^ |
196
+ | aristophanes | Κἄστιν | ^ | εἰμί | 681078 | ^ | – |
197
+ | aristophanes | κανηφορῇ. | ^ | κανηφορέω | 12 | ^ | – |
198
+ | aristophanes | πυρίδια | _ | πυρίδιον | 6 | ^ | – |
199
+ | aristophanes | πυρίδια | ^ | πυρίδιον | 6 | ^ | – |
200
+ | aristophanes | πυρίδια | ^ | πυρίδιον | 6 | ^ | – |
201
+ | aristophanes | πυρίδια | ^ | πυρίδιον | 6 | ^ | ^ |
202
+ | aristophanes | Σμίκυθε | _ | Σμίκυθος | 3 | _ | – |
203
+ | aristophanes | Σμίκυθε | ^ | Σμίκυθος | 3 | ^ | – |
204
+ | aristophanes | παραχορδιεῖς | ^ | παραχορδίζω | 1 | ^ | – |
205
+ | aristophanes | παραχορδιεῖς | ^ | παραχορδίζω | 1 | ^ | – |
206
+ | aristophanes | παραχορδιεῖς | ^ | παραχορδίζω | 1 | ^ | – |
207
+ | aristophanes | ἀσκιδίῳ | ^ | ἀσκίδιον | 1 | ^ | – |
208
+ | aristophanes | ἀσκιδίῳ | ^ | ἀσκίδιον | 1 | ^ | – |
209
+ | aristophanes | κρομμύω | ^ | κρόμμυον | 195 | ^ | ^ |
210
+ | aristophanes | ἐπικτυπῶν | ^ | ἐπικτυπέω | 42 | ^ | – |
211
+ | aristophanes | ἐπαναμενούσας | ^ | ἐπαναμένω | 7 | ^ | – |
212
+ | aristophanes | ἐπαναμενούσας | ^ | ἐπαναμένω | 7 | ^ | – |
213
+ | aristophanes | γναθοῖν | ^ | γνάθος | 349 | ^ | – |
214
+ | aristophanes | ἀνάσιμον | ^ | ἀνάσιμος | 4 | ^ | – |
215
+ | aristophanes | ἀνάσιμον | ^ | ἀνάσιμος | 4 | ^ | – |
216
+ | aristophanes | ἀνάσιμον | _ | ἀνάσιμος | 4 | ^ | _ |
217
+ | aristophanes | καταδραμοῦσα | ^ | κατατρέχω | 527 | ^ | – |
218
+ | aristophanes | καταδραμοῦσα | ^ | κατατρέχω | 527 | ^ | – |
219
+ | aristophanes | καταδραμοῦσα | ^ | κατατρέχω | 527 | ^ | – |
220
+ | aristophanes | καταδραμοῦσα | ^ | κατατρέχω | 527 | ^ | ^ |
221
+ | aristophanes | χρυσοδαίδαλτον | _ | χρυσοδαίδαλτος | 2 | _ | – |
222
+ | aristophanes | ἐγκατακρούων | ^ | ἐγκατακρούω | 1 | ^ | – |
223
+ | aristophanes | ἐγκατακρούων | ^ | ἐγκατακρούω | 1 | ^ | – |
224
+ | aristophanes | κἀπισκώπτων | _ | ἐπισκώπτω | 193 | _ | – |
225
+ | aristophanes | συμπαραστάτει, | ^ | συμπαραστατέω | 3 | ^ | – |
226
+ | aristophanes | συμπαραστάτει, | ^ | συμπαραστατέω | 3 | ^ | ^ |
227
+ | aristophanes | ταινιοῦσθαι. | ^ | ταινιόω | 34 | ^ | – |
228
+ | aristophanes | κατεσχίσω | ^ | κατασχίζω | 152 | ^ | – |
229
+ | aristophanes | κατεσχίσω | ^ | κατασχίζω | 152 | ^ | – |
230
+ | aristophanes | μειρακίσκης | ^ | μειρακίσκη | 2 | ^ | – |
231
+ | aristophanes | συμπαιστρίας, | ^ | συμπαιστρία | 1 | ^ | – |
232
+ | aristophanes | χιτωνίου | ^ | χιτωνίος | 16 | ^ | – |
233
+ | aristophanes | χιτωνίου | ^ | χιτωνίος | 16 | ^ | ^ |
234
+ | aristophanes | παραρραγέντος | ^ | παραρρήγνυμι | 8 | ^ | – |
235
+ | aristophanes | παραρραγέντος | ^ | παραρρήγνυμι | 8 | ^ | – |
236
+ | aristophanes | καλλιχορώτατον, | ^ | καλλίχορος | 35 | ^ | – |
237
+ | aristophanes | καλλιχορώτατον, | ^ | καλλίχορος | 35 | ^ | – |
238
+ | aristophanes | κἀκβάλῃς | ^ | ἐκβάλλω | 4156 | ^ | – |
239
+ | aristophanes | φιλοτιμότεραι | ^ | φιλότιμος | 899 | ^ | – |
240
+ | aristophanes | φιλοτιμότεραι | _ | φιλότιμος | 899 | _ | – |
241
+ | aristophanes | Θρῃκία | ^ | Θρᾴκιος|Θρῄκιος|Θρηΐκιος | 104 | ^ | – |
242
+ | aristophanes | Θρῃκία | _ | Θρᾴκιος|Θρῄκιος|Θρηΐκιος | 104 | _ | ^ |
243
+ | aristophanes | κυκησίτεφροι | ^ | κυκησίτεφρος | 3 | ^ | ^ |
244
+ | aristophanes | κυκησίτεφροι | ^ | κυκησίτεφρος | 3 | _ | – |
245
+ | aristophanes | κἀποδυθῇ | _ | ἀποδύω | 501 | ^ | – |
246
+ | aristophanes | κἀποδυθῇ | ^ | ἀποδύω | 501 | ^ | – |
247
+ | aristophanes | ἀντιτέχνου· | ^ | ἀντίτεχνος | 43 | ^ | – |
248
+ | aristophanes | κορυθαίολα | ^ | κορυθαίολος | 89 | ^ | – |
249
+ | aristophanes | κορυθαίολα | ^ | κορυθαίολος | 89 | ^ | ^ |
250
+ | aristophanes | σκινδαλάμων | ^ | σκινδαλμός|σκινδάλαμος | 10 | ^ | – |
251
+ | aristophanes | σκινδαλάμων | ^ | σκινδαλμός|σκινδάλαμος | 10 | ^ | – |
252
+ | aristophanes | ἀνελισσομένη | ^ | ἀνελίσσω | 171 | ^ | ^ |
253
+ | aristophanes | καταλεπτολογήσει | ^ | καταλεπτολογέω | 1 | ^ | – |
254
+ | aristophanes | καταλεπτολογήσει | ^ | καταλεπτολογέω | 1 | ^ | – |
255
+ | aristophanes | ἀλινδήθρας | ^ | ἀλινδήθρα | 2 | ^ | – |
256
+ | aristophanes | ἀλινδήθρας | _ | ἀλινδήθρα | 2 | _ | _ |
257
+ | bacchylides | στραταγέ | ^ | στρατηγός|στραταγός | 6178 | ^ | – |
258
+ | bacchylides | στραταγέ | _ | στρατηγός|στραταγός | 6178 | ^ | – |
259
+ | bacchylides | ἰοστεφάνων | ^ | ἰοστέφανος | 7 | ^ | – |
260
+ | bacchylides | ἰοστεφάνων | ^ | ἰοστέφανος | 7 | ^ | – |
261
+ | bacchylides | ὑφάνας | ^ | ὑφαίνω | 466 | ^ | ^ |
262
+ | bacchylides | ὑφάνας | _ | ὑφαίνω | 466 | _ | _ |
263
+ | bacchylides | ὑφάνας | _ | ὑφαίνω | 466 | _ | _ |
264
+ | bacchylides | κλεένναν | _ | κλεεννός|κλεινός | 294 | ^ | – |
265
+ | bacchylides | χρυσάμπυκος | _ | χρυσάμπυξ | 21 | _ | _ |
266
+ | bacchylides | χρυσάμπυκος | ^ | χρυσάμπυξ | 21 | ^ | ^ |
267
+ | bacchylides | λιγύφθογγοι | ^ | λιγύφθογγος | 19 | ^ | ^ |
268
+ | bacchylides | ἀκαμάτας | _ | ἀκάματος | 174 | _ | – |
269
+ | bacchylides | ἀκαμάτας | ^ | ἀκάματος | 174 | ^ | – |
270
+ | bacchylides | ἀκαμάτας | ^ | ἀκάματος | 174 | ^ | – |
271
+ | bacchylides | δυσπαίπαλα | ^ | δυσπαίπαλος | 7 | ^ | ^ |
272
+ | bacchylides | κατέχρανεν | ^ | καταχραίνω | 1 | ^ | – |
273
+ | bacchylides | κατέχρανεν | _ | καταχραίνω | 1 | _ | – |
274
+ | bacchylides | κυβερνήταν | ^ | κυβερνή��ης | 1019 | ^ | – |
275
+ | bacchylides | τανισφύρου | ^ | τανίσφυρος | 1 | ^ | – |
276
+ | bacchylides | τανισφύρου | ^ | τανίσφυρος | 1 | ^ | ^ |
277
+ | bacchylides | ἀπλάτοι' | _ | ἀπλάτος | 357 | ^ | – |
278
+ | bacchylides | ἐγχεσπάλου | ^ | ἐγχέσπαλος | 21 | ^ | ^ |
279
+ | bacchylides | προφάνη | ^ | προφαίνω | 533 | ^ | – |
280
+ | bacchylides | καλυκοστεφάνου | ^ | καλυκοστέφανος | 1 | ^ | – |
281
+ | bacchylides | καλυκοστεφάνου | ^ | καλυκοστέφανος | 1 | ^ | – |
282
+ | bacchylides | καλυκοστεφάνου | ^ | καλυκοστέφανος | 1 | ^ | ^ |
283
+ | bacchylides | πλημύρων | _ | πλημύρω|πλημμυρέω|πλημυρέω | 76 | ^ | – |
284
+ | bacchylides | μάτρωας | ^ | μάτρως | 10 | ^ | ^ |
285
+ | bacchylides | καρτερόθυμος | _ | καρτερόθυμος | 19 | _ | _ |
286
+ | bacchylides | μίνυθεν | ^ | μινύθω | 109 | ^ | – |
287
+ | bacchylides | μίνυθεν | _ | μινύθω | 109 | ^ | – |
288
+ | bacchylides | ἀγλαὰν | ^ | ἀγλαὰ | 1 | ^ | – |
289
+ | bacchylides | ἀγλαὰν | _ | ἀγλαὰ | 1 | _ | – |
290
+ | bacchylides | ταλαπενθέος | ^ | ταλαπενθής | 3 | ^ | – |
291
+ | bacchylides | ταλαπενθέος | ^ | ταλαπενθής | 3 | ^ | – |
292
+ | bacchylides | ἀλιγκία | ^ | ἀλίγκιος | 32 | ^ | – |
293
+ | bacchylides | ἀλιγκία | ^ | ἀλίγκιος | 32 | ^ | ^ |
294
+ | bacchylides | ἀλιγκία | _ | ἀλίγκιος | 32 | ^ | ^ |
295
+ | bacchylides | θείμαν | _ | τίθημι | 22244 | _ | – |
296
+ | bacchylides | χλωραύχενα | _ | χλωραύχην | 1 | ^ | ^ |
297
+ | bacchylides | Δαϊάνειραν | _ | Δηιάνειρα|Δηϊάνειρα|Δαϊάνειρα | 120 | ^ | – |
298
+ | bacchylides | Δαϊάνειραν | ^ | Δηιάνειρα|Δηϊάνειρα|Δαϊάνειρα | 120 | ^ | – |
299
+ | bacchylides | Δαϊάνειραν | ^ | Δηιάνειρα|Δηϊάνειρα|Δαϊάνειρα | 120 | ^ | – |
300
+ | bacchylides | νῆϊν | ^ | νῆις | 42 | ^ | ^ |
301
+ | bacchylides | νικάσας | _ | νικάω | 8005 | _ | _ |
302
+ | bacchylides | νικάσας | _ | νικάω | 8005 | _ | ^ |
303
+ | bacchylides | γλυκειᾶν | ^ | γλυκύς | 3764 | ^ | – |
304
+ | contracelsum | φιλόθεε | ^ | φιλόθεος | 229 | ^ | – |
305
+ | cyclops | Βακχίωι. | ^ | Βάκχιος | 9 | ^ | – |
306
+ | dionysiaca | ἐπαυχενίην | ^ | ἐπαυχενῖος | 7 | ^ | – |
307
+ | dionysiaca | ἀνευάξω | ^ | ἀνευάζω | 17 | ^ | – |
308
+ | dioscorides | διαβᾶσά | ^ | διαβαίνω | 2566 | ^ | ^ |
309
+ | dioscorides | διαβᾶσά | ^ | διαβαίνω | 2566 | ^ | ^ |
310
+ | dioscorides | διαβᾶσά | ^ | διαβαίνω | 2566 | ^ | ^ |
311
+ | dioscorides | ἀκλινέως | ^ | ἀκλινής | 196 | ^ | – |
312
+ | dioscorides | ἀπεσπείσθη | ^ | ἀποσπένδω | 21 | ^ | – |
313
+ | enchiridion | ἀποτεύξη, | ^ | ἀποτυγχάνω | 698 | ^ | – |
314
+ | oedipus | προσήμεθα | ^ | πρόσημαι | 5 | ^ | ^ |
315
+ | oedipus | ἀγοραῖσι | ^ | ἀγορά | 3090 | ^ | – |
316
+ | partheneion | στάσειεν | _ | ἵστημι|στάζω | 15352 | ^ | – |
317
+ | partheneion | παγὸν | _ | παγὸς | 543 | ^ | – |
318
+ | partheneion | καναχάποδα | ^ | καναχήπους|καναχάπους | 3 | ^ | – |
319
+ | partheneion | καναχάποδα | ^ | καναχήπους|καναχάπους | 3 | ^ | – |
320
+ | partheneion | καναχάποδα | _ | καναχήπους|καναχάπους | 3 | ^ | – |
321
+ | partheneion | καναχάποδα | ^ | καναχήπους|καναχάπους | 3 | ^ | ^ |
322
+ | plutarchus | κατακρημνιζόμενος | ^ | κατακρημνίζω | 138 | ^ | – |
323
+ | plutarchus | περιτειχιζόμενος | ^ | περιτειχίζω | 124 | ^ | ^ |
324
+ | plutarchus | ῥυσοῦ | _ | ῥυσός | 51 | _ | _ |
325
+ | plutarchus | ὀσφυαλγοῦς | ^ | ὀσφυαλγής | 3 | ^ | – |
326
+ | quintus | ξυλοχοισι | ^ | ξυλοχος | 51 | ^ | – |
327
+ | quintus | ὄβριμου | ^ | ὄβριμος | 170 | ^ | – |
328
+ | supplices | ἀφίκτωρ | ^ | ἀφίκτωρ | 1 | ^ | ^ |
329
+ | thucydides | ἐπιμειγνύντες | ^ | ἐπιμείγνυμι | 130 | ^ | ^ |
analysis/lemma/lemma_analysis.validation.md ADDED
@@ -0,0 +1,353 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Accuracy by silver form and lemma coverage, Norma validation
2
+
3
+ **Status:** the test split is verified: the 122 forms odyCy could not lemmatise were lemmatised by hand (manual_lemmas.tsv). The validation split has not had that check, so its "form and lemma unseen" group is inflated by odyCy failures. Use test.
4
+
5
+ Models: runs/final-v2/seed{1,2,3}; rule-based: results/rule-based-a949b76; silver = oga-macronized-no-norma 5d737f8.
6
+
7
+ odyCy vs OGA lemma on positions whose form is in silver: 1609/2117 = 76.0% agree (diacritics ignored).
8
+
9
+ ### Accuracy by coverage (rule-based counts abstentions as wrong)
10
+
11
+ | group | n | seed1 | seed2 | seed3 | rule-based |
12
+ |---|---:|---:|---:|---:|---:|
13
+ | form seen | 2205 | 95.1 | 95.0 | 94.9 | 74.2 |
14
+ | form unseen, lemma seen | 92 | 90.2 | 91.3 | 89.1 | 42.4 |
15
+ | form and lemma unseen | 201 | 89.1 | 88.6 | 89.1 | 23.4 |
16
+ | **all** | 2498 | 94.5 | 94.4 | 94.2 | 69.0 |
17
+
18
+ ### gold short
19
+
20
+ | group | n | seed1 | seed2 | seed3 | rule-based |
21
+ |---|---:|---:|---:|---:|---:|
22
+ | form seen | 1985 | 97.6 | 97.4 | 97.7 | 76.0 |
23
+ | form unseen, lemma seen | 78 | 97.4 | 98.7 | 97.4 | 46.2 |
24
+ | form and lemma unseen | 173 | 97.7 | 97.1 | 98.8 | 26.0 |
25
+ | **all** | 2236 | 97.6 | 97.4 | 97.8 | 71.1 |
26
+
27
+ ### gold long
28
+
29
+ | group | n | seed1 | seed2 | seed3 | rule-based |
30
+ |---|---:|---:|---:|---:|---:|
31
+ | form seen | 220 | 72.7 | 73.6 | 70.0 | 58.2 |
32
+ | form unseen, lemma seen | 14 | 50.0 | 50.0 | 42.9 | 21.4 |
33
+ | form and lemma unseen | 28 | 35.7 | 35.7 | 28.6 | 7.1 |
34
+ | **all** | 262 | 67.6 | 68.3 | 64.1 | 50.8 |
35
+
36
+ ### Rule-based: coverage and accuracy when it marks
37
+
38
+ | group | n | marked | accuracy on marked |
39
+ |---|---:|---:|---:|
40
+ | form seen | 2205 | 77.6% | 95.7% |
41
+ | form unseen, lemma seen | 92 | 44.6% | 95.1% |
42
+ | form and lemma unseen | 201 | 24.9% | 94.0% |
43
+
44
+ ### Distinct word forms and lemmas per bucket
45
+
46
+ | group | positions | distinct forms | distinct lemmas (odyCy) |
47
+ |---|---:|---:|---:|
48
+ | form seen | 2205 | 1244 | 1001 |
49
+ | form unseen, lemma seen | 92 | 58 | 58 |
50
+ | form and lemma unseen | 201 | 121 | 121 |
51
+
52
+ ### Positions with form and lemma unseen (for manual checking)
53
+
54
+ | source | word | gold | lemma | seed1 | seed2 | seed3 | rule |
55
+ |---|---|---|---|---|---|---|---|
56
+ | aristophanes | κἀπερείδεσθαι | _ | κἀπερείδεμι | ^ | ^ | ^ | – |
57
+ | aristophanes | χἄτεραι | _ | χἄτατος | ^ | _ | ^ | – |
58
+ | aristophanes | κἀποκινδυνεύετον | _ | κἀποκινδυνεύω | ^ | _ | ^ | – |
59
+ | aristophanes | κἀποκινδυνεύετον | ^ | κἀποκινδυνεύω | _ | _ | _ | – |
60
+ | aristophanes | καταφοβεῖσθον, | ^ | καταφοβεῖσθον | ^ | ^ | ^ | – |
61
+ | aristophanes | καταφοβεῖσθον, | ^ | καταφοβεῖσθον | ^ | ^ | ^ | – |
62
+ | aristophanes | παρηκόνηνται. | ^ | παρηκόνηνται | ^ | ^ | ^ | – |
63
+ | aristophanes | ἐπέξιτον, | ^ | ἐπέξια | ^ | ^ | ^ | ^ |
64
+ | aristophanes | σκαριφησμοῖσι | ^ | σκαριφησμός | ^ | ^ | ^ | – |
65
+ | aristophanes | σκαριφησμοῖσι | _ | σκαριφησμός | ^ | ^ | ^ | – |
66
+ | aristophanes | σκαριφησμοῖσι | ^ | σκαριφησμός | ^ | ^ | ^ | ^ |
67
+ | aristophanes | μεγαλοδωρότατε | ^ | μεγαλοδωρότατος | ^ | ^ | ^ | – |
68
+ | aristophanes | μεγαλοδωρότατε | ^ | μεγαλοδωρότατος | ^ | ^ | ^ | – |
69
+ | aristophanes | ἱεραῖσι | ^ | ἱεραῖσι | ^ | ^ | ^ | – |
70
+ | aristophanes | ἱεραῖσι | ^ | ἱεραῖσι | ^ | ^ | ^ | ^ |
71
+ | aristophanes | ἀνερπύσαι. | ^ | ἀνερπύθω | ^ | ^ | ^ | – |
72
+ | aristophanes | ἀνερπύσαι. | ^ | ἀνερπύθω | ^ | ^ | ^ | – |
73
+ | aristophanes | κἀδάπανα | _ | κἀδάπανος | ^ | ^ | ^ | – |
74
+ | aristophanes | κἀδάπανα | ^ | κἀδάπανος | ^ | ^ | ^ | – |
75
+ | aristophanes | κἀδάπανα | ^ | κἀδάπανος | ^ | ^ | ^ | – |
76
+ | aristophanes | κἀδάπανα | ^ | κἀδάπανος | ^ | ^ | ^ | ^ |
77
+ | aristophanes | προσγελάσεται | ^ | προσγελάομαι | ^ | ^ | ^ | – |
78
+ | aristophanes | γυλιαύχενας | ^ | γυλιαύχενας | ^ | ^ | ^ | – |
79
+ | aristophanes | γυλιαύχενας | ^ | γυλιαύχενας | ^ | ^ | ^ | – |
80
+ | aristophanes | γυλιαύχενας | ^ | γυλιαύχενας | ^ | ^ | ^ | ^ |
81
+ | aristophanes | νανοφυεῖς, | _ | νανοφυής | _ | _ | _ | – |
82
+ | aristophanes | νανοφυεῖς, | ^ | νανοφυής | ^ | ^ | ^ | – |
83
+ | aristophanes | ἀποκνήσματα, | ^ | ἀποκνήσματα | ^ | ^ | ^ | – |
84
+ | aristophanes | ἀποκνήσματα, | ^ | ἀποκνήσματα | ^ | ^ | ^ | – |
85
+ | aristophanes | ἀποκνήσματα, | ^ | ἀποκνήσματα | ^ | ^ | ^ | ^ |
86
+ | aristophanes | μηχανοδίφας. | ^ | μηχανοδίφη | ^ | ^ | ^ | – |
87
+ | aristophanes | μηχανοδίφας. | _ | μηχανοδίφη | _ | _ | ^ | – |
88
+ | aristophanes | βατιδοσκόποι | ^ | βατιδοσκόπος | ^ | ^ | ^ | ^ |
89
+ | aristophanes | βατιδοσκόποι | ^ | βατιδοσκόπος | ^ | ^ | ^ | ^ |
90
+ | aristophanes | γραοσόβαι | _ | γραοσόβας | _ | _ | ^ | – |
91
+ | aristophanes | τρυγᾶτ', | ^ | τρυγᾶτ | ^ | ^ | ^ | – |
92
+ | aristophanes | ἡγησόμεσθα | ^ | ἡνγάνω | ^ | ^ | ^ | ^ |
93
+ | aristophanes | ἐκπεπρεμνισμένα | _ | ἐκπεπρεμνισμένα | ^ | ^ | _ | ^ |
94
+ | aristophanes | κἀνθρακίζων | ^ | κἀνθρακίζω | ^ | ^ | ^ | – |
95
+ | aristophanes | οἰδάνοντ'· | ^ | οἰδάνοντ | ^ | ^ | ^ | – |
96
+ | aristophanes | κἀπέχω | _ | κἀπέχω | ^ | ^ | ^ | – |
97
+ | aristophanes | κυκῶμαι· | ^ | κυκῶμαι | ^ | ^ | ^ | ^ |
98
+ | aristophanes | βορβοροτάραξι | ^ | βορβοροτάραξι | ^ | ^ | ^ | – |
99
+ | aristophanes | βορβοροτάραξι | ^ | βορβοροτάραξι | ^ | ^ | ^ | ^ |
100
+ | aristophanes | ἀνατετυρβακώς, | ^ | ἀνατετυρβακώς | ^ | ^ | ^ | – |
101
+ | aristophanes | ἀνατετυρβακώς, | ^ | ἀνατετυρβακώς | ^ | ^ | ^ | – |
102
+ | aristophanes | ἀνατετυρβακώς, | ^ | ἀνατετυρβακώς | ^ | ^ | ^ | – |
103
+ | aristophanes | διδασκοίμην | ^ | διδασκόω | ^ | ^ | ^ | ^ |
104
+ | aristophanes | ἰηπαιωνίσαι | ^ | ἰηπαιωνίζω | ^ | ^ | ^ | – |
105
+ | aristophanes | ἰηπαιωνίσαι | ^ | ἰηπαιωνίζω | ^ | ^ | ^ | – |
106
+ | aristophanes | Ἵππι' | ^ | Ἵππι | ^ | ^ | ^ | – |
107
+ | aristophanes | βαρυδαιμονούντων, | ^ | βαρυδαιμονέω | ^ | ^ | ^ | – |
108
+ | aristophanes | βαρυδαιμονούντων, | ^ | βαρυδαιμονέω | ^ | ^ | ^ | – |
109
+ | aristophanes | χρυσοτρίαιν', | _ | χρυσοτρίαιν | _ | _ | _ | – |
110
+ | aristophanes | χρυσοτρίαιν', | ^ | χρυσοτρίαιν | ^ | ^ | ^ | – |
111
+ | aristophanes | ὦδελφίνων | _ | ὦδελφίνων | _ | ^ | _ | – |
112
+ | aristophanes | Σουνιάρατε, | ^ | Σουνιάρατος | ^ | _ | ^ | – |
113
+ | aristophanes | Σουνιάρατε, | ^ | Σουνιάρατος | ^ | ^ | ^ | – |
114
+ | aristophanes | Σουνιάρατε, | _ | Σουνιάρατος | ^ | ^ | ^ | – |
115
+ | aristophanes | ἀφικοῦ | ^ | ἀφικοῦ | ^ | ^ | ^ | – |
116
+ | aristophanes | ἀφικοῦ | ^ | ἀφικοῦ | ^ | ^ | ^ | ^ |
117
+ | aristophanes | ἐργασάμεν' | ^ | ἐργασάμεν | ^ | ^ | ^ | – |
118
+ | aristophanes | ἐργασάμεν' | ^ | ἐργασάμεν | ^ | ^ | ^ | – |
119
+ | aristophanes | ἡδόμεσθά | ^ | ἡδόμεσθά | ^ | ^ | ^ | ^ |
120
+ | aristophanes | πέπραγας | _ | πέπραγας | _ | _ | _ | _ |
121
+ | aristophanes | πέπραγας | ^ | πέπραγας | ^ | ^ | ^ | ^ |
122
+ | aristophanes | τἀπίλοιπ' | _ | τἀπίλοιπ | ^ | ^ | ^ | – |
123
+ | aristophanes | τἀπίλοιπ' | ^ | τἀπίλοιπ | ^ | ^ | ^ | – |
124
+ | aristophanes | Δωροδοκιστί. | ^ | Δωροδοκιστί | ^ | ^ | ^ | – |
125
+ | aristophanes | κἀξαπατώμενος, | ^ | κἀξαπατάομαι | ^ | ^ | ^ | – |
126
+ | aristophanes | κἀξαπατώμενος, | ^ | κἀξαπατάομαι | ^ | ^ | ^ | – |
127
+ | aristophanes | κεκλόφωσί | ^ | κεκλόφωσί | ^ | ^ | ^ | ^ |
128
+ | aristophanes | καταπαυομένοισιν | ^ | καταπαυομένοισιν | ^ | ^ | ^ | – |
129
+ | aristophanes | καταπαυομένοισιν | ^ | καταπαυομένοισιν | ^ | ^ | ^ | – |
130
+ | aristophanes | ἐννυχίαισι | ^ | ἐννυχίαισι | ^ | ^ | ^ | – |
131
+ | aristophanes | ἐννυχίαισι | ^ | ἐννυχίαισι | ^ | ^ | ^ | – |
132
+ | aristophanes | ἐννυχίαισι | ^ | ἐννυχίαισι | ^ | ^ | ^ | ^ |
133
+ | aristophanes | διεζήτηχ' | ^ | διεζήτηχ | ^ | ^ | ^ | – |
134
+ | aristophanes | Λακρατείδῃ | ^ | Λακρατείδης | ^ | ^ | ^ | – |
135
+ | aristophanes | πατῶσιν | ^ | πατῶσιν | ^ | ^ | ^ | ^ |
136
+ | aristophanes | πατῶσιν | ^ | πατῶσιν | ^ | ^ | ^ | ^ |
137
+ | aristophanes | φιλανθρακέα; | ^ | φιλανθρακέης | ^ | ^ | ^ | – |
138
+ | aristophanes | φιλανθρακέα; | ^ | φιλανθρακέης | ^ | ^ | ^ | – |
139
+ | aristophanes | φιλανθρακέα; | _ | φιλανθρακέης | ^ | ^ | ^ | ^ |
140
+ | aristophanes | λαρκίδιον | ^ | λαρκίδιον | ^ | ^ | ^ | – |
141
+ | aristophanes | λαρκίδιον | ^ | λαρκίδιον | ^ | ^ | ^ | – |
142
+ | aristophanes | σκοτοδασυπυκνότριχά | ^ | σκοτοδασυπυκνότριχά | ^ | ^ | ^ | – |
143
+ | aristophanes | σκοτοδασυπυκνότριχά | ^ | σκοτοδασυπυκνότριχά | ^ | ^ | ^ | – |
144
+ | aristophanes | σκοτοδασυπυκνότριχά | ^ | σκοτοδασυπυκνότριχά | ^ | ^ | ^ | – |
145
+ | aristophanes | σκοτοδασυπυκνότριχά | ^ | σκοτοδασυπυκνότριχά | ^ | ^ | ^ | – |
146
+ | aristophanes | σκοτοδασυπυκνότριχά | ^ | σκοτοδασυπυκνότριχά | ^ | ^ | ^ | ^ |
147
+ | aristophanes | Ἀχαρνική. | ^ | Ἀχαρνική | ^ | ^ | ^ | – |
148
+ | aristophanes | Ἀχαρνική. | ^ | Ἀχαρνική | ^ | _ | ^ | – |
149
+ | aristophanes | ἀνήλατ' | ^ | ἀνήλατ | ^ | ^ | ^ | – |
150
+ | aristophanes | ἀνήλατ' | ^ | ἀνήλατ | ^ | ^ | ^ | – |
151
+ | aristophanes | ἐπανθρακίδες | ^ | ἐπανθρακίς | ^ | ^ | ^ | ^ |
152
+ | aristophanes | ἐπανθρακίδες | ^ | ἐπανθρακίς | ^ | ^ | ^ | ^ |
153
+ | aristophanes | λιπαράμπυκα, | ^ | λιπαράμπυκα | ^ | ^ | ^ | – |
154
+ | aristophanes | λιπαράμπυκα, | ^ | λιπαράμπυκα | ^ | ^ | ^ | – |
155
+ | aristophanes | λιπαράμπυκα, | ^ | λιπαράμπυκα | ^ | ^ | ^ | – |
156
+ | aristophanes | λιπαράμπυκα, | ^ | λιπαράμπυκα | ^ | ^ | ^ | ^ |
157
+ | aristophanes | μάττωσιν, | ^ | μάττωσιν | ^ | ^ | ^ | ^ |
158
+ | aristophanes | ἀγροικότονον, | ^ | ἀγροικότονος | ^ | ^ | ^ | – |
159
+ | aristophanes | κλεψύδρ(α)ν, | ^ | κλεψύδρ(α)ν | ^ | ^ | ^ | – |
160
+ | aristophanes | ξυμπονήσαντα | ^ | ξυμπονέω | ^ | ^ | ^ | ^ |
161
+ | aristophanes | ὑποψωνῶν | ^ | ὑποψωίνω | ^ | ^ | ^ | – |
162
+ | aristophanes | Τραγασαίου· | ^ | Τραγασαίου | ^ | ^ | ^ | – |
163
+ | aristophanes | Τραγασαίου· | ^ | Τραγασαίου | ^ | ^ | ^ | – |
164
+ | aristophanes | ἐγκυκᾶσθαι. | ^ | ἐγκυκᾶσθαι | ^ | ^ | ^ | – |
165
+ | aristophanes | ξυγκατακλινείς, | ^ | ξυγκατακλινείς | ^ | ^ | ^ | – |
166
+ | aristophanes | ξυγκατακλινείς, | ^ | ξυγκατακλινείς | ^ | ^ | ^ | – |
167
+ | aristophanes | ξυγκατακλινείς, | ^ | ξυγκατακλινείς | ^ | ^ | ^ | – |
168
+ | aristophanes | κἀνέτρεπε | _ | κἀνέτρεπε | ^ | ^ | ^ | – |
169
+ | aristophanes | κἀμάχετο | _ | κἀμάχω | ^ | ^ | ^ | – |
170
+ | aristophanes | κἀμάχετο | ^ | κἀμάχω | ^ | ^ | ^ | – |
171
+ | aristophanes | νενόμικάς | ^ | νενόμικάς | ^ | ^ | ^ | ^ |
172
+ | aristophanes | ὀπτωμένας | _ | ὀπτωμένας | _ | _ | _ | – |
173
+ | aristophanes | δειπνητικῶς | ^ | δειπνητικῶς | ^ | ^ | ^ | – |
174
+ | aristophanes | ἀνηύρηκέν | ^ | ἀνηύρηκέν | ^ | ^ | ^ | – |
175
+ | aristophanes | Ἠπιαλῶν | ^ | Ἠπιαλῶν | ^ | ^ | ^ | – |
176
+ | aristophanes | Ἠπιαλῶν | ^ | Ἠπιαλῶν | ^ | ^ | ^ | – |
177
+ | aristophanes | πατάξειέ | ^ | πατάξειέ | ^ | ^ | ^ | ^ |
178
+ | aristophanes | ἔπιθ' | ^ | ἔπιθ | ^ | ^ | ^ | – |
179
+ | aristophanes | πτέρυγά | ^ | πτέρυγα | ^ | ^ | ^ | – |
180
+ | aristophanes | πτέρυγά | ^ | πτέρυγα | ^ | ^ | ^ | ^ |
181
+ | aristophanes | κύκλωσαι· | ^ | κύκλωζω | ^ | ^ | ^ | – |
182
+ | aristophanes | ἐδάκρυσά | ^ | ἐδάκρυσά | ^ | ^ | ^ | – |
183
+ | aristophanes | ἐδάκρυσά | _ | ἐδάκρυσά | _ | ^ | _ | _ |
184
+ | aristophanes | ἐδάκρυσά | ^ | ἐδάκρυσά | ^ | ^ | ^ | ^ |
185
+ | aristophanes | νάπαισί | ^ | νάπαισί | ^ | ^ | ^ | – |
186
+ | aristophanes | νάπαισί | ^ | νάπαισί | ^ | ^ | ^ | ^ |
187
+ | aristophanes | χορεύματ' | ^ | χορεύματ | ^ | ^ | ^ | – |
188
+ | aristophanes | ἀπεβόσκετο | ^ | ἀπεβόσκετο | ^ | ^ | ^ | – |
189
+ | aristophanes | ἐπεκτύπησ' | ^ | ἐπεκτύπησ | ^ | ^ | ^ | – |
190
+ | aristophanes | προβάτιόν | ^ | προβάτιος | ^ | ^ | ^ | – |
191
+ | aristophanes | προβάτιόν | ^ | προβάτιος | ^ | ^ | ^ | – |
192
+ | aristophanes | Ἀποκεκλῄκαμεν | ^ | Ἀποκεκλῄκαμεν | ^ | ^ | ^ | – |
193
+ | aristophanes | Ἀποκεκλῄκαμεν | ^ | Ἀποκεκλῄκαμεν | ^ | ^ | ^ | – |
194
+ | aristophanes | ἐξόρμα | _ | ἐξόρμα | _ | ^ | ^ | – |
195
+ | aristophanes | θαλάττι'. | ^ | θαλάττι'.ς | ^ | ^ | ^ | – |
196
+ | aristophanes | θαλάττι'. | ^ | θαλάττι'.ς | ^ | ^ | ^ | – |
197
+ | aristophanes | ἐπεπτόμεσθα | ^ | ἐπεπτόμεσθα | ^ | ^ | ^ | ^ |
198
+ | aristophanes | ξυναριστῶσι | ^ | ξυναριστάω | ^ | ^ | ^ | ^ |
199
+ | aristophanes | ξυναριστῶσι | _ | ξυναριστάω | ^ | _ | ^ | – |
200
+ | aristophanes | ξυναριστῶσι | ^ | ξυναριστάω | ^ | ^ | ^ | ^ |
201
+ | aristophanes | ξυντυγχάνειν. | ^ | ξυντυγχάνω | ^ | ^ | ^ | ^ |
202
+ | aristophanes | Σκιάποσιν | ^ | Σκιάπο | ^ | ^ | ^ | – |
203
+ | aristophanes | Σκιάποσιν | _ | Σκιάπο | ^ | ^ | ^ | – |
204
+ | aristophanes | προὔλιπε, | ^ | προὔλιπε | ^ | ^ | ^ | – |
205
+ | aristophanes | ��λώτταισι | ^ | γλώτταισι | ^ | ^ | ^ | ^ |
206
+ | aristophanes | διεζητημένους. | ^ | διεζητέω | ^ | ^ | ^ | – |
207
+ | aristophanes | χἤτις | ^ | χἤτις | _ | _ | ^ | _ |
208
+ | aristophanes | χορομανεῖ | ^ | χορομανής | ^ | ^ | ^ | – |
209
+ | aristophanes | εὐάγητον | _ | εὐάγητος | ^ | ^ | ^ | – |
210
+ | aristophanes | βαρυαχέος | ^ | βαρυαχής | ^ | ^ | ^ | – |
211
+ | aristophanes | βαρυαχέος | ^ | βαρυαχής | ^ | ^ | ^ | – |
212
+ | aristophanes | βαρυαχέος | _ | βαρυαχής | ^ | ^ | ^ | – |
213
+ | aristophanes | ἀφορώμεθα | ^ | ἀφορώμεθα | ^ | ^ | ^ | – |
214
+ | aristophanes | ἀφορώμεθα | ^ | ἀφορώμεθα | ^ | ^ | ^ | ^ |
215
+ | aristophanes | ἀρδομέναν | _ | ἀρδομέναν | _ | _ | _ | – |
216
+ | aristophanes | μαρμαρέαισιν | ^ | μαρμαρέαισιν | ^ | ^ | ^ | – |
217
+ | aristophanes | μαρμαρέαισιν | ^ | μαρμαρέαισιν | ^ | ^ | ^ | ^ |
218
+ | aristophanes | ἐρεθίσματα | ^ | ἐρεθίσματον | ^ | ^ | ^ | – |
219
+ | aristophanes | ἐρεθίσματα | ^ | ἐρεθίσματον | ^ | ^ | ^ | ^ |
220
+ | aristophanes | βιοθρέμμονα | ^ | βιοθρέμμων | ^ | ^ | ^ | – |
221
+ | aristophanes | βιοθρέμμονα | ^ | βιοθρέμμων | ^ | ^ | ^ | ^ |
222
+ | aristophanes | ὑπερλάμπροις | ^ | ὑπερλάμπροις | ^ | ^ | ^ | – |
223
+ | aristophanes | διάθρει | ^ | διάθρει | ^ | ^ | ^ | – |
224
+ | aristophanes | διάθρει | ^ | διάθρει | ^ | ^ | ^ | ^ |
225
+ | aristophanes | πισύνω | ^ | πισύνω | ^ | ^ | ^ | ^ |
226
+ | aristophanes | πισύνω | ^ | πισύνω | ^ | ^ | ^ | ^ |
227
+ | aristophanes | γνωμοτύποις | ^ | γνωμοτύποις | ^ | ^ | ^ | ^ |
228
+ | aristophanes | θαμίν' | ^ | θαμίν | ^ | ^ | ^ | – |
229
+ | aristophanes | θαμίν' | ^ | θαμίν | ^ | ^ | ^ | – |
230
+ | aristophanes | ἐπαναβοῶντες | ^ | ἐπαναβοάω | ^ | ^ | ^ | – |
231
+ | aristophanes | ἐπαναβοῶντες | ^ | ἐπαναβοάω | ^ | ^ | ^ | – |
232
+ | aristophanes | κιναβρώντων | ^ | κιναβρώντων | ^ | ^ | ^ | – |
233
+ | aristophanes | κιναβρώντων | ^ | κιναβρώντων | ^ | ^ | ^ | – |
234
+ | aristophanes | φιληδίας | ^ | φιληδία | ^ | ^ | ^ | – |
235
+ | aristophanes | φιληδίας | ^ | φιληδία | ^ | ^ | ^ | – |
236
+ | aristophanes | μολύνουσάν | _ | μολύνου | ^ | ^ | ^ | – |
237
+ | aristophanes | φιληδίας | ^ | φιληδία | ^ | ^ | ^ | – |
238
+ | aristophanes | φιληδίας | ^ | φιληδία | ^ | ^ | ^ | – |
239
+ | aristophanes | ἀνεπείθετ', | ^ | ἀνεπείθετ | ^ | ^ | ^ | – |
240
+ | aristophanes | ἀντιβολοίη | ^ | ἀντιβολοίη | ^ | ^ | ^ | ^ |
241
+ | aristophanes | τὸνχθιζινὸν | ^ | τὸνχθιζνός | ^ | ^ | ^ | – |
242
+ | aristophanes | 'γάθ', | ^ | γάθ | ^ | ^ | ^ | – |
243
+ | aristophanes | κἀποκλείων | _ | κἀποκλέω | ^ | ^ | ^ | – |
244
+ | aristophanes | φαθ' | ^ | φαθ | ^ | ^ | ^ | – |
245
+ | aristophanes | κἀπᾴδομεν | ^ | κἀπᾴδεομι | ^ | _ | ^ | – |
246
+ | aristophanes | νέαισιν | ^ | νέαις | ^ | ^ | ^ | ^ |
247
+ | aristophanes | ᾐσθόμεσθά | ^ | ᾐσθόμεσθά | ^ | ^ | ^ | – |
248
+ | aristophanes | κεὐρυπρωκτίαν. | ^ | κεὐρυπρωκτία | ^ | ^ | ^ | – |
249
+ | aristophanes | κεὐρυπρωκτίαν. | ^ | κεὐρυπρωκτία | ^ | ^ | ^ | – |
250
+ | aristophanes | ἀντιμαθὼν | ^ | ἀντιμανθάνω | _ | ^ | ^ | – |
251
+ | aristophanes | ἀντιμαθὼν | ^ | ἀντιμανθάνω | ^ | ^ | ^ | – |
252
+ | aristophanes | φιλοπατρίαν | ^ | φιλοπατρία | ^ | ^ | ^ | – |
253
+ | aristophanes | φιλοπατρίαν | ^ | φιλοπατρία | ^ | ^ | ^ | – |
254
+ | aristophanes | φιλοπατρίαν | ^ | φιλοπατρία | ^ | ^ | ^ | – |
255
+ | aristophanes | Φιλοκλέωνος. | ^ | Φιλοκλέων | ^ | ^ | ^ | – |
256
+ | aristophanes | ἐπεμάνην | ^ | ἐπεμάνην | _ | ^ | _ | – |
257
+
258
+ ### Positions with form unseen, lemma seen (lemma, silver token count of lemma)
259
+
260
+ | source | word | gold | odyCy lemma | silver count | seed1 | rule |
261
+ |---|---|---|---|---:|---|---|
262
+ | aristophanes | τραγῳδικῆς | ^ | τραγῳδικός | 3 | ^ | – |
263
+ | aristophanes | τραγῳδικῆς | ^ | τραγῳδικός | 3 | ^ | – |
264
+ | aristophanes | αὐτοκράτορ' | ^ | αὐτοκράτορ | 8 | ^ | – |
265
+ | aristophanes | θωπεύουσί | ^ | θωπεύω | 76 | ^ | ^ |
266
+ | aristophanes | συκίδια | _ | συκίδιον | 1 | _ | – |
267
+ | aristophanes | συκίδια | ^ | συκίδιον | 1 | ^ | – |
268
+ | aristophanes | συκίδια | ^ | συκίδιον | 1 | ^ | – |
269
+ | aristophanes | συκίδια | ^ | συκίδιον | 1 | ^ | ^ |
270
+ | aristophanes | ἄσμενα. | ^ | ἄσμενος | 824 | ^ | ^ |
271
+ | aristophanes | ἀντιβολῇ | ^ | ἀντιβολή | 12 | ^ | ^ |
272
+ | aristophanes | σφυράδων | ^ | σφυράς | 8 | ^ | – |
273
+ | aristophanes | σφυράδων | ^ | σφυράς | 8 | ^ | – |
274
+ | aristophanes | κελαδῇ, | ^ | κελαδή | 19 | ^ | – |
275
+ | aristophanes | γηρύσαντος | _ | γηρύω | 13 | _ | – |
276
+ | aristophanes | τραγομάσχαλοι | ^ | τραγομάσχαλος | 2 | ^ | ^ |
277
+ | aristophanes | τραγομάσχαλοι | ^ | τραγομάσχαλος | 2 | ^ | ^ |
278
+ | aristophanes | 'πιβὰς | ^ | πιβαίνω | 1 | ^ | – |
279
+ | aristophanes | φιληδῶ | ^ | φιληδέω | 41 | ^ | – |
280
+ | aristophanes | διέλκων | ^ | διέλκω | 18 | ^ | ^ |
281
+ | aristophanes | ἐμπυρεύων, | ^ | ἐμπυρεύω | 9 | ^ | – |
282
+ | aristophanes | χἄμα | _ | χἄμα | 2 | ^ | – |
283
+ | aristophanes | χἄμα | ^ | χἄμα | 2 | _ | – |
284
+ | aristophanes | χἄμα | _ | χἄμα | 2 | ^ | – |
285
+ | aristophanes | χἄμα | ^ | χἄμα | 2 | _ | – |
286
+ | aristophanes | μαλάξῃς | ^ | μαλάσσω | 442 | ^ | ^ |
287
+ | aristophanes | δωροδόκοισιν | ^ | δωροδόκος | 39 | ^ | ^ |
288
+ | aristophanes | ᾄσαιμι | ^ | ᾄζω | 71 | ^ | ^ |
289
+ | aristophanes | Γεραίστιε | ^ | Γεραίστιος | 3 | ^ | – |
290
+ | aristophanes | Φορμίωνί | ^ | Φορμίων | 190 | ^ | – |
291
+ | aristophanes | Φορμίωνί | ^ | Φορμίων | 190 | ^ | ^ |
292
+ | aristophanes | ἠλιθιάζω. | ^ | ἠλιθιάζω | 1 | ^ | ^ |
293
+ | aristophanes | ἠλιθιάζω. | ^ | ἠλιθιάζω | 1 | ^ | ^ |
294
+ | aristophanes | ἠλιθιάζω. | _ | ἠλιθιάζω | 1 | ^ | – |
295
+ | aristophanes | ἐπιδειπνεῖς. | ^ | ἐπιδειπνέω | 15 | ^ | ^ |
296
+ | aristophanes | σιπύης· | ^ | σιπύα | 1 | ^ | – |
297
+ | aristophanes | σιπύης· | ^ | σιπύα | 1 | ^ | – |
298
+ | aristophanes | καταλεύσομεν, | ^ | καταλεύω | 116 | ^ | ^ |
299
+ | aristophanes | καταλεύσομεν, | ^ | καταλεύω | 116 | ^ | – |
300
+ | aristophanes | ἐξεράσατε. | _ | ἐξεράω | 25 | _ | _ |
301
+ | aristophanes | ἐξεράσατε. | ^ | ἐξεράω | 25 | ^ | ^ |
302
+ | aristophanes | φέψαλος | ^ | φέψαλος | 3 | ^ | ^ |
303
+ | aristophanes | ἀνακυκῶσι | ^ | ἀνακυκάω | 7 | ^ | – |
304
+ | aristophanes | ἀνακυκῶσι | ^ | ἀνακυκάω | 7 | ^ | – |
305
+ | aristophanes | ἀνακυκῶσι | ^ | ἀνακυκάω | 7 | ^ | – |
306
+ | aristophanes | ἀνακυκῶσι | ^ | ἀνακυκάω | 7 | ^ | ^ |
307
+ | aristophanes | πυρορραγὲς | ^ | πυρορραγής | 5 | ^ | – |
308
+ | aristophanes | πυρορραγὲς | ^ | πυρορραγής | 5 | ^ | – |
309
+ | aristophanes | ψοφοῦντι; | ^ | ψοφέω | 325 | ^ | ^ |
310
+ | aristophanes | ὑπέρσοφον, | ^ | ὑπέρσοφος | 3 | ^ | – |
311
+ | aristophanes | κἀμὲ | _ | ἐγώ | 220883 | ^ | _ |
312
+ | aristophanes | σίζουσα | ^ | σίζω | 44 | ^ | ^ |
313
+ | aristophanes | ὁμότροφά | ^ | ὁμότροφος | 7 | ^ | ^ |
314
+ | aristophanes | ἔπαγ' | ^ | ἔπαγ | 22 | ^ | – |
315
+ | aristophanes | συμπαραινέσας | ^ | συμπαραινέω | 4 | ^ | – |
316
+ | aristophanes | συμπαραινέσας | _ | συμπαραινέω | 4 | _ | – |
317
+ | aristophanes | συναυλείτω | ^ | συναυλέω | 4 | ^ | ^ |
318
+ | aristophanes | τἄρα | _ | ἄρα | 40118 | ^ | ^ |
319
+ | aristophanes | τἄρα | ^ | ἄρα | 40118 | ^ | ^ |
320
+ | aristophanes | πολυάνορα | ^ | πολυάνωρ | 1 | ^ | – |
321
+ | aristophanes | πολυάνορα | _ | πολυάνωρ | 1 | ^ | – |
322
+ | aristophanes | πολυάνορα | ^ | πολυάνωρ | 1 | ^ | ^ |
323
+ | aristophanes | συκάζουσί | _ | συκάζω | 8 | _ | – |
324
+ | aristophanes | συκάζουσί | ^ | συκάζω | 8 | ^ | – |
325
+ | aristophanes | συκάζουσί | ^ | συκάζω | 8 | ^ | ^ |
326
+ | aristophanes | παλιντόνους, | ^ | παλιντόνος | 30 | ^ | ^ |
327
+ | aristophanes | τηλεφανεῖς | ^ | τηλεφανής | 19 | ^ | – |
328
+ | aristophanes | εὐστέφανοί | ^ | εὐστέφανος | 51 | ^ | ^ |
329
+ | aristophanes | ἱππονώμαν, | _ | ἱππονώμας | 1 | _ | _ |
330
+ | aristophanes | περιδεξίοισιν | ^ | περιδεξῖος | 47 | ^ | ^ |
331
+ | aristophanes | περιδεξίοισιν | ^ | περιδεξῖος | 47 | ^ | – |
332
+ | aristophanes | βουλήσομαι—θρεττανελο—τὸν | ^ | βούλομαι | 29620 | ^ | – |
333
+ | aristophanes | παρενσαλεύων | ^ | παρενσαλεύω | 1 | ^ | – |
334
+ | aristophanes | παρενσαλεύων | ^ | παρενσαλεύω | 1 | ^ | – |
335
+ | aristophanes | ζητήσομεν—θρεττανελο—τὸν | ^ | ζητέω | 14842 | ^ | – |
336
+ | aristophanes | τοῦ—Φιλωνίδου | ^ | ὁ | 4778749 | ^ | – |
337
+ | aristophanes | τοῦ—Φιλωνίδου | ^ | ὁ | 4778749 | ^ | ^ |
338
+ | aristophanes | γρυλίζοντες | _ | γρυλίζω | 1 | _ | – |
339
+ | aristophanes | ὑποχάσκων | ^ | ὑποχάσκω | 2 | ^ | – |
340
+ | aristophanes | βουβωνιῴη. | ^ | βουβωνιάω | 4 | ^ | – |
341
+ | aristophanes | τἄρα | _ | ἄρα | 40118 | ^ | ^ |
342
+ | aristophanes | τἄρα | ^ | ἄρα | 40118 | ^ | ^ |
343
+ | aristophanes | ἀπαπαῖ | ^ | ἀπαπαῖ | 1 | ^ | ^ |
344
+ | aristophanes | ἀπαπαῖ | ^ | ἀπαπαῖ | 1 | ^ | ^ |
345
+ | aristophanes | ἀπαπαῖ | ^ | ἀπαπαῖ | 1 | ^ | ^ |
346
+ | aristophanes | ἀπαπαῖ | ^ | ἀπαπαῖ | 1 | ^ | ^ |
347
+ | aristophanes | ὕφεσθε | ^ | ὕφω | 2 | ^ | – |
348
+ | aristophanes | μελίττιον. | ^ | μελίττιον | 1 | ^ | – |
349
+ | aristophanes | ἄνοντος | ^ | ἄνων | 2 | ^ | – |
350
+ | aristophanes | ἀντωμοσιῶν | ^ | ἀντωμοσία | 25 | ^ | – |
351
+ | aristophanes | κἄστιν | ^ | εἰμί | 681078 | ^ | ^ |
352
+ | aristophanes | ἀγανῷ | ^ | ἀγανός | 122 | ^ | – |
353
+ | aristophanes | ἀγανῷ | ^ | ἀγανός | 122 | ^ | ^ |
analysis/lemma/manual_lemmas.tsv ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ form lemma_candidates note
2
+ Ἀγιδὼ Ἀγιδώ name
3
+ Ἀγιδῶς Ἀγιδώ name
4
+ ἀκαμαντορόαν ἀκαμαντορόας Doric acc.
5
+ ἀκαμάτας ἀκάματος Doric gen.
6
+ ἀλιγκία ἀλίγκιος
7
+ Ἀλκμήνιος Ἀλκμήνιος
8
+ ἁμίδ' ἁμίς
9
+ ἀμφιλάλοις ἀμφίλαλος
10
+ ἀμφισαλευομένης ἀμφισαλεύω
11
+ ἀναιδομάχαν ἀναιδομάχας
12
+ ἀνασπῶντ' ἀνασπάω
13
+ ἀνευάξω ἀνευάζω
14
+ ἀντιτέχνου ἀντίτεχνος
15
+ ἀπεσπείσθη ἀποσπένδω
16
+ ἀποτεύξη ἀποτυγχάνω
17
+ ἀσκιδίῳ ἀσκίδιον
18
+ ἀτάρβακτος ἀτάρβακτος
19
+ Ἀφάρητα Ἀφάρης name
20
+ Βακχίωι Βάκχιος name
21
+ βαλανεύσοντας βαλανεύω
22
+ βασανίστρια βασανίστρια
23
+ βράδυν' βραδύνω
24
+ γλυκειᾶν γλυκύς Doric gen. pl.
25
+ γναθοῖν γνάθος dual
26
+ Δαϊάνειραν Δηιάνειρα|Δηϊάνειρα|Δαϊάνειρα name
27
+ Δαϊπύλου Δαΐπυλος name
28
+ δημηλασίαν δημηλασία
29
+ δημοκρατούμεθα δημοκρατέω
30
+ διαβᾶσά διαβαίνω
31
+ διασποδῆσαι διασποδέω
32
+ διεστράφην διαστρέφω
33
+ δούλαισιν δούλη|δοῦλος
34
+ ἔβρυκε βρύκω
35
+ ἐγχανοῦνται ἐγχάσκω
36
+ ἐγχεσπάλου ἐγχέσπαλος
37
+ ἐκδυώμεθα ἐκδύω
38
+ ἐκδυώμεθ' ἐκδύω
39
+ ἐντεθριῶσθαι ἐνθριόω|θριόω
40
+ ἐξαύσασα ἐξαύω
41
+ ἐξεπάρωσιν ἐξεπαίρω
42
+ ἐξιπώκατον ἐξιπόω
43
+ ἐπαποδυώμεθ' ἐπαποδύω
44
+ ἐπικτυπῶν ἐπικτυπέω
45
+ ἐρειψιπύλαν ἐρειψίπυλος|ἐρειψιπύλας
46
+ θείμαν τίθημι Doric aor. opt.
47
+ Θρῃκία Θρᾴκιος|Θρῄκιος|Θρηΐκιος
48
+ ἰοστεφάνων ἰοστέφανος
49
+ ἱπποδινήτων ἱπποδίνητος
50
+ κἀγαθούς ἀγαθός crasis
51
+ κἀκανηφόρουν κανηφορέω crasis
52
+ κἀκβάλῃς ἐκβάλλω crasis
53
+ καλλιχορώτατον καλλίχορος
54
+ Καλυδῶν' Καλυδών name
55
+ καλυκοστεφάνου καλυκοστέφανος
56
+ καματήριος καματήριος|καματηρός
57
+ κἀναπτερῶσαι ἀναπτερόω crasis
58
+ καναχάποδα καναχήπους|καναχάπους
59
+ καομέναις καίω Doric ptc.
60
+ κἀπιδώσειν ἐπιδίδωμι crasis
61
+ κἀπισκώπτων ἐπισκώπτω crasis
62
+ κἀποδυθῇ ἀποδύω crasis
63
+ κἀποσείσασθαι ἀποσείω crasis
64
+ Κἄστιν εἰμί crasis
65
+ καταδραμοῦσα κατατρέχω
66
+ κατεσχίσω κατασχίζω
67
+ κατέχρανεν καταχραίνω
68
+ κλεένναν κλεεννός|κλεινός
69
+ κρομμύω κρόμμυον dual
70
+ κυβερνήταν κυβερνήτης Doric acc.
71
+ λεπτοψαμάθων λεπτοψάμαθος
72
+ λιγυκλαγγῆ λιγυκλαγγής
73
+ μεγαλόπετρον μεγαλόπετρος
74
+ μεμυήμεθ' μυέω
75
+ μίνυθεν μινύθω
76
+ νῆϊν νῆις
77
+ Νικοδίκη Νικοδίκη name
78
+ ὄβριμου ὄβριμος
79
+ ὀδυνοσπάδος ὀδυνοσπάς
80
+ ὀξύλαλόν ὀξύλαλος
81
+ ὀσφυαλγοῦς ὀσφυαλγής
82
+ παραινεῖτ' παραινέω
83
+ παραρραγέντος παραρρήγνυμι
84
+ παρασκευαζόμεσθα παρασκευάζω
85
+ παραχορδιεῖς παραχορδίζω
86
+ περιφυσήτω περιφυσάω
87
+ πιμπραμένας πίμπρημι
88
+ πλημύρων πλημύρω|πλημμυρέω|πλημυρέω
89
+ προσήμεθα πρόσημαι
90
+ προστομίων προστόμιον
91
+ προφάνη προφαίνω
92
+ ῥοδόπυγον ῥοδόπυγος
93
+ ῥυσαμένας ῥύομαι
94
+ ῥυσοῦ ῥυσός
95
+ σανδαλίσκον σανδαλίσκος
96
+ σκινδαλάμων σκινδαλμός|σκινδάλαμος
97
+ Σμίκυθε Σμίκυθος name
98
+ σμιλευματοεργοῦ σμιλευματοεργός
99
+ στασάμεθ' ἵστημι
100
+ στάσειεν ἵστημι|στάζω
101
+ στελέχηφέροντας στέλεχος|φέρω two words run together in the edition (στελέχη φέροντας)
102
+ στοματουργός στοματουργός
103
+ στραταγέ στρατηγός|στραταγός Doric voc.
104
+ συμπαραστάτει συμπαραστατέω
105
+ τἀρχηγέτι ἀρχηγέτις|ἀρχηγέτης crasis
106
+ τέθυχ' θύω
107
+ τυφογέροντας τυφογέρων
108
+ ὑπερχολῶ ὑπερχολάω
109
+ ὑποπιμπρῇσιν ὑποπίμπρημι
110
+ ὑφάνας ὑφαίνω
111
+ φιλοτιμότεραι φιλότιμος
112
+ φοινικονώτων φοινικόνωτος
113
+ φυξανορίαν φυξανορία
114
+ φυσητέον φυσάω
115
+ χαλκεόκρανον χαλκεόκρανος
116
+ Χαριτιμίδη Χαριτιμίδης name
117
+ χηστρίδ' χηστρίς
118
+ χλιδῶσαν χλιδάω
119
+ χλωραύχενα χλωραύχην
120
+ χρυσάμπυκος χρυσάμπυξ
121
+ χρυσολόφα χρυσόλοφος
122
+ χρυσόπαχυς χρυσόπηχυς|χρυσόπαχυς
123
+ ψαμμακοσιογάργαρα ψαμμακοσιογάργαρα comic coinage
analysis/lemma/norma_lemmas.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
analysis/lemma/norma_lemmas.py ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """odyCy lemmas for every Norma token, keyed like analysis/silver_overlap.py's per_vowel
2
+ records (split, source, line = record index in <split>.jsonl, tok = index among the
3
+ non-empty whitespace tokens after edge-punctuation stripping).
4
+
5
+ Usage: python norma_lemmas.py NORMA_DIR OUT_JSONL
6
+ """
7
+ import json, os, sys, unicodedata
8
+ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
9
+ from silver_overlap_parse import parse # same tokenisation as silver_overlap.py
10
+ import grc_odycy_joint_trf
11
+
12
+ norma, out = sys.argv[1:3]
13
+ nlp = grc_odycy_joint_trf.load()
14
+ recs = []
15
+ for split in ("test", "validation"):
16
+ for i, line in enumerate(open(os.path.join(norma, split + ".jsonl"), encoding="utf-8")):
17
+ r = json.loads(line)
18
+ if r["task"] == "macronize":
19
+ recs.append((split, r["source"], i, r["text"]))
20
+ plain = [unicodedata.normalize("NFC", t.replace("^", "").replace("_", "")) for *_, t in recs]
21
+ with open(out, "w", encoding="utf-8") as fh:
22
+ for (split, src, i, text), p, doc in zip(recs, plain, nlp.pipe(plain, batch_size=32)):
23
+ # whitespace tokens with char spans in the plain text
24
+ spans, pos = [], 0
25
+ for raw in text.split():
26
+ w = raw.replace("^", "").replace("_", "")
27
+ s = p.index(unicodedata.normalize("NFC", w), pos); pos = s + len(w)
28
+ spans.append((raw, s, pos))
29
+ ti = 0
30
+ for raw, s, e in spans:
31
+ word, _ = parse(raw)
32
+ if not word:
33
+ continue
34
+ # odyCy token covering the first letter of the word
35
+ off = s + next(k for k, c in enumerate(p[s:e]) if unicodedata.category(c)[0] in "LM")
36
+ t = next((t for t in doc if t.idx <= off < t.idx + len(t.text)), None)
37
+ fh.write(json.dumps(dict(split=split, source=src, line=i, tok=ti, word=word,
38
+ lemma=t.lemma_ if t else None, pos=t.pos_ if t else None),
39
+ ensure_ascii=False) + "\n")
40
+ ti += 1
41
+ print("done", len(recs), "records")
analysis/lemma/silver_lemmas.json ADDED
The diff for this file is too large to render. See raw diff
 
analysis/lemma/silver_lemmas.py ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Lemma vocabulary of the silver data (Urdatorn/oga-macronized-no-norma), from the OGA
2
+ CoNLL-U annotation that the macronizer itself used.
3
+
4
+ Each parts/<work>.txt line i is the macronized conllu sentence i of that work (checked:
5
+ equal counts). The HF rows are matched in order against the parts lines (cleaning only
6
+ removed lines), so only sentences that are in the HF data contribute; the 934 sentences
7
+ removed for Norma overlap do not.
8
+
9
+ Usage: python silver_lemmas.py PARTS_DIR CONLLU_DIR HF_DATA_DIR OUT_DIR
10
+ Writes OUT_DIR/silver_lemmas.json {lemma: token count}
11
+ OUT_DIR/silver_form_lemma.json {k_norm(form): {lemma: count}}
12
+ """
13
+ import collections, glob, json, os, sys, unicodedata
14
+ import pyarrow.parquet as pq
15
+
16
+ parts, conllu, data, out = sys.argv[1:5]
17
+ GR = {"̀": "́"}
18
+ def norm(w):
19
+ d = unicodedata.normalize("NFD", w.lower())
20
+ return unicodedata.normalize("NFC", "".join(GR.get(c, c) for c in d))
21
+
22
+ rows = []
23
+ for f in sorted(glob.glob(os.path.join(data, "*.parquet"))):
24
+ rows += pq.read_table(f, columns=["macronized"]).column("macronized").to_pylist()
25
+ print(f"{len(rows):,} HF rows", flush=True)
26
+
27
+ def sentences(path):
28
+ cur = []
29
+ for l in open(path, encoding="utf-8"):
30
+ l = l.rstrip("\n")
31
+ if not l:
32
+ if cur: yield cur; cur = []
33
+ continue
34
+ c = l.split("\t")
35
+ if len(c) >= 3 and not c[0].startswith("#"):
36
+ cur.append((c[1], c[2]))
37
+ if cur: yield cur
38
+
39
+ lem = collections.Counter(); fl = collections.defaultdict(collections.Counter)
40
+ ri = 0; kept = dropped = 0; bad = []
41
+ for pf in sorted(glob.glob(os.path.join(parts, "*.txt"))):
42
+ stem = os.path.basename(pf)[:-4]
43
+ lines = [l.rstrip("\n") for l in open(pf, encoding="utf-8")]
44
+ sents = list(sentences(os.path.join(conllu, stem + ".conllu")))
45
+ if len(lines) != len(sents):
46
+ bad.append((stem, len(lines), len(sents)))
47
+ for l, s in zip(lines, sents):
48
+ if not l.strip():
49
+ continue
50
+ if ri < len(rows) and l == rows[ri]:
51
+ ri += 1; kept += 1
52
+ for form, lemma in s:
53
+ if lemma in ("_", "") or lemma.startswith("["):
54
+ continue
55
+ lemma = unicodedata.normalize("NFC", lemma)
56
+ lem[lemma] += 1; fl[norm(form)][lemma] += 1
57
+ else:
58
+ dropped += 1
59
+ print(f"matched {ri:,}/{len(rows):,} rows; kept {kept:,}, dropped {dropped:,}; works with count mismatch: {len(bad)} {bad[:5]}", flush=True)
60
+ assert ri == len(rows), "not all HF rows matched"
61
+ os.makedirs(out, exist_ok=True)
62
+ json.dump(lem, open(os.path.join(out, "silver_lemmas.json"), "w"), ensure_ascii=False)
63
+ json.dump(fl, open(os.path.join(out, "silver_form_lemma.json"), "w"), ensure_ascii=False)
64
+ print(f"{len(lem):,} lemmas, {len(fl):,} forms")
analysis/silver_overlap_parse.py ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """parse() from silver_overlap.py, importable."""
2
+ import json, sys, unicodedata, collections, glob, os
3
+ APOS = {"'": "’", "ʼ": "’", "᾽": "’", "‘": "’", "᾿": "’"}
4
+ MARK = "^_"
5
+ GRAVE2ACUTE = {"̀": "́"}
6
+
7
+ def nfc(s):
8
+ return unicodedata.normalize("NFC", s)
9
+
10
+
11
+ def parse(tok):
12
+ """marked token -> (plain chars with edge punctuation stripped, {pos: '^'|'_'})"""
13
+ chars, labels = [], {}
14
+ for ch in nfc(tok):
15
+ if ch in MARK:
16
+ if chars:
17
+ labels[len(chars) - 1] = ch
18
+ continue
19
+ chars.append(APOS.get(ch, ch))
20
+ # strip leading/trailing non-letters (keep final elision apostrophe)
21
+ def ok(c):
22
+ return unicodedata.category(c)[0] in "LM"
23
+ s = 0
24
+ while s < len(chars) and not ok(chars[s]):
25
+ s += 1
26
+ e = len(chars)
27
+ while e > s and not ok(chars[e - 1]) and not (chars[e - 1] == "’" and e - 1 > s):
28
+ e -= 1
29
+ # drop trailing punctuation after an apostrophe (e.g. "δ’,")
30
+ chars = chars[s:e]
31
+ labels = {p - s: l for p, l in labels.items() if s <= p < e}
32
+ return "".join(chars), labels
33
+
34
+
logs/lemma-coverage-5754117.out ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [2026-11-25T14:45:39+01:00] job_start id=5754117 host=n59
2
+ The following modules were not unloaded:
3
+ (Use "module --force purge" to unload all):
4
+
5
+ 1) hpc_sysenv/.1 2) hpc/.2.2.0
6
+ [2026-11-25T14:45:39+01:00] 1. silver lemmas
7
+ 2,096,720 HF rows
8
+ matched 2,096,720/2,096,720 rows; kept 2,096,720, dropped 138,034; works with count mismatch: 0 []
9
+ 269,760 lemmas, 1,031,577 forms
10
+ [2026-11-25T14:47:35+01:00] 2. Norma lemmas (odyCy)
11
+ Traceback (most recent call last):
12
+ File "/nobackup/proj/flash/dionysus/personal/cleland/oga-macronizer-char-code/analysis/lemma/norma_lemmas.py", line 9, in <module>
13
+ from silver_overlap_parse import parse # same tokenisation as silver_overlap.py
14
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15
+ File "/nobackup/proj/flash/dionysus/personal/cleland/oga-macronizer-char-code/analysis/silver_overlap_parse.py", line 3, in <module>
16
+ import pyarrow.parquet as pq
17
+ ModuleNotFoundError: No module named 'pyarrow'
18
+ [2026-11-25T14:47:35+01:00] ERROR line=30 command=\"\$repo/.venv-rule/bin/python\"\ analysis/lemma/norma_lemmas.py\ \"\$base/oga-macronized-2026-11/norma_data\"\ \"\$out/norma_lemmas.jsonl\" status=1
logs/lemma-coverage-5754262.out ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [2026-11-25T14:48:54+01:00] job_start id=5754262 host=n59
2
+ The following modules were not unloaded:
3
+ (Use "module --force purge" to unload all):
4
+
5
+ 1) hpc_sysenv/.1 2) hpc/.2.2.0
6
+ [2026-11-25T14:48:54+01:00] 2. Norma lemmas (odyCy)
7
+ /nobackup/proj/flash/dionysus/personal/cleland/oga-macronizer-char-code/.venv-rule/lib/python3.12/site-packages/thinc/shims/pytorch.py:114: FutureWarning: `torch.cuda.amp.autocast(args...)` is deprecated. Please use `torch.amp.autocast('cuda', args...)` instead.
8
+ with torch.cuda.amp.autocast(self._mixed_precision):
9
+ /nobackup/proj/flash/dionysus/personal/cleland/oga-macronizer-char-code/.venv-rule/lib/python3.12/site-packages/thinc/shims/pytorch.py:114: FutureWarning: `torch.cuda.amp.autocast(args...)` is deprecated. Please use `torch.amp.autocast('cuda', args...)` instead.
10
+ with torch.cuda.amp.autocast(self._mixed_precision):
11
+ done 1378 records
12
+ 8716 /nobackup/proj/flash/dionysus/personal/cleland/oga-macronizer-char-code/analysis/lemma/norma_lemmas.jsonl
13
+ {"split": "test", "source": "acharnenses", "line": 0, "tok": 0, "word": "Ὅσα", "lemma": "ὅσος", "pos": "PRON"}
14
+ {"split": "test", "source": "acharnenses", "line": 0, "tok": 1, "word": "δὴ", "lemma": "δή", "pos": "ADV"}
15
+ {"split": "test", "source": "acharnenses", "line": 0, "tok": 2, "word": "δέδηγμαι", "lemma": "δέδηγμαι", "pos": "VERB"}
16
+ [2026-11-25T14:49:33+01:00] job_complete
slurm/lemma_coverage.slurm ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ #SBATCH --job-name=lemma-coverage
3
+ #SBATCH --account=naiss2026-3-353-gpu
4
+ #SBATCH --partition=gpu
5
+ #SBATCH --nodes=1
6
+ #SBATCH --ntasks=1
7
+ #SBATCH --cpus-per-task=4
8
+ #SBATCH --gpus=1
9
+ #SBATCH --mem=48G
10
+ #SBATCH --time=01:30:00
11
+ #SBATCH --output=logs/%x-%j.out
12
+ #SBATCH --error=logs/%x-%j.out
13
+ # Lemma coverage for the reviewer's "unseen lemmas" question:
14
+ # 1. silver lemma vocabulary from the OGA CoNLL-U, restricted to the HF rows (5d737f8)
15
+ # 2. odyCy lemmas for every Norma token
16
+ set -Eeuo pipefail
17
+ trap 'status=$?; printf "[%s] ERROR line=%s command=%q status=%s\n" "$(date --iso-8601=seconds)" "$LINENO" "$BASH_COMMAND" "$status"; exit "$status"' ERR
18
+ repo=/nobackup/proj/flash/dionysus/personal/cleland/oga-macronizer-char-code
19
+ base=/nobackup/proj/flash/dionysus/personal/cleland
20
+ out=$repo/analysis/lemma
21
+ cd "$repo"; mkdir -p logs
22
+ stamp() { printf '[%s] %s\n' "$(date --iso-8601=seconds)" "$*"; }
23
+ stamp "job_start id=$SLURM_JOB_ID host=$(hostname)"
24
+ module purge; module load GPU/Python/3.13.5-bare-gcc-2025b-eb
25
+ export PYTHONUNBUFFERED=1 HF_HUB_DISABLE_PROGRESS_BARS=1
26
+ if [[ ! -f $out/silver_lemmas.json ]]; then stamp "1. silver lemmas"
27
+ "$repo/.venv/bin/python" analysis/lemma/silver_lemmas.py "$base/oga-macronized-2026-11/parts" "$base/oga_conllu" \
28
+ "$base/oga-macronized-2026-11/final/data" "$out"; fi
29
+ stamp "2. Norma lemmas (odyCy)"
30
+ "$repo/.venv-rule/bin/python" analysis/lemma/norma_lemmas.py "$base/oga-macronized-2026-11/norma_data" "$out/norma_lemmas.jsonl"
31
+ wc -l "$out/norma_lemmas.jsonl"; head -3 "$out/norma_lemmas.jsonl"
32
+ stamp "job_complete"