add-tsvs
#1
by
jpwahle
- opened
- .gitattributes +0 -2
- README.md +34 -104
- dblp-discovery-dataset.py +0 -188
.gitattributes
CHANGED
@@ -52,5 +52,3 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
52 |
*.jpg filter=lfs diff=lfs merge=lfs -text
|
53 |
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
54 |
*.webp filter=lfs diff=lfs merge=lfs -text
|
55 |
-
authors.tsv filter=lfs diff=lfs merge=lfs -text
|
56 |
-
papers.tsv filter=lfs diff=lfs merge=lfs -text
|
|
|
52 |
*.jpg filter=lfs diff=lfs merge=lfs -text
|
53 |
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
54 |
*.webp filter=lfs diff=lfs merge=lfs -text
|
|
|
|
README.md
CHANGED
@@ -24,16 +24,8 @@ tags:
|
|
24 |
task_categories:
|
25 |
- other
|
26 |
task_ids: []
|
27 |
-
paperswithcode_id: d3
|
28 |
-
dataset_info:
|
29 |
-
- config_name: papers
|
30 |
-
download_size: 15876152
|
31 |
-
dataset_size: 15876152
|
32 |
-
- config_name: authors
|
33 |
-
download_size: 1177888
|
34 |
-
dataset_size: 1177888
|
35 |
---
|
36 |
-
# Dataset Card for
|
37 |
## Table of Contents
|
38 |
- [Table of Contents](#table-of-contents)
|
39 |
- [Dataset Description](#dataset-description)
|
@@ -59,114 +51,52 @@ dataset_info:
|
|
59 |
- [Citation Information](#citation-information)
|
60 |
- [Contributions](#contributions)
|
61 |
## Dataset Description
|
62 |
-
- **
|
63 |
-
- **
|
64 |
-
- **
|
|
|
|
|
65 |
### Dataset Summary
|
66 |
-
|
67 |
### Supported Tasks and Leaderboards
|
68 |
[More Information Needed]
|
69 |
### Languages
|
70 |
-
|
71 |
## Dataset Structure
|
72 |
### Data Instances
|
73 |
-
|
74 |
-
Papers size: 8.13 GB
|
75 |
-
Authors size: 0.58 GB
|
76 |
### Data Fields
|
77 |
-
|
78 |
-
| Feature | Description |
|
79 |
-
| --- | --- |
|
80 |
-
| `corpusid` | The unique identifier of the paper. |
|
81 |
-
| `externalids` | The same paper in other repositories (e.g., DOI, ACL). |
|
82 |
-
| `title` | The title of the paper. |
|
83 |
-
| `authors` | The authors of the paper with their `authorid` and `name`. |
|
84 |
-
| `venue` | The venue of the paper. |
|
85 |
-
| `year` | The year of the paper publication. |
|
86 |
-
| `publicationdate` | A more precise publication date of the paper. |
|
87 |
-
| `abstract` | The abstract of the paper. |
|
88 |
-
| `outgoingcitations` | The number of references of the paper. |
|
89 |
-
| `ingoingcitations` | The number of citations of the paper. |
|
90 |
-
| `isopenaccess` | Whether the paper is open access. |
|
91 |
-
| `influentialcitationcount` | The number of influential citations of the paper according to SemanticScholar. |
|
92 |
-
| `s2fieldsofstudy` | The fields of study of the paper according to SemanticScholar. |
|
93 |
-
| `publicationtypes` | The publication types of the paper. |
|
94 |
-
| `journal` | The journal of the paper. |
|
95 |
-
| `updated` | The last time the paper was updated. |
|
96 |
-
| `url` | A url to the paper in SemanticScholar. |
|
97 |
-
|
98 |
-
#### Authors
|
99 |
-
| Feature | Description |
|
100 |
-
| --- | --- |
|
101 |
-
| `authorid` | The unique identifier of the author. |
|
102 |
-
| `externalids` | The same author in other repositories (e.g., ACL, PubMed). This can include `ORCID` |
|
103 |
-
| `name` | The name of the author. |
|
104 |
-
| `affiliations` | The affiliations of the author. |
|
105 |
-
| `homepage` | The homepage of the author. |
|
106 |
-
| `papercount` | The number of papers the author has written. |
|
107 |
-
| `citationcount` | The number of citations the author has received. |
|
108 |
-
| `hindex` | The h-index of the author. |
|
109 |
-
| `updated` | The last time the author was updated. |
|
110 |
-
| `email` | The email of the author. |
|
111 |
-
| `s2url` | A url to the author in SemanticScholar. |
|
112 |
### Data Splits
|
113 |
-
|
114 |
-
- `authors`
|
115 |
## Dataset Creation
|
116 |
### Curation Rationale
|
117 |
-
|
118 |
### Source Data
|
119 |
#### Initial Data Collection and Normalization
|
120 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
## Additional Information
|
122 |
### Dataset Curators
|
123 |
-
[
|
124 |
### Licensing Information
|
125 |
-
|
126 |
### Citation Information
|
127 |
-
|
128 |
-
|
129 |
-
@
|
130 |
-
title = {D3: A Massive Dataset of Scholarly Metadata for Analyzing the State of Computer Science Research},
|
131 |
-
author = {Wahle, Jan Philip and Ruas, Terry and Mohammad, Saif M. and Gipp, Bela},
|
132 |
-
year = {2022},
|
133 |
-
month = {July},
|
134 |
-
booktitle = {Proceedings of The 13th Language Resources and Evaluation Conference},
|
135 |
-
publisher = {European Language Resources Association},
|
136 |
-
address = {Marseille, France},
|
137 |
-
doi = {},
|
138 |
-
}
|
139 |
-
```
|
140 |
-
Also make sure to cite the following papers if you use SemanticScholar data:
|
141 |
-
```bib
|
142 |
-
@inproceedings{ammar-etal-2018-construction,
|
143 |
-
title = "Construction of the Literature Graph in Semantic Scholar",
|
144 |
-
author = "Ammar, Waleed and
|
145 |
-
Groeneveld, Dirk and
|
146 |
-
Bhagavatula, Chandra and
|
147 |
-
Beltagy, Iz",
|
148 |
-
booktitle = "Proceedings of the 2018 Conference of the North {A}merican Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 3 (Industry Papers)",
|
149 |
-
month = jun,
|
150 |
-
year = "2018",
|
151 |
-
address = "New Orleans - Louisiana",
|
152 |
-
publisher = "Association for Computational Linguistics",
|
153 |
-
url = "https://aclanthology.org/N18-3011",
|
154 |
-
doi = "10.18653/v1/N18-3011",
|
155 |
-
pages = "84--91",
|
156 |
-
}
|
157 |
-
```
|
158 |
-
```bib
|
159 |
-
@inproceedings{lo-wang-2020-s2orc,
|
160 |
-
title = "{S}2{ORC}: The Semantic Scholar Open Research Corpus",
|
161 |
-
author = "Lo, Kyle and Wang, Lucy Lu and Neumann, Mark and Kinney, Rodney and Weld, Daniel",
|
162 |
-
booktitle = "Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics",
|
163 |
-
month = jul,
|
164 |
-
year = "2020",
|
165 |
-
address = "Online",
|
166 |
-
publisher = "Association for Computational Linguistics",
|
167 |
-
url = "https://www.aclweb.org/anthology/2020.acl-main.447",
|
168 |
-
doi = "10.18653/v1/2020.acl-main.447",
|
169 |
-
pages = "4969--4983"
|
170 |
-
}
|
171 |
-
```### Contributions
|
172 |
-
Thanks to [@jpwahle](https://github.com/jpwahle) for adding this dataset.
|
|
|
24 |
task_categories:
|
25 |
- other
|
26 |
task_ids: []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
---
|
28 |
+
# Dataset Card for [Dataset Name]
|
29 |
## Table of Contents
|
30 |
- [Table of Contents](#table-of-contents)
|
31 |
- [Dataset Description](#dataset-description)
|
|
|
51 |
- [Citation Information](#citation-information)
|
52 |
- [Contributions](#contributions)
|
53 |
## Dataset Description
|
54 |
+
- **Homepage:**
|
55 |
+
- **Repository:**
|
56 |
+
- **Paper:**
|
57 |
+
- **Leaderboard:**
|
58 |
+
- **Point of Contact:**
|
59 |
### Dataset Summary
|
60 |
+
[More Information Needed]
|
61 |
### Supported Tasks and Leaderboards
|
62 |
[More Information Needed]
|
63 |
### Languages
|
64 |
+
[More Information Needed]
|
65 |
## Dataset Structure
|
66 |
### Data Instances
|
67 |
+
[More Information Needed]
|
|
|
|
|
68 |
### Data Fields
|
69 |
+
[More Information Needed]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
### Data Splits
|
71 |
+
[More Information Needed]
|
|
|
72 |
## Dataset Creation
|
73 |
### Curation Rationale
|
74 |
+
[More Information Needed]
|
75 |
### Source Data
|
76 |
#### Initial Data Collection and Normalization
|
77 |
+
[More Information Needed]
|
78 |
+
#### Who are the source language producers?
|
79 |
+
[More Information Needed]
|
80 |
+
### Annotations
|
81 |
+
#### Annotation process
|
82 |
+
[More Information Needed]
|
83 |
+
#### Who are the annotators?
|
84 |
+
[More Information Needed]
|
85 |
+
### Personal and Sensitive Information
|
86 |
+
[More Information Needed]
|
87 |
+
## Considerations for Using the Data
|
88 |
+
### Social Impact of Dataset
|
89 |
+
[More Information Needed]
|
90 |
+
### Discussion of Biases
|
91 |
+
[More Information Needed]
|
92 |
+
### Other Known Limitations
|
93 |
+
[More Information Needed]
|
94 |
## Additional Information
|
95 |
### Dataset Curators
|
96 |
+
[More Information Needed]
|
97 |
### Licensing Information
|
98 |
+
[More Information Needed]
|
99 |
### Citation Information
|
100 |
+
[More Information Needed]
|
101 |
+
### Contributions
|
102 |
+
Thanks to [@github-username](https://github.com/<github-username>) for adding this dataset.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dblp-discovery-dataset.py
DELETED
@@ -1,188 +0,0 @@
|
|
1 |
-
# coding=utf-8
|
2 |
-
#
|
3 |
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4 |
-
# you may not use this file except in compliance with the License.
|
5 |
-
# You may obtain a copy of the License at
|
6 |
-
#
|
7 |
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8 |
-
#
|
9 |
-
# Unless required by applicable law or agreed to in writing, software
|
10 |
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11 |
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12 |
-
# See the License for the specific language governing permissions and
|
13 |
-
# limitations under the License.
|
14 |
-
|
15 |
-
# Lint as: python3
|
16 |
-
"""D3: A Massive Dataset of Scholarly Metadata for Analyzing Computer Science Research"""
|
17 |
-
|
18 |
-
import json
|
19 |
-
import os
|
20 |
-
from typing import Any, Dict, Generator, List, Optional, Tuple, Union
|
21 |
-
|
22 |
-
import datasets
|
23 |
-
from lxml import etree
|
24 |
-
|
25 |
-
logger = datasets.logging.get_logger(__name__)
|
26 |
-
|
27 |
-
|
28 |
-
_CITATION = """\
|
29 |
-
@inproceedings{wahle-etal-2022-d3,
|
30 |
-
title = "D3: A Massive Dataset of Scholarly Metadata for Analyzing the State of Computer Science Research",
|
31 |
-
author = "Wahle, Jan Philip and
|
32 |
-
Ruas, Terry and
|
33 |
-
Mohammad, Saif and
|
34 |
-
Gipp, Bela",
|
35 |
-
booktitle = "Proceedings of the Thirteenth Language Resources and Evaluation Conference",
|
36 |
-
month = jun,
|
37 |
-
year = "2022",
|
38 |
-
address = "Marseille, France",
|
39 |
-
publisher = "European Language Resources Association",
|
40 |
-
url = "https://aclanthology.org/2022.lrec-1.283",
|
41 |
-
pages = "2642--2651",
|
42 |
-
abstract = "DBLP is the largest open-access repository of scientific articles on computer science and provides metadata associated with publications, authors, and venues. We retrieved more than 6 million publications from DBLP and extracted pertinent metadata (e.g., abstracts, author affiliations, citations) from the publication texts to create the DBLP Discovery Dataset (D3). D3 can be used to identify trends in research activity, productivity, focus, bias, accessibility, and impact of computer science research. We present an initial analysis focused on the volume of computer science research (e.g., number of papers, authors, research activity), trends in topics of interest, and citation patterns. Our findings show that computer science is a growing research field (15{\%} annually), with an active and collaborative researcher community. While papers in recent years present more bibliographical entries in comparison to previous decades, the average number of citations has been declining. Investigating papers{'} abstracts reveals that recent topic trends are clearly reflected in D3. Finally, we list further applications of D3 and pose supplemental research questions. The D3 dataset, our findings, and source code are publicly available for research purposes.",
|
43 |
-
}
|
44 |
-
"""
|
45 |
-
|
46 |
-
_DESCRIPTION = """This repository provides metadata to papers from DBLP."""
|
47 |
-
|
48 |
-
_HOMEPAGE = "https://github.com/jpwahle/lrec22-d3-dataset"
|
49 |
-
|
50 |
-
_LICENSE = (
|
51 |
-
"DBLP Discovery Dataset (D3) is licensed under a Creative Commons"
|
52 |
-
" Attribution-NonCommercial-ShareAlike 4.0 International License."
|
53 |
-
)
|
54 |
-
|
55 |
-
_URLS = [
|
56 |
-
"https://zenodo.org/record/7071698/files/2022-11-30-authors.jsonl.gz?download=1"
|
57 |
-
"https://zenodo.org/record/7071698/files/2022-11-30-papers.jsonl.gz?download=1",
|
58 |
-
]
|
59 |
-
|
60 |
-
|
61 |
-
class D3Config(datasets.BuilderConfig):
|
62 |
-
"""BuilderConfig for GLUE."""
|
63 |
-
|
64 |
-
def __init__(
|
65 |
-
self,
|
66 |
-
features,
|
67 |
-
data_url,
|
68 |
-
data_dir,
|
69 |
-
**kwargs,
|
70 |
-
):
|
71 |
-
super(D3Config, self).__init__(
|
72 |
-
version=datasets.Version("2.0.0", ""), **kwargs
|
73 |
-
)
|
74 |
-
self.features = features
|
75 |
-
self.data_url = data_url
|
76 |
-
self.data_dir = data_dir
|
77 |
-
|
78 |
-
|
79 |
-
class D3(datasets.GeneratorBasedBuilder):
|
80 |
-
"""D3 dataset."""
|
81 |
-
|
82 |
-
BUILDER_CONFIGS = [
|
83 |
-
D3Config(
|
84 |
-
name="papers",
|
85 |
-
features={
|
86 |
-
"corpusid": datasets.Value("int64"),
|
87 |
-
"title": datasets.Value("string"),
|
88 |
-
"authors": datasets.Sequence(
|
89 |
-
{
|
90 |
-
"authorId": datasets.Value("int64"),
|
91 |
-
"name": datasets.Value("string"),
|
92 |
-
}
|
93 |
-
),
|
94 |
-
"venue": datasets.Value("string"),
|
95 |
-
"year": datasets.Value("int16"),
|
96 |
-
"publicationdate": datasets.Value("string"),
|
97 |
-
"abstract": datasets.Value("string"),
|
98 |
-
"referencecount": datasets.Value("int64"),
|
99 |
-
"citationcount": datasets.Value("int64"),
|
100 |
-
"isopenaccess": datasets.Value("bool"),
|
101 |
-
"influentialcitationcount": datasets.Value("int64"),
|
102 |
-
"s2fieldsofstudy": datasets.Sequence(
|
103 |
-
{
|
104 |
-
"category": datasets.Value("string"),
|
105 |
-
"source": datasets.Value("string"),
|
106 |
-
}
|
107 |
-
),
|
108 |
-
"publicationtypes": datasets.Sequence(
|
109 |
-
datasets.Value("string")
|
110 |
-
),
|
111 |
-
"journal": datasets.Value("string"),
|
112 |
-
"updated": datasets.Value("string"),
|
113 |
-
"url": datasets.Value("string"),
|
114 |
-
"externalids": {
|
115 |
-
"ACL": datasets.Value("string"),
|
116 |
-
"DBLP": datasets.Value("string"),
|
117 |
-
"ArXiv": datasets.Value("string"),
|
118 |
-
"MAG": datasets.Value("string"),
|
119 |
-
"CorpusId": datasets.Value("string"),
|
120 |
-
"PubMed": datasets.Value("string"),
|
121 |
-
"DOI": datasets.Value("string"),
|
122 |
-
"PubMedCentral": datasets.Value("string"),
|
123 |
-
},
|
124 |
-
"syntactic": datasets.Sequence(datasets.Value("string")),
|
125 |
-
"semantic": datasets.Sequence(datasets.Value("string")),
|
126 |
-
"union": datasets.Sequence(datasets.Value("string")),
|
127 |
-
"enhanced": datasets.Sequence(datasets.Value("string"))
|
128 |
-
},
|
129 |
-
data_url="https://zenodo.org/record/7071698/files/2022-11-30-papers.jsonl.gz?download=1",
|
130 |
-
data_dir="papers",
|
131 |
-
),
|
132 |
-
D3Config(
|
133 |
-
name="authors",
|
134 |
-
features={
|
135 |
-
"authorid": datasets.Value("int64"),
|
136 |
-
"name": datasets.Value("string"),
|
137 |
-
"homepage": datasets.Value("string"),
|
138 |
-
"papercount": datasets.Value("int64"),
|
139 |
-
"citationcount": datasets.Value("int64"),
|
140 |
-
"hindex": datasets.Value("int64"),
|
141 |
-
"aliases": datasets.Sequence(datasets.Value("string")),
|
142 |
-
"affiliations": datasets.Sequence(datasets.Value("string")),
|
143 |
-
"updated": datasets.Value("string"),
|
144 |
-
"s2url": datasets.Value("string"),
|
145 |
-
"externalids": {
|
146 |
-
"DBLP": datasets.Value("string"),
|
147 |
-
"ORCID": datasets.Value("string"),
|
148 |
-
}
|
149 |
-
},
|
150 |
-
data_url="https://zenodo.org/record/7071698/files/2022-11-30-authors.jsonl.gz?download=1",
|
151 |
-
data_dir="authors",
|
152 |
-
),
|
153 |
-
]
|
154 |
-
|
155 |
-
def _info(self):
|
156 |
-
features = datasets.Features(self.config.features)
|
157 |
-
|
158 |
-
return datasets.DatasetInfo(
|
159 |
-
description=_DESCRIPTION,
|
160 |
-
features=features,
|
161 |
-
homepage=_HOMEPAGE,
|
162 |
-
license=_LICENSE,
|
163 |
-
citation=_CITATION,
|
164 |
-
)
|
165 |
-
|
166 |
-
def _split_generators(self, dl_manager):
|
167 |
-
data_file = dl_manager.download_and_extract(self.config.data_url)
|
168 |
-
return [
|
169 |
-
datasets.SplitGenerator(
|
170 |
-
name=datasets.Split.TRAIN,
|
171 |
-
gen_kwargs={
|
172 |
-
"filepaths": dl_manager.iter_files(data_file),
|
173 |
-
"split": "train",
|
174 |
-
},
|
175 |
-
),
|
176 |
-
]
|
177 |
-
|
178 |
-
def _generate_examples(self, filepaths, split):
|
179 |
-
"""Yields examples."""
|
180 |
-
for train_files in filepaths:
|
181 |
-
with open(train_files, encoding="utf-8") as f:
|
182 |
-
for id_, row in enumerate(f):
|
183 |
-
data = json.loads(row)
|
184 |
-
# For none open access papers, the abstract is not in the dataset
|
185 |
-
# Replace it with an empty string
|
186 |
-
if "abstract" not in data and self.config.name == "papers":
|
187 |
-
data["abstract"] = ""
|
188 |
-
yield id_, data
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|