enwikimath / README.md
s-kat0's picture
Update REAMDE.md
7b9d94e verified
metadata
dataset_info:
  features:
    - name: id
      dtype: string
    - name: title
      dtype: string
    - name: text
      dtype: string
    - name: formulas
      list:
        - name: math_id
          dtype: int64
        - name: text
          dtype: string
    - name: url
      dtype: string
  splits:
    - name: train
      num_bytes: 309420055
      num_examples: 38661
  download_size: 157180903
  dataset_size: 309420055
configs:
  - config_name: default
    data_files:
      - split: train
        path: data/train-*
license: cc-by-4.0
task_categories:
  - text-generation
language:
  - en
tags:
  - math
  - latex
pretty_name: enwikimath
size_categories:
  - 10K<n<100K

Dataset Card

This dataset is created from the English Wikipedia dump file (enwiki-20240901-pages-articles-multistream.xml.bz2), available for download from Wikimedia Dumps. It includes pages containing mathematical content, extracted using the wikimathextractor tool, which is an adaptation of the wikiextractor specifically designed to extract mathematical contents.

Dataset Description

  • Curated by: Shota Kato
  • Language(s) (NLP): English
  • License: CC-BY-SA 4.0

Dataset Sources

Direct Use

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.

Dataset Structure

Data Instances

A typical data entry in the dataset corresponds to one Wikipedia article that includes mathematical content. Here is an example:

{
  'id': '26513034',
  'title': 'Pythagorean theorem',
  '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. ...'
  'formulas': [
    {'math_id': 0, 'text': 'a^2 + b^2 = c^2 .'},
    {'math_id': 1, 'text': 'a + b'}, ...
  ],
  'url': 'https://en.wikipedia.org/wiki?curid=26513034'
}

Data Fields

  • id (str)
    • a string representing the unique identifier of the article.
  • title (str)
    • the title of the Wikipedia article.
  • text (str)
    • the text content of the article, with some tags removed. Details are available in the GitHub repository.
  • formulas (list[dict[str, int | str]])
    • a list of mathematical expressions extracted from the article, where each formula is represented as follow.
      • math_id: an index representing the position of the formula in the text.
      • text: the textual representation of the formula, without tags.
  • url (str)
    • the URL of the Wikipedia article.

Data Splits

The dataset is provided in a single training split:

  • train: 38,661 rows

The DatasetDict structure is as follows:

DatasetDict({
    'train': Dataset({
        features: ['id', 'title', 'text', 'formulas', 'url'],
        num_rows: 38661
    })
})

Dataset Creation

Please refer to the GitHub repository for details about the dataset construction.

Source Data

Data Collection and Processing

Please refer to the GitHub repository for details about the dataset construction.

Who are the source data producers?

Shota Kato

Bias, Risks, and Limitations

This dataset is in English and contains English Wikipedia page related to mathematical topics.

Acknowledgements

This dataset was constructed with references to several projects and tools. Acknowledgement is given to the following resources: