lfoppiano commited on
Commit
c87c8cd
·
verified ·
1 Parent(s): b65e309

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +167 -28
README.md CHANGED
@@ -1,36 +1,175 @@
1
  ---
2
  license: cc-by-4.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
4
- # Grobid End 2 End evaluation dataset
5
 
6
- https://grobid.readthedocs.io/en/latest/End-to-end-evaluation/
7
 
8
- Official URL: https://zenodo.org/record/7708580
 
9
 
10
- -----
11
-
12
- Here are the datasets used for GROBID end-to-end benchmarking covering:
13
-
14
- - metadata extraction,
15
-
16
- - bibliographical reference extraction, parsing and citation context identification, and
17
-
18
- - full text body structuring.
19
-
20
- The following collections are included:
21
-
22
- - a PubMedCentral gold-standard dataset called PMC_sample_1943, compiled by Alexandru Constantin. The dataset, around 1.5GB in size, contains 1943 articles from 1943 different journals corresponding to the publications from a 2011 snapshot. For each article, we have a PDF file and a NLM XML file.
23
 
24
- - a bioRxiv dataset called biorxiv-10k-test-2000 of 2000 preprint articles originally compiled with care and published by Daniel Ecer, available on Zenodo. The dataset contains for each article a PDF file and the corresponding reference NLM file (manually created by bioRxiv). The NLM files have been further systematically reviewed and annotated with additional markup corresponding to data and code availability statements and funding statements by the Grobid team. Around 5.4G in size.
25
-
26
- - a set of 1000 PLOS articles, called PLOS_1000, randomly selected from the full PLOS Open Access collection. Again, for each article, the published PDF is available with the corresponding publisher JATS XML file, around 1.3GB total size.
27
-
28
- - a set of 984 articles from eLife, called eLife_984, randomly selected from their open collection available on GitHub. Every articles come with the published PDF, the publisher JATS XML file and the eLife public HTML file (as bonus, not used), all in their latest version, around 4.5G total.
29
-
30
- For each of these datasets, the directory structure is the same and documented here.
31
-
32
- Further information on Grobid benchmarking and how to run it: https://grobid.readthedocs.io/en/latest/End-to-end-evaluation/. Latest benchmarking scores are also available in the Grobid documentation: https://grobid.readthedocs.io/en/latest/Benchmarking/
33
-
34
- These resources are originally published under CC-BY license. Our additional annotations are similarly under CC-BY.
35
 
36
- We thank NIH, bioRxiv, PLOS and eLife for making these resources Open Access and reusable.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: cc-by-4.0
3
+ pretty_name: GROBID End-to-End Evaluation Dataset
4
+ language:
5
+ - en
6
+ size_categories:
7
+ - 1K<n<10K
8
+ annotations_creators:
9
+ - expert-generated
10
+ - machine-generated
11
+ source_datasets:
12
+ - original
13
+ tags:
14
+ - grobid
15
+ - scientific-documents
16
+ - pdf
17
+ - pdf-to-xml
18
+ - tei-xml
19
+ - jats
20
+ - nlm
21
+ - bibliographic-references
22
+ - document-structure
23
+ - information-extraction
24
+ - benchmark
25
  ---
 
26
 
27
+ # GROBID End-to-End Evaluation Dataset
28
 
