Dataset Viewer
Auto-converted to Parquet Duplicate
query-id
stringclasses
503 values
corpus-id
stringlengths
6
6
score
float64
1
1
1
P04047
1
1
P04038
1
1
P04003
1
1
P03976
1
1
P04018
1
1
P04055
1
1
P04117
1
1
P03963
1
1
P04064
1
1
P03970
1
2
P05188
1
2
P05197
1
2
P05282
1
2
P05274
1
2
P05220
1
2
P05256
1
2
P05152
1
2
P05235
1
2
P05242
1
2
P05224
1
3
P07009
1
3
P07017
1
3
K20780
1
3
P07005
1
3
P07021
1
3
P07003
1
3
K17259
1
3
P07020
1
3
P07008
1
3
P06975
1
4
P09712
1
4
K16534
1
4
P09731
1
4
P09719
1
4
P09710
1
4
P09671
1
4
P09668
1
4
P09670
1
4
P09686
1
4
P09685
1
5
P05944
1
5
P05922
1
5
P05902
1
5
P05924
1
5
P05920
1
5
P05943
1
5
P05911
1
5
P05935
1
5
P05941
1
5
P05888
1
6
P05769
1
6
P05776
1
6
P05794
1
6
P05789
1
6
P05764
1
6
P05827
1
6
P05785
1
6
P05762
1
6
P05826
1
6
P05825
1
7
P08478
1
7
P08558
1
7
P08518
1
7
P08537
1
7
P08561
1
7
P08551
1
7
P08585
1
7
P08523
1
7
P08480
1
7
P08473
1
8
P03214
1
8
P03149
1
8
P03201
1
8
P03135
1
8
K04376
1
8
P03140
1
8
P03150
1
8
P03194
1
8
P03200
1
8
P03179
1
9
P09446
1
9
P09409
1
9
P09430
1
9
P09383
1
9
P09498
1
9
P09457
1
9
P09378
1
9
P09419
1
9
P09462
1
9
P09380
1
10
P06201
1
10
P06180
1
10
P06224
1
10
P06232
1
10
P06209
1
10
P06200
1
10
P06193
1
10
P06205
1
10
P06186
1
10
K04036
1
End of preview. Expand in Data Studio

Classical Poetry Allusions Retrieval

Retrieval benchmark for classical Chinese poetic allusions (用典) under PoetryMTEB / MTEB BEIR-style evaluation.

Given an allusion source query (典源词 + 典源内容), retrieve poem/verse examples that instantiate related allusion forms (典形词例句).

Upstream knowledge base: Ancient-Chinese-Allusion-Resource-Database (莫凯洁等, 中文信息学报, 2024).

Dataset Card

Item Description
Dataset version (PoetryMTEB) 1.0.0
Task Retrieval (document ranking)
Languages Classical Chinese / Chinese (zh)
Query Allusion source term + source passage (queries.text)
Corpus Poem/verse example sentences using related allusion forms
Relevance Same-allusion sampled examples (score=1)
Splits test only for all configs (MTEB Retrieval)
Size corpus=4838; queries=503; qrels=5013
Avg. relevant docs / query 9.97
Evaluation metrics nDCG@10, MAP, Recall@k (MTEB Retrieval)

Sampling (prior packaging, preserved)

  • Prefer diverse keyword examples per allusion.
  • Drop allusions with fewer than 10 examples; keep up to 10 examples per allusion.

Configs

corpus (documents)

Field Type Description
id string Document id (e.g. P04047)
text string Retrieval document (poem/verse sentence; formerly sentence)
keyword string Trigger allusion keyword in the sentence
source string Bibliographic / poem attribution

queries

Field Type Description
id string Query id
text string Retrieval query: source_term + newline + source_content
source_term string 典源词 (allusion name; formerly Source_Term)
source_content string 典源内容 (source passage; formerly Source_Content)
derived_list string JSON string of 衍生列表 (formerly Derived_List)

qrels

Field Type Description
query-id string Matches queries.id
corpus-id string Matches corpus.id
score float64 Relevance (1.0 for positive pairs)

How to load

from datasets import load_dataset

corpus = load_dataset("PoetryMTEB/ClassicalPoetryAllusionsRetrieval", "corpus")["test"]
queries = load_dataset("PoetryMTEB/ClassicalPoetryAllusionsRetrieval", "queries")["test"]
qrels = load_dataset("PoetryMTEB/ClassicalPoetryAllusionsRetrieval", "qrels")["test"]

print(queries[0]["source_term"])
print(queries[0]["text"][:200])
print(corpus[0]["text"], corpus[0]["keyword"])

Construction method

  1. Load existing Hub corpus / queries / qrels test parquet.
  2. Strip HTML <u> tags; add MTEB-standard text fields.
  3. Snake-case query metadata (source_term, source_content, derived_list).
  4. Write BEIR-style configs + Dataset Card + supporting materials.

Supporting materials

Path Content
VERSION / LICENSE / CITATION.* / metadata.json Packaging metadata
checksums.sha256 File checksums
scripts/evaluate_allusions_retrieval.py Baseline BM25-style lexical probe (optional)

Citation

@article{Kaijie2024,
  title   = {古汉语典故资源库的构建及应用研究},
  author  = {莫凯洁 and 丘子靓 and 王予沛 and 胡韧奋},
  journal = {中文信息学报},
  year    = {2024},
  pages   = {27--34}
}

Upstream: https://github.com/KaijieMo-kj/Ancient-Chinese-Allusion-Resource-Database
This packaging: PoetryMTEB/ClassicalPoetryAllusionsRetrieval (version 1.0.0)

License

Follow the upstream GitHub project terms. Marked unknown on Hub pending explicit SPDX on the source repo.


古诗词典故检索(中文说明)

BEIR 式 Retrieval:用典源(典源词+典源内容)检索相关诗词例句。
corpus=4838 / queries=503 / qrels=5013(仅 test)。

Downloads last month
121

Collection including PoetryMTEB/ClassicalPoetryAllusionsRetrieval