Datasets:
Tasks:
Text Generation
Modalities:
Text
Formats:
parquet
Languages:
English
Size:
10K - 100K
License:
Update REAMDE.md
Browse files
README.md
CHANGED
|
@@ -17,13 +17,130 @@ dataset_info:
|
|
| 17 |
dtype: string
|
| 18 |
splits:
|
| 19 |
- name: train
|
| 20 |
-
num_bytes: 309420055
|
| 21 |
num_examples: 38661
|
| 22 |
download_size: 157180903
|
| 23 |
-
dataset_size: 309420055
|
| 24 |
configs:
|
| 25 |
- config_name: default
|
| 26 |
data_files:
|
| 27 |
- split: train
|
| 28 |
path: data/train-*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
dtype: string
|
| 18 |
splits:
|
| 19 |
- name: train
|
| 20 |
+
num_bytes: 309420055
|
| 21 |
num_examples: 38661
|
| 22 |
download_size: 157180903
|
| 23 |
+
dataset_size: 309420055
|
| 24 |
configs:
|
| 25 |
- config_name: default
|
| 26 |
data_files:
|
| 27 |
- split: train
|
| 28 |
path: data/train-*
|
| 29 |
+
license: cc-by-4.0
|
| 30 |
+
task_categories:
|
| 31 |
+
- text-generation
|
| 32 |
+
language:
|
| 33 |
+
- en
|
| 34 |
+
tags:
|
| 35 |
+
- math
|
| 36 |
+
- latex
|
| 37 |
+
pretty_name: enwikimath
|
| 38 |
+
size_categories:
|
| 39 |
+
- 10K<n<100K
|
| 40 |
---
|
| 41 |
+
|
| 42 |
+
# Dataset Card
|
| 43 |
+
|
| 44 |
+
This dataset is created from the English Wikipedia dump file (enwiki-20240901-pages-articles-multistream.xml.bz2), available for download from [Wikimedia Dumps](https://dumps.wikimedia.org/). It includes pages containing mathematical content, extracted using [the wikimathextractor tool](https://github.com/s-kat0/wikimathextractor), which is an adaptation of [the wikiextractor](https://github.com/attardi/wikiextractor) specifically designed to extract mathematical contents.
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
### Dataset Description
|
| 48 |
+
|
| 49 |
+
- **Curated by:** Shota Kato
|
| 50 |
+
- **Language(s) (NLP):** English
|
| 51 |
+
- **License:** CC-BY-SA 4.0
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
### Dataset Sources
|
| 55 |
+
|
| 56 |
+
- **Repository:** [s-kat0/wikimathextractor](https://github.com/s-kat0/wikimathextractor)
|
| 57 |
+
- **Data Source:** [Wikipedia Dumps](https://dumps.wikimedia.org/)
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
### Direct Use
|
| 61 |
+
|
| 62 |
+
This dataset is intended for use in tasks that require the processing and understanding of mathematical content in natural language, such as mathematical question answering and symbolic math problem solving.
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
## Dataset Structure
|
| 66 |
+
|
| 67 |
+
### Data Instances
|
| 68 |
+
|
| 69 |
+
A typical data entry in the dataset corresponds to one Wikipedia article that includes mathematical content. Here is an example:
|
| 70 |
+
|
| 71 |
+
```python
|
| 72 |
+
{
|
| 73 |
+
'id': '26513034',
|
| 74 |
+
'title': 'Pythagorean theorem',
|
| 75 |
+
'text': 'Relation between sides of a right triangle\nIn mathematics, the Pythagorean theorem or Pythagoras\' theorem is a fundamental relation in Euclidean geometry between the three sides of a right triangle. ...'
|
| 76 |
+
'formulas': [
|
| 77 |
+
{'math_id': 0, 'text': 'a^2 + b^2 = c^2 .'},
|
| 78 |
+
{'math_id': 1, 'text': 'a + b'}, ...
|
| 79 |
+
],
|
| 80 |
+
'url': 'https://en.wikipedia.org/wiki?curid=26513034'
|
| 81 |
+
}
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
### Data Fields
|
| 85 |
+
|
| 86 |
+
- id (str)
|
| 87 |
+
- a string representing the unique identifier of the article.
|
| 88 |
+
- title (str)
|
| 89 |
+
- the title of the Wikipedia article.
|
| 90 |
+
- text (str)
|
| 91 |
+
- the text content of the article, with some tags removed. Details are available in [the GitHub repository](https://github.com/s-kat0/wikimathextractor).
|
| 92 |
+
- formulas (list[dict[str, int | str]])
|
| 93 |
+
- a list of mathematical expressions extracted from the article, where each formula is represented as follow.
|
| 94 |
+
- math_id: an index representing the position of the formula in the text.
|
| 95 |
+
- text: the textual representation of the formula, without <math> tags.
|
| 96 |
+
- url (str)
|
| 97 |
+
- the URL of the Wikipedia article.
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
### Data Splits
|
| 101 |
+
|
| 102 |
+
The dataset is provided in a single training split:
|
| 103 |
+
|
| 104 |
+
- train: 38,661 rows
|
| 105 |
+
|
| 106 |
+
The `DatasetDict` structure is as follows:
|
| 107 |
+
|
| 108 |
+
```python
|
| 109 |
+
DatasetDict({
|
| 110 |
+
'train': Dataset({
|
| 111 |
+
features: ['id', 'title', 'text', 'formulas', 'url'],
|
| 112 |
+
num_rows: 38661
|
| 113 |
+
})
|
| 114 |
+
})
|
| 115 |
+
```
|
| 116 |
+
|
| 117 |
+
## Dataset Creation
|
| 118 |
+
|
| 119 |
+
Please refer to [the GitHub repository](https://github.com/s-kat0/wikimathextractor) for details about the dataset construction.
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
### Source Data
|
| 123 |
+
|
| 124 |
+
- **Original Source:** English Wikipedia available from [Wikipedia Dumps](https://dumps.wikimedia.org/)
|
| 125 |
+
|
| 126 |
+
|
| 127 |
+
#### Data Collection and Processing
|
| 128 |
+
|
| 129 |
+
Please refer to [the GitHub repository](https://github.com/s-kat0/wikimathextractor) for details about the dataset construction.
|
| 130 |
+
|
| 131 |
+
#### Who are the source data producers?
|
| 132 |
+
|
| 133 |
+
Shota Kato
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
## Bias, Risks, and Limitations
|
| 137 |
+
|
| 138 |
+
This dataset is in English and contains English Wikipedia page related to mathematical topics.
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
## Acknowledgements
|
| 142 |
+
|
| 143 |
+
This dataset was constructed with references to several projects and tools. Acknowledgement is given to the following resources:
|
| 144 |
+
|
| 145 |
+
- [attardi/wikiextractor](https://github.com/attardi/wikiextractor)
|
| 146 |
+
- [Hugging Face Datasets: hpprc/jawiki](https://huggingface.co/datasets/hpprc/jawiki)
|