29
+ Reference corpora used for [GROBID](https://github.com/kermitt2/grobid) end-to-end
30
+ benchmarking of scientific-article structuring.
31
 
32
+ - **Documentation:** https://grobid.readthedocs.io/en/latest/End-to-end-evaluation/
33
+ - **Latest benchmarking scores:** https://grobid.readthedocs.io/en/latest/Benchmarking/
34
+ - **Official archive (Zenodo):** https://zenodo.org/record/7708580
 
 
 
 
 
 
 
 
 
 
35
 
36
+ -----
 
 
 
 
 
 
 
 
 
 
37
 
38
+ ## Dataset summary
39
+
40
+ These are the datasets used for GROBID end-to-end benchmarking, covering:
41
+
42
+ - **metadata extraction** (title, authors, affiliations, abstract, …),
43
+ - **bibliographical reference** extraction, parsing and citation-context
44
+ identification, and
45
+ - **full-text body** structuring.
46
+
47
+ Each collection pairs published PDFs with a gold/reference XML (JATS or NLM) that
48
+ GROBID's output is scored against. In total the dataset contains **~5,927 articles**
49
+ across four collections (~15 GB).
50
+
51
+ ## Collections
52
+
53
+ - **`PMC_sample_1943`** — a PubMedCentral gold-standard dataset compiled by Alexandru
54
+ Constantin, ~1.5 GB, 1943 articles from 1943 different journals (a 2011 snapshot of
55
+ the PMC Open Access Subset). Each article ships a PDF, an NLM XML file, and a PDFX
56
+ v1.9 conversion. See `PMC_sample_1943/__README__` for provenance.
57
+
58
+ - **`biorxiv-10k-test-2000`** — 2000 bioRxiv preprint articles, originally compiled and
59
+ published by Daniel Ecer on Zenodo, ~5.4 GB. Each article ships a PDF and the
60
+ corresponding reference NLM file (created by bioRxiv). The NLM files were further
61
+ systematically reviewed by the GROBID team and annotated with additional markup for
62
+ the four statement types described in
63
+ [Statement-level annotations](#statement-level-annotations) below.
64
+
65
+ - **`PLOS_1000`** — 1000 PLOS articles randomly selected from the full PLOS Open Access
66
+ collection, ~1.3 GB. Each article ships the published PDF and the corresponding
67
+ publisher **JATS** XML file. A `PLOS_1000/download.sh` script records the original PDF
68
+ source URLs.
69
+
70
+ - **`eLife_984`** — 984 articles randomly selected from the eLife open collection on
71
+ GitHub, ~4.5 GB. Each article ships the published PDF, the publisher **JATS** XML
72
+ file, and the eLife public HTML file (included as a bonus; not used in scoring), all
73
+ in their latest version.
74
+
75
+ ## Dataset structure
76
+
77
+ Every collection is a directory of one sub-directory per article. The file naming
78
+ differs slightly per source:
79
+
80
+ ```
81
+ grobid-evaluation-hf/
82
+ ├── PMC_sample_1943/
83
+ │ ├── __README__ # provenance (Constantin, PDFX)
84
+ │ └── <Journal_Year_.../> # one folder per article
85
+ │ ├── <id>.pdf # published PDF
86
+ │ ├── <id>.nxml # NLM reference XML (gold)
87
+ │ └── <id>.pdfx.xml # PDFX v1.9 conversion
88
+ ├── biorxiv-10k-test-2000/
89
+ │ └── <id>v<n>/ # e.g. 002485v1
90
+ │ ├── <id>v<n>.pdf
91
+ │ └── <id>v<n>.xml # NLM reference XML (Grobid-team enriched)
92
+ ├── PLOS_1000/
93
+ │ ├── download.sh # original PDF download URLs
94
+ │ └── <id>/ # e.g. pbio.0020278
95
+ │ ├── <id>.pdf
96
+ │ └── journal.<id>.xml # JATS reference XML (gold)
97
+ └── eLife_984/
98
+ └── <id>/ # e.g. 00013
99
+ ├── elife-<id>-v<n>.pdf
100
+ ├── elife-<id>-v<n>.xml # JATS reference XML (gold)
101
+ └── elife-<id>-v<n>.html # bonus, not used in scoring
102
+ ```
103
+
104
+ ## Statement-level annotations
105
+
106
+ Beyond the publisher-provided body structure, the GROBID end-to-end evaluation scores
107
+ four "statement" fields extracted from the article back matter. Where the source XML
108
+ tags them inconsistently (or not at all), the GROBID team harmonised / added the markup
109
+ — most notably on the bioRxiv NLM files (systematically reviewed and annotated) and via
110
+ a disambiguating `type="contribution"` attribute on PLOS JATS, where `fn-type="con"` is
111
+ reused for both conflict-of-interest and author-contribution footnotes.
112
+
113
+ | Statement | Reference-XML markup recognised | Notes |
114
+ |---|---|---|
115
+ | **Data / code availability** | `//sec[@sec-type="availability"]`, `//p[@content-type="availability"]`, `//sec[@sec-type="data-availability"]` (eLife), `//custom-meta[@id="data-availability"]` (PLOS) | |
116
+ | **Funding** | `//sec[@sec-type="funding"]`, `//p[@content-type="funding"]`, `//funding-statement` (PLOS) | |
117
+ | **Conflict / competing interests** | `//fn[@fn-type="conflict"]`, `//fn-group[@content-type="competing-interest"]`, `//fn[@fn-type="COI"]`, `//sec[@sec-type="COI-statement"]` | |
118
+ | **Author contributions** | `//fn[@type="contribution"]` (team-added disambiguation), `//fn-group[@content-type="author-contribution"]`, `//sec[@sec-type="contribution"]` | a.k.a. CRediT / author contributions |
119
+
120
+ These correspond to GROBID's `availability_stmt`, `funding_stmt`, `conflict_stmt` and
121
+ `contribution_stmt` evaluation fields. Not every article contains every statement; the
122
+ markup is present only where the corresponding statement exists in the source article.
123
+
124
+ ## How to use
125
+
126
+ This dataset is a file tree of PDFs and reference XML — it is **not** a tabular dataset,
127
+ so use `huggingface_hub` to download it rather than `datasets.load_dataset`:
128
+
129
+ ```python
130
+ from huggingface_hub import snapshot_download
131
+
132
+ path = snapshot_download(
133
+ repo_id="<owner>/grobid-evaluation", # replace with the actual repo id
134
+ repo_type="dataset",
135
+ allow_patterns=["PLOS_1000/*"], # optional: fetch one collection
136
+ )
137
+ ```
138
+
139
+ Point GROBID's end-to-end evaluation at the downloaded collection following
140
+ https://grobid.readthedocs.io/en/latest/End-to-end-evaluation/.
141
+
142
+ ## Licensing
143
+
144
+ These resources are originally published under the CC-BY license. The additional
145
+ annotations contributed by the GROBID team (data/code-availability and funding markup
146
+ on the bioRxiv set) are similarly released under **CC-BY 4.0**.
147
+
148
+ We thank NIH/PMC, bioRxiv, PLOS and eLife for making these resources Open Access and
149
+ reusable.
150
+
151
+ ## Citation
152
+
153
+ If you use this dataset, please cite the GROBID end-to-end benchmark archive:
154
+
155
+ ```bibtex
156
+ @dataset{grobid_end_to_end_evaluation,
157
+ title = {GROBID end-to-end evaluation datasets},
158
+ author = {GROBID team},
159
+ year = {2023},
160
+ url = {https://zenodo.org/record/7708580},
161
+ note = {https://grobid.readthedocs.io/en/latest/End-to-end-evaluation/}
162
+ }
163
+ ```
164
+
165
+ The PMC sample additionally derives from:
166
+
167
+ ```bibtex
168
+ @inproceedings{constantin2013pdfx,
169
+ title = {PDFX: fully-automated PDF-to-XML conversion of scientific literature},
170
+ author = {Constantin, Alexandru and Pettifer, Steve and Voronkov, Andrei},
171
+ booktitle = {Proceedings of the 2013 ACM Symposium on Document Engineering},
172
+ year = {2013},
173
+ publisher = {ACM}
174
+ }
175
+ ```