File size: 5,944 Bytes
27f4fb7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
---

license: cc-by-4.0
task_categories:
- text-retrieval
language:
- la
multilinguality:
- monolingual
size_categories:
- 10K<n<100K
pretty_name: Latin Epic Intertextuality Retrieval
tags:
- poetry
- latin
- classical
- epic
- intertextuality
- retrieval
- mteb
- poetrymteb
- embedding-evaluation
annotations_creators:
- expert-generated
source_datasets:
- QuantitativeCriticismLab/NAACL-HLT-2021-Latin-Intertextuality
configs:
- config_name: corpus
  data_files:
  - split: test
    path: corpus/test-*
- config_name: queries
  data_files:
  - split: test
    path: queries/test-*
- config_name: qrels
  data_files:
  - split: test
    path: qrels/test-*
  default: true
dataset_info:
- config_name: corpus
  features:
  - name: id
    dtype: string
  - name: text
    dtype: string
  - name: author
    dtype: string
  - name: work
    dtype: string
  - name: book
    dtype: int64
  - name: line
    dtype: int64
  - name: tess_index
    dtype: string
  splits:
  - name: test
    num_examples: 39675
- config_name: queries
  features:
  - name: id
    dtype: string
  - name: text
    dtype: string
  - name: vf_book
    dtype: int64
  - name: line_start
    dtype: int64
  - name: line_end
    dtype: int64
  - name: query_phrases
    dtype: string
  - name: n_parallels
    dtype: int64
  splits:
  - name: test
    num_examples: 482
- config_name: qrels
  features:
  - name: query-id
    dtype: string
  - name: corpus-id
    dtype: string
  - name: score
    dtype: float64
  splits:
  - name: test
    num_examples: 978
---


# Latin Epic Intertextuality Retrieval

BEIR-style **Retrieval** benchmark for **Latin epic intertextuality** under PoetryMTEB.

Given a passage from Valerius Flaccus, *Argonautica* Book 1, retrieve the corresponding verse line(s) in Vergil (*Aeneid*), Lucan (*Bellum Civile*), Ovid (*Metamorphoses*), or Statius (*Thebaid*) that traditional scholarship identifies as parallels.

Gold parallels: Burns et al., NAACL-HLT 2021 ([paper](https://aclanthology.org/2021.naacl-main.389/); [repo](https://github.com/QuantitativeCriticismLab/NAACL-HLT-2021-Latin-Intertextuality)), **945** curated pairs.

## Dataset Card

| Item | Description |
|------|-------------|
| **Dataset version** | `1.0.0` |
| **Task** | Retrieval (document ranking) |
| **Language** | Latin (`la`) |
| **Query** | VF *Argonautica* 1.x line span (`queries.text`) |
| **Corpus** | Line-level epic verses (Vergil / Lucan / Ovid / Statius) |
| **Relevance** | Scholar-curated parallels (`score=1`); multi-line targets → all lines marked relevant |
| **Splits** | **test only** (MTEB Retrieval) |
| **Size** | corpus=39675; queries=482; qrels=978 |
| **Avg. relevant docs / query** | 2.03 (min=1, max=10) |
| **License** | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) (packaging; classical texts are public domain) |
| **Evaluation metrics** | nDCG@10, MAP, Recall@k |

### Corpus author distribution (documents)

| author | work | #lines |
|--------|------|-------:|
| Ovid | Metamorphoses | 11995 |
| Vergil | Aeneid | 9896 |
| Statius | Thebaid | 9731 |
| Lucan | Bellum Civile | 8053 |

## Configs

### `corpus`

| Field | Type | Description |
|-------|------|-------------|
| `id` | string | `{author_key}-{book}-{line}` (e.g. `vergil-1-1`) |
| `text` | string | **Retrieval document** (Latin verse line) |
| `author` | string | Vergil / Lucan / Ovid / Statius |
| `work` | string | Work title |
| `book` | int64 | Book number |
| `line` | int64 | Line number |
| `tess_index` | string | Original Tesserae-style index |

### `queries`

| Field | Type | Description |
|-------|------|-------------|
| `id` | string | `vf-1-{start}-{end}` |
| `text` | string | **Retrieval query**: concatenated VF Book 1 lines |
| `vf_book` | int64 | Always `1` in this release |
| `line_start` / `line_end` | int64 | Inclusive VF line span |
| `query_phrases` | string | JSON list of lemma/phrase queries from the gold file |
| `n_parallels` | int64 | Number of gold parallels for this span |

### `qrels`

| Field | Type | Description |
|-------|------|-------------|
| `query-id` | string | Matches `queries.id` |
| `corpus-id` | string | Matches `corpus.id` |
| `score` | float64 | `1.0` for gold relevant lines |

## Construction method

1. Load Tesserae-format `.tess` line files for four target epics → `corpus`.
2. Load VF *Argonautica* Book 1 lines; group gold rows in `vf_intertext_dataset_1_0.csv` by `(VF Line Start, VF Line End)`.
3. Query text = concatenated VF lines in the span.
4. For each parallel, mark every target line in `[Intertext Line Start, End]` as relevant.
5. Deduplicate qrels per `(query-id, corpus-id)`.

## How to load

```python

from datasets import load_dataset



corpus = load_dataset("PoetryMTEB/LatinEpicIntertextualityRetrieval", "corpus")["test"]

queries = load_dataset("PoetryMTEB/LatinEpicIntertextualityRetrieval", "queries")["test"]

qrels = load_dataset("PoetryMTEB/LatinEpicIntertextualityRetrieval", "qrels")["test"]



print(queries[0]["id"], queries[0]["text"][:120])

print(corpus[0]["author"], corpus[0]["text"])

```

## Citation

```bibtex

@inproceedings{burns-etal-2021-profiling,

  title     = {Profiling of Intertextuality in {L}atin Literature Using Word Embeddings},

  author    = {Burns, Patrick J. and Brofos, James A. and Li, Kyle and Chaudhuri, Pramit and Dexter, Joseph P.},

  booktitle = {Proceedings of NAACL-HLT 2021},

  year      = {2021},

  pages     = {4900--4907},

  url       = {https://aclanthology.org/2021.naacl-main.389/}

}

```

Upstream: [https://github.com/QuantitativeCriticismLab/NAACL-HLT-2021-Latin-Intertextuality](https://github.com/QuantitativeCriticismLab/NAACL-HLT-2021-Latin-Intertextuality)  
Hub packaging: `PoetryMTEB/LatinEpicIntertextualityRetrieval` (v1.0.0)