Commit
·
7374fac
1
Parent(s):
a245956
fix
Browse files- lotus_deep_research.py → DeepScholarBench.py +29 -85
- README.md +81 -21
- usage_example.py +6 -6
lotus_deep_research.py → DeepScholarBench.py
RENAMED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
"""
|
| 2 |
-
|
| 3 |
|
| 4 |
This dataset contains academic papers from ArXiv with their related works sections and recovered citations,
|
| 5 |
providing a rich resource for research generation and citation analysis tasks.
|
|
@@ -24,7 +24,7 @@ _CITATION = """\
|
|
| 24 |
title={DeepScholar-Bench: A Live Benchmark and Automated Evaluation for Generative Research Synthesis},
|
| 25 |
author={Liana Patel and Negar Arabzadeh and Harshit Gupta and Ankita Sundar and Ion Stoica and Matei Zaharia and Carlos Guestrin},
|
| 26 |
year={2025},
|
| 27 |
-
eprint={
|
| 28 |
archivePrefix={arXiv},
|
| 29 |
primaryClass={cs.CL},
|
| 30 |
url={https://arxiv.org/abs/2508.20033},
|
|
@@ -42,18 +42,18 @@ _URLS = {
|
|
| 42 |
}
|
| 43 |
|
| 44 |
|
| 45 |
-
class
|
| 46 |
-
"""BuilderConfig for
|
| 47 |
|
| 48 |
def __init__(self, name: str, description: str, **kwargs):
|
| 49 |
-
"""BuilderConfig for
|
| 50 |
|
| 51 |
Args:
|
| 52 |
name: Configuration name
|
| 53 |
description: Description of this configuration
|
| 54 |
**kwargs: Additional keyword arguments
|
| 55 |
"""
|
| 56 |
-
super(
|
| 57 |
name=name,
|
| 58 |
description=description,
|
| 59 |
version=datasets.Version("1.0.0"),
|
|
@@ -61,31 +61,31 @@ class LotusDeepResearchConfig(datasets.BuilderConfig):
|
|
| 61 |
)
|
| 62 |
|
| 63 |
|
| 64 |
-
class
|
| 65 |
-
"""
|
| 66 |
|
| 67 |
VERSION = datasets.Version("1.0.0")
|
| 68 |
|
| 69 |
BUILDER_CONFIGS = [
|
| 70 |
-
|
| 71 |
name="papers",
|
| 72 |
description="Academic papers with extracted related works sections (63 papers)",
|
| 73 |
),
|
| 74 |
-
|
| 75 |
name="citations",
|
| 76 |
description="Recovered citations with metadata (1630 citations)",
|
| 77 |
),
|
| 78 |
-
|
| 79 |
name="important_citations",
|
| 80 |
-
description="Important citations with metadata (1050 citations)",
|
| 81 |
),
|
| 82 |
-
|
| 83 |
name="full",
|
| 84 |
-
description="Complete dataset with
|
| 85 |
),
|
| 86 |
]
|
| 87 |
|
| 88 |
-
DEFAULT_CONFIG_NAME = "
|
| 89 |
|
| 90 |
def _info(self) -> datasets.DatasetInfo:
|
| 91 |
"""Return the dataset info."""
|
|
@@ -161,74 +161,8 @@ class LotusDeepResearch(datasets.GeneratorBasedBuilder):
|
|
| 161 |
})
|
| 162 |
else: # full config
|
| 163 |
features = datasets.Features({
|
| 164 |
-
|
| 165 |
-
"
|
| 166 |
-
"arxiv_id": datasets.Value("string"),
|
| 167 |
-
"title": datasets.Value("string"),
|
| 168 |
-
"authors": datasets.Value("string"),
|
| 169 |
-
"abstract": datasets.Value("string"),
|
| 170 |
-
"categories": datasets.Value("string"),
|
| 171 |
-
"published_date": datasets.Value("string"),
|
| 172 |
-
"updated_date": datasets.Value("string"),
|
| 173 |
-
"abs_url": datasets.Value("string"),
|
| 174 |
-
"arxiv_link": datasets.Value("string"),
|
| 175 |
-
"publication_date": datasets.Value("string"),
|
| 176 |
-
"raw_latex_related_works": datasets.Value("string"),
|
| 177 |
-
"clean_latex_related_works": datasets.Value("string"),
|
| 178 |
-
"pdf_related_works": datasets.Value("string"),
|
| 179 |
-
}),
|
| 180 |
-
# Citations features
|
| 181 |
-
"citations": datasets.Sequence({
|
| 182 |
-
"parent_paper_title": datasets.Value("string"),
|
| 183 |
-
"parent_paper_arxiv_id": datasets.Value("string"),
|
| 184 |
-
"citation_shorthand": datasets.Value("string"),
|
| 185 |
-
"raw_citation_text": datasets.Value("string"),
|
| 186 |
-
"cited_paper_title": datasets.Value("string"),
|
| 187 |
-
"cited_paper_arxiv_link": datasets.Value("string"),
|
| 188 |
-
"cited_paper_abstract": datasets.Value("string"),
|
| 189 |
-
"has_metadata": datasets.Value("bool"),
|
| 190 |
-
"is_arxiv_paper": datasets.Value("bool"),
|
| 191 |
-
"bib_paper_authors": datasets.Value("string"),
|
| 192 |
-
"bib_paper_year": datasets.Value("float32"),
|
| 193 |
-
"bib_paper_month": datasets.Value("string"),
|
| 194 |
-
"bib_paper_url": datasets.Value("string"),
|
| 195 |
-
"bib_paper_doi": datasets.Value("string"),
|
| 196 |
-
"bib_paper_journal": datasets.Value("string"),
|
| 197 |
-
"original_title": datasets.Value("string"),
|
| 198 |
-
"search_res_title": datasets.Value("string"),
|
| 199 |
-
"search_res_url": datasets.Value("string"),
|
| 200 |
-
"search_res_content": datasets.Value("string"),
|
| 201 |
-
}),
|
| 202 |
-
"important_citations": datasets.Sequence({
|
| 203 |
-
"parent_paper_title": datasets.Value("string"),
|
| 204 |
-
"parent_paper_arxiv_id": datasets.Value("string"),
|
| 205 |
-
"citation_shorthand": datasets.Value("string"),
|
| 206 |
-
"raw_citation_text": datasets.Value("string"),
|
| 207 |
-
"cited_paper_title": datasets.Value("string"),
|
| 208 |
-
"cited_paper_arxiv_link": datasets.Value("string"),
|
| 209 |
-
"cited_paper_abstract": datasets.Value("string"),
|
| 210 |
-
"has_metadata": datasets.Value("bool"),
|
| 211 |
-
"is_arxiv_paper": datasets.Value("bool"),
|
| 212 |
-
"cited_paper_authors": datasets.Value("string"),
|
| 213 |
-
"bib_paper_year": datasets.Value("float32"),
|
| 214 |
-
"bib_paper_month": datasets.Value("string"),
|
| 215 |
-
"bib_paper_url": datasets.Value("string"),
|
| 216 |
-
"bib_paper_doi": datasets.Value("string"),
|
| 217 |
-
"bib_paper_journal": datasets.Value("string"),
|
| 218 |
-
"original_title": datasets.Value("string"),
|
| 219 |
-
"search_res_title": datasets.Value("string"),
|
| 220 |
-
"search_res_url": datasets.Value("string"),
|
| 221 |
-
"search_res_content": datasets.Value("string"),
|
| 222 |
-
"arxiv_id": datasets.Value("string"),
|
| 223 |
-
"arxiv_link": datasets.Value("string"),
|
| 224 |
-
"publication_date": datasets.Value("string"),
|
| 225 |
-
"title": datasets.Value("string"),
|
| 226 |
-
"abstract": datasets.Value("string"),
|
| 227 |
-
"raw_latex_related_works": datasets.Value("string"),
|
| 228 |
-
"related_work_section": datasets.Value("string"),
|
| 229 |
-
"pdf_related_works": datasets.Value("string"),
|
| 230 |
-
"cited_paper_content": datasets.Value("string"),
|
| 231 |
-
})
|
| 232 |
})
|
| 233 |
|
| 234 |
return datasets.DatasetInfo(
|
|
@@ -370,6 +304,7 @@ class LotusDeepResearch(datasets.GeneratorBasedBuilder):
|
|
| 370 |
"search_res_url": row.get("search_res_url", ""),
|
| 371 |
"search_res_content": row.get("search_res_content", ""),
|
| 372 |
}
|
|
|
|
| 373 |
elif split == "important_citations":
|
| 374 |
with open(filepath, encoding="utf-8") as f:
|
| 375 |
reader = csv.DictReader(f)
|
|
@@ -384,7 +319,7 @@ class LotusDeepResearch(datasets.GeneratorBasedBuilder):
|
|
| 384 |
"cited_paper_abstract": row.get("cited_paper_abstract", ""),
|
| 385 |
"has_metadata": _safe_bool_convert(row.get("has_metadata", "False")),
|
| 386 |
"is_arxiv_paper": _safe_bool_convert(row.get("is_arxiv_paper", "False")),
|
| 387 |
-
"
|
| 388 |
"bib_paper_year": _safe_float_convert(row.get("bib_paper_year", "")),
|
| 389 |
"bib_paper_month": row.get("bib_paper_month", ""),
|
| 390 |
"bib_paper_url": row.get("bib_paper_url", ""),
|
|
@@ -394,4 +329,13 @@ class LotusDeepResearch(datasets.GeneratorBasedBuilder):
|
|
| 394 |
"search_res_title": row.get("search_res_title", ""),
|
| 395 |
"search_res_url": row.get("search_res_url", ""),
|
| 396 |
"search_res_content": row.get("search_res_content", ""),
|
| 397 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
"""
|
| 2 |
+
DeepScholarBench: Academic papers with extracted related works sections and recovered citations.
|
| 3 |
|
| 4 |
This dataset contains academic papers from ArXiv with their related works sections and recovered citations,
|
| 5 |
providing a rich resource for research generation and citation analysis tasks.
|
|
|
|
| 24 |
title={DeepScholar-Bench: A Live Benchmark and Automated Evaluation for Generative Research Synthesis},
|
| 25 |
author={Liana Patel and Negar Arabzadeh and Harshit Gupta and Ankita Sundar and Ion Stoica and Matei Zaharia and Carlos Guestrin},
|
| 26 |
year={2025},
|
| 27 |
+
eprint={2412.19698},
|
| 28 |
archivePrefix={arXiv},
|
| 29 |
primaryClass={cs.CL},
|
| 30 |
url={https://arxiv.org/abs/2508.20033},
|
|
|
|
| 42 |
}
|
| 43 |
|
| 44 |
|
| 45 |
+
class DeepScholarBenchConfig(datasets.BuilderConfig):
|
| 46 |
+
"""BuilderConfig for DeepScholarBench dataset."""
|
| 47 |
|
| 48 |
def __init__(self, name: str, description: str, **kwargs):
|
| 49 |
+
"""BuilderConfig for DeepScholarBench.
|
| 50 |
|
| 51 |
Args:
|
| 52 |
name: Configuration name
|
| 53 |
description: Description of this configuration
|
| 54 |
**kwargs: Additional keyword arguments
|
| 55 |
"""
|
| 56 |
+
super(DeepScholarBenchConfig, self).__init__(
|
| 57 |
name=name,
|
| 58 |
description=description,
|
| 59 |
version=datasets.Version("1.0.0"),
|
|
|
|
| 61 |
)
|
| 62 |
|
| 63 |
|
| 64 |
+
class DeepScholarBench(datasets.GeneratorBasedBuilder):
|
| 65 |
+
"""DeepScholarBench dataset."""
|
| 66 |
|
| 67 |
VERSION = datasets.Version("1.0.0")
|
| 68 |
|
| 69 |
BUILDER_CONFIGS = [
|
| 70 |
+
DeepScholarBenchConfig(
|
| 71 |
name="papers",
|
| 72 |
description="Academic papers with extracted related works sections (63 papers)",
|
| 73 |
),
|
| 74 |
+
DeepScholarBenchConfig(
|
| 75 |
name="citations",
|
| 76 |
description="Recovered citations with metadata (1630 citations)",
|
| 77 |
),
|
| 78 |
+
DeepScholarBenchConfig(
|
| 79 |
name="important_citations",
|
| 80 |
+
description="Important citations with enhanced metadata (1050 citations)",
|
| 81 |
),
|
| 82 |
+
DeepScholarBenchConfig(
|
| 83 |
name="full",
|
| 84 |
+
description="Complete dataset with papers, citations, and important citations",
|
| 85 |
),
|
| 86 |
]
|
| 87 |
|
| 88 |
+
DEFAULT_CONFIG_NAME = "papers"
|
| 89 |
|
| 90 |
def _info(self) -> datasets.DatasetInfo:
|
| 91 |
"""Return the dataset info."""
|
|
|
|
| 161 |
})
|
| 162 |
else: # full config
|
| 163 |
features = datasets.Features({
|
| 164 |
+
"split": datasets.Value("string"),
|
| 165 |
+
"data": datasets.Value("string"), # JSON encoded data
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 166 |
})
|
| 167 |
|
| 168 |
return datasets.DatasetInfo(
|
|
|
|
| 304 |
"search_res_url": row.get("search_res_url", ""),
|
| 305 |
"search_res_content": row.get("search_res_content", ""),
|
| 306 |
}
|
| 307 |
+
|
| 308 |
elif split == "important_citations":
|
| 309 |
with open(filepath, encoding="utf-8") as f:
|
| 310 |
reader = csv.DictReader(f)
|
|
|
|
| 319 |
"cited_paper_abstract": row.get("cited_paper_abstract", ""),
|
| 320 |
"has_metadata": _safe_bool_convert(row.get("has_metadata", "False")),
|
| 321 |
"is_arxiv_paper": _safe_bool_convert(row.get("is_arxiv_paper", "False")),
|
| 322 |
+
"cited_paper_authors": row.get("cited_paper_authors", ""),
|
| 323 |
"bib_paper_year": _safe_float_convert(row.get("bib_paper_year", "")),
|
| 324 |
"bib_paper_month": row.get("bib_paper_month", ""),
|
| 325 |
"bib_paper_url": row.get("bib_paper_url", ""),
|
|
|
|
| 329 |
"search_res_title": row.get("search_res_title", ""),
|
| 330 |
"search_res_url": row.get("search_res_url", ""),
|
| 331 |
"search_res_content": row.get("search_res_content", ""),
|
| 332 |
+
"arxiv_id": row.get("arxiv_id", ""),
|
| 333 |
+
"arxiv_link": row.get("arxiv_link", ""),
|
| 334 |
+
"publication_date": row.get("publication_date", ""),
|
| 335 |
+
"title": row.get("title", ""),
|
| 336 |
+
"abstract": row.get("abstract", ""),
|
| 337 |
+
"raw_latex_related_works": row.get("raw_latex_related_works", ""),
|
| 338 |
+
"related_work_section": row.get("related_work_section", ""),
|
| 339 |
+
"pdf_related_works": row.get("pdf_related_works", ""),
|
| 340 |
+
"cited_paper_content": row.get("cited_paper_content", ""),
|
| 341 |
+
}
|
README.md
CHANGED
|
@@ -7,15 +7,25 @@ language:
|
|
| 7 |
- en
|
| 8 |
tags:
|
| 9 |
- code
|
| 10 |
-
pretty_name:
|
| 11 |
size_categories:
|
| 12 |
- 1K<n<10K
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
---
|
| 14 |
-
#
|
| 15 |
|
| 16 |
-
[](https://github.com/
|
|
|
|
| 19 |
|
| 20 |
---
|
| 21 |
|
|
@@ -80,23 +90,72 @@ Contains individual citations with recovered metadata:
|
|
| 80 |
| `search_res_url` | URL from search results |
|
| 81 |
| `search_res_content` | Content snippet from search results |
|
| 82 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
## 🚀 Quick Start
|
| 84 |
|
| 85 |
-
### Loading
|
| 86 |
|
| 87 |
```python
|
| 88 |
-
|
| 89 |
|
| 90 |
# Load papers dataset
|
| 91 |
-
|
| 92 |
-
print(f"Loaded {len(
|
| 93 |
|
| 94 |
-
# Load citations dataset
|
| 95 |
-
|
| 96 |
-
print(f"Loaded {len(
|
| 97 |
-
```
|
| 98 |
|
|
|
|
|
|
|
|
|
|
| 99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
|
| 101 |
### Example: Extract Related Works for a Paper
|
| 102 |
|
|
@@ -113,13 +172,14 @@ print(f"Number of citations: {len(paper_citations)}")
|
|
| 113 |
|
| 114 |
## 📈 Dataset Statistics
|
| 115 |
|
| 116 |
-
- **Total Papers**:
|
| 117 |
-
- **Total Citations**:
|
|
|
|
| 118 |
- **Date Range**: 2024-2025 (recent papers)
|
| 119 |
|
| 120 |
## 🔧 Data Collection Process
|
| 121 |
|
| 122 |
-
This dataset was created using the [Lotus Deep Research](https://github.com/
|
| 123 |
|
| 124 |
1. **ArXiv Scraping**: Collected papers by category and date range
|
| 125 |
2. **Author Filtering**: Focused on high-impact researchers (h-index ≥ 25)
|
|
@@ -129,17 +189,17 @@ This dataset was created using the [Lotus Deep Research](https://github.com/hars
|
|
| 129 |
|
| 130 |
## 📚 Related Resources
|
| 131 |
|
| 132 |
-
- **[GitHub Repository](https://github.com/
|
| 133 |
-
- **[Data Pipeline](https://github.com/
|
| 134 |
-
- **[Evaluation Framework](https://github.com/
|
| 135 |
|
| 136 |
## 🤝 Contributing
|
| 137 |
|
| 138 |
-
We welcome contributions to improve this dataset! Please see the [main repository](https://github.com/
|
| 139 |
|
| 140 |
## 📄 License
|
| 141 |
|
| 142 |
-
This dataset is released under the MIT License. See the [LICENSE](https://github.com/
|
| 143 |
|
| 144 |
---
|
| 145 |
|
|
|
|
| 7 |
- en
|
| 8 |
tags:
|
| 9 |
- code
|
| 10 |
+
pretty_name: DeepScholarBench Dataset
|
| 11 |
size_categories:
|
| 12 |
- 1K<n<10K
|
| 13 |
+
configs:
|
| 14 |
+
- config_name: papers
|
| 15 |
+
data_files: "papers_with_related_works.csv"
|
| 16 |
+
- config_name: citations
|
| 17 |
+
data_files: "recovered_citations.csv"
|
| 18 |
+
- config_name: important_citations
|
| 19 |
+
data_files: "important_citations.csv"
|
| 20 |
+
- config_name: full
|
| 21 |
+
data_files: ["papers_with_related_works.csv", "recovered_citations.csv", "important_citations.csv"]
|
| 22 |
---
|
| 23 |
+
# DeepScholarBench Dataset
|
| 24 |
|
| 25 |
+
[](https://huggingface.co/datasets/deepscholar-bench/DeepScholarBench)
|
| 26 |
+
[](https://github.com/guestrin-lab/deepscholar-bench)
|
| 27 |
+
[](https://github.com/guestrin-lab/deepscholar-bench/blob/main/LICENSE)
|
| 28 |
+
[](https://arxiv.org/abs/2508.20033)
|
| 29 |
|
| 30 |
---
|
| 31 |
|
|
|
|
| 90 |
| `search_res_url` | URL from search results |
|
| 91 |
| `search_res_content` | Content snippet from search results |
|
| 92 |
|
| 93 |
+
### 3. `important_citations.csv` (1,050 citations)
|
| 94 |
+
|
| 95 |
+
Contains enhanced citations with full paper metadata and content:
|
| 96 |
+
|
| 97 |
+
| Column | Description |
|
| 98 |
+
|--------|-------------|
|
| 99 |
+
| `parent_paper_title` | Title of the paper containing the citation |
|
| 100 |
+
| `parent_paper_arxiv_id` | ArXiv ID of the parent paper |
|
| 101 |
+
| `citation_shorthand` | Citation key (e.g., "NBERw21340") |
|
| 102 |
+
| `raw_citation_text` | Raw citation text from LaTeX |
|
| 103 |
+
| `cited_paper_title` | Title of the cited paper |
|
| 104 |
+
| `cited_paper_arxiv_link` | ArXiv link if available |
|
| 105 |
+
| `cited_paper_abstract` | Abstract of the cited paper |
|
| 106 |
+
| `has_metadata` | Whether metadata was successfully recovered |
|
| 107 |
+
| `is_arxiv_paper` | Whether the cited paper is from ArXiv |
|
| 108 |
+
| `cited_paper_authors` | Authors of the cited paper |
|
| 109 |
+
| `bib_paper_year` | Publication year |
|
| 110 |
+
| `bib_paper_month` | Publication month |
|
| 111 |
+
| `bib_paper_url` | URL of the cited paper |
|
| 112 |
+
| `bib_paper_doi` | DOI of the cited paper |
|
| 113 |
+
| `bib_paper_journal` | Journal name |
|
| 114 |
+
| `original_title` | Original title from citation metadata |
|
| 115 |
+
| `search_res_title` | Title from search results |
|
| 116 |
+
| `search_res_url` | URL from search results |
|
| 117 |
+
| `search_res_content` | Content snippet from search results |
|
| 118 |
+
| `arxiv_id` | ArXiv ID of the parent paper |
|
| 119 |
+
| `arxiv_link` | ArXiv link of the parent paper |
|
| 120 |
+
| `publication_date` | Publication date of the parent paper |
|
| 121 |
+
| `title` | Title of the parent paper |
|
| 122 |
+
| `abstract` | Abstract of the parent paper |
|
| 123 |
+
| `raw_latex_related_works` | Raw LaTeX related works section |
|
| 124 |
+
| `related_work_section` | Processed related works section |
|
| 125 |
+
| `pdf_related_works` | Related works extracted from PDF |
|
| 126 |
+
| `cited_paper_content` | Full content of the cited paper |
|
| 127 |
+
|
| 128 |
+
## ⚙️ Dataset Configurations
|
| 129 |
+
|
| 130 |
+
| Configuration | Description | Files | Records | Use Case |
|
| 131 |
+
|---------------|-------------|--------|---------|----------|
|
| 132 |
+
| `papers` | Academic papers only | `papers_with_related_works.csv` | 63 papers | Research generation, content analysis |
|
| 133 |
+
| `citations` | Citations only | `recovered_citations.csv` | 1,630 citations | Citation analysis, relationship mapping |
|
| 134 |
+
| `important_citations` | Enhanced citations with metadata | `important_citations.csv` | 1,050 citations | Advanced citation analysis, paper-citation linking |
|
| 135 |
+
|
| 136 |
## 🚀 Quick Start
|
| 137 |
|
| 138 |
+
### Loading from Hugging Face Hub (Recommended)
|
| 139 |
|
| 140 |
```python
|
| 141 |
+
from datasets import load_dataset
|
| 142 |
|
| 143 |
# Load papers dataset
|
| 144 |
+
papers = load_dataset("deepscholar-bench/DeepScholarBench", name="papers")["train"]
|
| 145 |
+
print(f"Loaded {len(papers)} papers")
|
| 146 |
|
| 147 |
+
# Load citations dataset
|
| 148 |
+
citations = load_dataset("deepscholar-bench/DeepScholarBench", name="citations")["train"]
|
| 149 |
+
print(f"Loaded {len(citations)} citations")
|
|
|
|
| 150 |
|
| 151 |
+
# Load important citations with enhanced metadata
|
| 152 |
+
important_citations = load_dataset("deepscholar-bench/DeepScholarBench", name="important_citations")["train"]
|
| 153 |
+
print(f"Loaded {len(important_citations)} important citations")
|
| 154 |
|
| 155 |
+
# Convert to pandas for analysis
|
| 156 |
+
papers_df = papers.to_pandas()
|
| 157 |
+
citations_df = citations.to_pandas()
|
| 158 |
+
```
|
| 159 |
|
| 160 |
### Example: Extract Related Works for a Paper
|
| 161 |
|
|
|
|
| 172 |
|
| 173 |
## 📈 Dataset Statistics
|
| 174 |
|
| 175 |
+
- **Total Papers**: 63
|
| 176 |
+
- **Total Citations**: 1,630
|
| 177 |
+
- **Important Citations**: 1,050
|
| 178 |
- **Date Range**: 2024-2025 (recent papers)
|
| 179 |
|
| 180 |
## 🔧 Data Collection Process
|
| 181 |
|
| 182 |
+
This dataset was created using the [Lotus Deep Research](https://github.com/guestrin-lab/deepscholar-bench) pipeline:
|
| 183 |
|
| 184 |
1. **ArXiv Scraping**: Collected papers by category and date range
|
| 185 |
2. **Author Filtering**: Focused on high-impact researchers (h-index ≥ 25)
|
|
|
|
| 189 |
|
| 190 |
## 📚 Related Resources
|
| 191 |
|
| 192 |
+
- **[GitHub Repository](https://github.com/guestrin-lab/deepscholar-bench)**: Full source code and documentation
|
| 193 |
+
- **[Data Pipeline](https://github.com/guestrin-lab/deepscholar-bench/tree/main/data_pipeline)**: Tools for collecting similar datasets
|
| 194 |
+
- **[Evaluation Framework](https://github.com/guestrin-lab/deepscholar-bench/tree/main/eval)**: Framework for evaluating research generation systems
|
| 195 |
|
| 196 |
## 🤝 Contributing
|
| 197 |
|
| 198 |
+
We welcome contributions to improve this dataset! Please see the [main repository](https://github.com/guestrin-lab/deepscholar-bench) for contribution guidelines.
|
| 199 |
|
| 200 |
## 📄 License
|
| 201 |
|
| 202 |
+
This dataset is released under the MIT License. See the [LICENSE](https://github.com/guestrin-lab/deepscholar-bench/blob/main/LICENSE) file for details.
|
| 203 |
|
| 204 |
---
|
| 205 |
|
usage_example.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
"""
|
| 3 |
-
Usage example for the
|
| 4 |
|
| 5 |
This shows how to use the dataset builder directly, which is the recommended approach
|
| 6 |
for local development and testing.
|
|
@@ -13,7 +13,7 @@ from pathlib import Path
|
|
| 13 |
# Add the current directory to Python path
|
| 14 |
sys.path.insert(0, str(Path(__file__).parent))
|
| 15 |
|
| 16 |
-
from
|
| 17 |
import pandas as pd
|
| 18 |
|
| 19 |
|
|
@@ -22,7 +22,7 @@ def load_papers_dataset():
|
|
| 22 |
print("Loading papers dataset...")
|
| 23 |
|
| 24 |
# Create dataset builder
|
| 25 |
-
builder =
|
| 26 |
|
| 27 |
# Mock download manager for local files
|
| 28 |
class MockDownloadManager:
|
|
@@ -52,7 +52,7 @@ def load_citations_dataset():
|
|
| 52 |
print("Loading citations dataset...")
|
| 53 |
|
| 54 |
# Create dataset builder
|
| 55 |
-
builder =
|
| 56 |
|
| 57 |
# Mock download manager for local files
|
| 58 |
class MockDownloadManager:
|
|
@@ -82,7 +82,7 @@ def load_important_citations_dataset():
|
|
| 82 |
print("Loading important citations dataset...")
|
| 83 |
|
| 84 |
# Create dataset builder
|
| 85 |
-
builder =
|
| 86 |
|
| 87 |
# Mock download manager for local files
|
| 88 |
class MockDownloadManager:
|
|
@@ -109,7 +109,7 @@ def load_important_citations_dataset():
|
|
| 109 |
|
| 110 |
def main():
|
| 111 |
"""Main example function."""
|
| 112 |
-
print("
|
| 113 |
print("=" * 50)
|
| 114 |
|
| 115 |
# Load datasets
|
|
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
"""
|
| 3 |
+
Usage example for the DeepScholarBench dataset.
|
| 4 |
|
| 5 |
This shows how to use the dataset builder directly, which is the recommended approach
|
| 6 |
for local development and testing.
|
|
|
|
| 13 |
# Add the current directory to Python path
|
| 14 |
sys.path.insert(0, str(Path(__file__).parent))
|
| 15 |
|
| 16 |
+
from DeepScholarBench import DeepScholarBench
|
| 17 |
import pandas as pd
|
| 18 |
|
| 19 |
|
|
|
|
| 22 |
print("Loading papers dataset...")
|
| 23 |
|
| 24 |
# Create dataset builder
|
| 25 |
+
builder = DeepScholarBench(config_name="papers")
|
| 26 |
|
| 27 |
# Mock download manager for local files
|
| 28 |
class MockDownloadManager:
|
|
|
|
| 52 |
print("Loading citations dataset...")
|
| 53 |
|
| 54 |
# Create dataset builder
|
| 55 |
+
builder = DeepScholarBench(config_name="citations")
|
| 56 |
|
| 57 |
# Mock download manager for local files
|
| 58 |
class MockDownloadManager:
|
|
|
|
| 82 |
print("Loading important citations dataset...")
|
| 83 |
|
| 84 |
# Create dataset builder
|
| 85 |
+
builder = DeepScholarBench(config_name="important_citations")
|
| 86 |
|
| 87 |
# Mock download manager for local files
|
| 88 |
class MockDownloadManager:
|
|
|
|
| 109 |
|
| 110 |
def main():
|
| 111 |
"""Main example function."""
|
| 112 |
+
print("DeepScholarBench Dataset - Usage Example")
|
| 113 |
print("=" * 50)
|
| 114 |
|
| 115 |
# Load datasets
|