id stringlengths 16 20 | lang stringclasses 1
value | page_id int64 12 977k | revision_id int64 16.5M 1.34B | page_type stringclasses 3
values | title stringlengths 1 124 | wikidata_qid stringlengths 2 10 ⌀ | paragraph_texts listlengths 0 6.21k | paragraph_sections listlengths 0 6.21k | paragraph_wikilinks listlengths 0 6.21k | paragraph_html_tags listlengths 0 6.21k | linked_articles listlengths 0 8.66k | categories listlengths 0 247 | templates listlengths 0 229 | num_inlinks int64 0 374k | redirects listlengths 0 1.03k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
en-12-1340080924 | en | 12 | 1,340,080,924 | article | Anarchism | Q6199 | [
"Anarchism is a political philosophy and movement that seeks to abolish all institutions that perpetuate authority, coercion, or hierarchy, primarily targeting the state and capitalism. Anarchism advocates for the replacement of the state with stateless societies and voluntary free associations. A historically left... | [
"__LEAD__",
"__LEAD__",
"__LEAD__",
"Etymology, terminology, and definition",
"Etymology, terminology, and definition",
"Etymology, terminology, and definition",
"Etymology, terminology, and definition",
"History",
"History",
"History",
"History",
"History",
"History",
"History",
"Histor... | [
[
{
"lang": "en",
"title": "Political philosophy",
"text": "political philosophy",
"start": 15,
"end": 35
},
{
"lang": "en",
"title": "Political movement",
"text": "movement",
"start": 40,
"end": 48
},
{
"lang": "en",
"title... | [
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"... | [
"Political philosophy",
"Political movement",
"Authority",
"Coercion",
"Social stratification",
"State (polity)",
"Capitalism",
"Stateless society",
"Free association of producers",
"Left-wing politics",
"Libertarianism",
"History of socialism",
"Libertarian socialism",
"History",
"Age o... | [
"Anarchism",
"Anti-capitalism",
"Anti-fascism",
"Economic ideologies",
"Far-left politics",
"Left-wing ideologies",
"Libertarian socialism",
"Libertarianism",
"Political culture",
"Political ideologies",
"Political movements",
"Social theories",
"Types of socialism"
] | [
"Short description",
"Other uses",
"Pp-semi-indef",
"Good article",
"Use British English",
"Use dmy dates",
"Use shortened footnotes",
"Anarchism sidebar",
"TOC limit",
"Main",
"See also",
"Sfn",
"Sfnm",
"Langx",
"ISBN",
"Refn",
"Cite web",
"!",
"Circa",
"Lang",
"Cite news",
... | 4,456 | [
"Anarchism",
"Anarchist",
"Traditional anarchism",
"Anarchistic",
"Anarchist groups",
"Diversity of anarchism",
"List of anarchist communities",
"Anarchist socialism",
"Anarchist political economy",
"Anarchists",
"List of anarchist groups",
"Anarchist economics",
"Anarchist communities",
"... |
en-39-1338813175 | en | 39 | 1,338,813,175 | article | Albedo | Q101038 | [
"Albedo (/ælˈbiːdoʊ/ ⓘ al-BEE-doh; from Latin albedo 'whiteness') is the fraction of sunlight that is diffusely reflected by a body. It is measured on a scale from 0 (corresponding to a black body that absorbs all incident radiation) to 1 (corresponding to a body that reflects all incident radiation). Surface albe... | [
"__LEAD__",
"__LEAD__",
"__LEAD__",
"__LEAD__",
"Terrestrial albedo",
"Terrestrial albedo",
"Terrestrial albedo",
"Terrestrial albedo",
"Terrestrial albedo",
"Terrestrial albedo",
"Terrestrial albedo",
"Terrestrial albedo",
"Terrestrial albedo",
"Terrestrial albedo",
"Terrestrial albedo"... | [
[
{
"lang": "en",
"title": "Latin",
"text": "Latin",
"start": 39,
"end": 44
},
{
"lang": "en",
"title": "Sunlight",
"text": "sunlight",
"start": 85,
"end": 93
},
{
"lang": "en",
"title": "Diffuse reflection",
"text": "... | [
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"li",
"li",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
... | [
"Greenland",
"Sunlight",
"Diffuse reflection",
"Black body",
"Radiosity (radiometry)",
"Irradiance",
"Position of the Sun",
"Reflectance",
"Visible spectrum",
"Ice–albedo feedback",
"Positive feedback",
"Ice cap",
"Glacier",
"Sea ice",
"Ice",
"Climate variability and change",
"Climat... | [
"Land surface effects on climate",
"Climate change feedbacks",
"Climate forcing",
"Climatology",
"Electromagnetic radiation",
"Meteorological quantities",
"Radiometry",
"Scattering, absorption and radiative transfer (optics)",
"Radiation",
"1760s neologisms"
] | [
"Short description",
"Other uses",
"Use dmy dates",
"Cite web",
"IPAc-en",
"Respell",
"Etymology",
"Cite encyclopedia",
"Cite journal",
"!",
"Cite book",
"Convert",
"Cite news",
"Spaces",
"See also",
"Reference page",
"Further",
"Webarchive",
"Update section",
"Failed verificat... | 3,133 | [
"Albedo",
"Solar reflectance",
"Simple albedo",
"Albedo rate",
"Simple Albedo",
"Earth albedo",
"Albedo effects",
"Albedo of the Earth",
"Astronomical albedo",
"Albedo effect",
"Terrestrial albedo"
] |
en-290-1340067180 | en | 290 | 1,340,067,180 | article | A | Q9659 | [
"A, or a, is the first letter and the first vowel letter of the Latin alphabet, used in the modern English alphabet, and others worldwide. Its name in English is a (pronounced /ˈeɪ/ ⓘ AY), plural aes.",
"It is similar in shape to the Ancient Greek letter alpha, from which it derives. The uppercase version consist... | [
"__LEAD__",
"__LEAD__",
"Name",
"History",
"History",
"History",
"History",
"History",
"History",
"History",
"Use in writing systems",
"Pronunciation",
"Pronunciation",
"Pronunciation",
"Pronunciation",
"Pronunciation",
"Pronunciation",
"Pronunciation",
"Pronunciation",
"Pronun... | [
[
{
"lang": "en",
"title": "Letter (alphabet)",
"text": "letter",
"start": 22,
"end": 28
},
{
"lang": "en",
"title": "Vowel",
"text": "vowel letter",
"start": 43,
"end": 55
},
{
"lang": "en",
"title": "Latin alphabet",
... | [
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"p",
"li",
"li",
"li",
"li",
"li",
"li",
"p",
"p",
"p",
"li",
"li",
"li",
"li",
"li",
"li",
"li",
"li",
"li",
"li",
"li",
"li",
"li",
"li",
"li",
"li",
"li",
"li",
"p",
"p",
"li",... | [
"Latin script",
"Alphabet",
"Latin",
"Alpha",
"Old Italic scripts",
"Æ",
"Ä",
"Â",
"Latin alpha",
"Turned v",
"Turned A",
"Ordinal indicator",
"Å",
"Argentine austral",
"At sign",
"Enclosed Alphanumerics",
"ABO blood group system",
"Gothic alphabet",
"A (Cyrillic)",
"Schwa (Cyr... | [
"ISO basic Latin letters",
"Vowel letters"
] | [
"Short description",
"About",
"Technical reasons",
"!",
"Protection padlock",
"Bots",
"CS1 config",
"Use dmy dates",
"Infobox grapheme",
"Flex list",
"IPA link",
"IPA",
"Circa",
"Spaced en dash",
"Latin alphabet sidebar",
"Cite encyclopedia",
"Sfn",
"IPAc-en",
"Respell",
"Refn"... | 594 | [
"A",
"A",
"The Letter A",
"A (letter)",
"LetterA",
"ASCII 65",
"U+0041",
"ASCII 97",
"\\x41",
"U+0061",
"Letter A",
"Ꞻ",
"Single-storey a",
"Single-story a",
"Double-story a",
"Double-storey a",
"Lowercase a",
"Letter a"
] |
en-303-1340214420 | en | 303 | 1,340,214,420 | article | Alabama | Q173 | ["Alabama (/ˌæləˈbæmə/ ⓘ, AL-ə-BAM-ə) is a state in the Southeastern and Deep Southern reg(...TRUNCATED) | ["__LEAD__","__LEAD__","__LEAD__","__LEAD__","Etymology","Etymology","Etymology","Etymology","Histor(...TRUNCATED) | [[{"lang":"en","title":"U.S. state","text":"state","start":41,"end":46},{"lang":"en","title":"Southe(...TRUNCATED) | ["p","p","p","p","p","p","p","p","p","p","p","p","p","p","p","p","p","p","p","p","p","p","p","p","p"(...TRUNCATED) | ["Northern flicker","Dixie","Audemus jura nostra defendere","Alabama (Julia Tutwiler song)","Montgom(...TRUNCATED) | ["Alabama","1819 establishments in the United States","Southern United States","States and territori(...TRUNCATED) | ["Short description","About","Pp-semi-indef","Pp-move","Use mdy dates","Use American English","Infob(...TRUNCATED) | 14,870 | ["Alabama","Alabahmu","Alabama, United States","State of Alabama","Alabama (U.S. state)","US-AL","Al(...TRUNCATED) |
en-305-1338091600 | en | 305 | 1,338,091,600 | article | Achilles | Q41746 | ["In Greek mythology, Achilles (/əˈkɪliːz/ ⓘ ə-KIL-eez) or Achilleus (Ancient Greek: Ἀχι(...TRUNCATED) | ["__LEAD__","__LEAD__","__LEAD__","Etymology","Etymology","Etymology","Etymology","Etymology","Etymo(...TRUNCATED) | [[{"lang":"en","title":"Greek mythology","text":"Greek mythology","start":3,"end":18},{"lang":"en","(...TRUNCATED) | ["p","p","p","p","p","p","p","li","li","li","li","li","li","li","li","li","li","p","p","p","p","p","(...TRUNCATED) | ["Pottery of ancient Greece","Phthia","Deidamia (daughter of Lycomedes)","Briseis","Peleus","Thetis"(...TRUNCATED) | ["Greek mythological heroes","Kings of the Myrmidons","Achaean Leaders","Thessalians in the Trojan W(...TRUNCATED) | ["Short description","Redirect","Protection padlock","Use dmy dates","Infobox deity","Circa","Greek (...TRUNCATED) | 1,260 | ["Achilles","Achilleus","Akhilles","Akhilleus","Akhilleus Aiakides","Akhilleus Aiákidês","Achillis(...TRUNCATED) |
en-307-1340671891 | en | 307 | 1,340,671,891 | article | Abraham Lincoln | Q91 | ["Abraham Lincoln (February 12, 1809 – April 15, 1865) was the 16th president of the United State(...TRUNCATED) | ["__LEAD__","__LEAD__","__LEAD__","__LEAD__","Family and childhood","Family and childhood","Family a(...TRUNCATED) | [[{"lang":"en","title":"President of the United States","text":"president of the United States","sta(...TRUNCATED) | ["p","p","p","p","p","p","p","p","p","p","p","p","p","p","p","p","p","p","p","p","p","p","p","p","p"(...TRUNCATED) | ["Hannibal Hamlin","James Buchanan","Andrew Johnson","Illinois","John Henry (representative)","Thoma(...TRUNCATED) | ["Abraham Lincoln","1809 births","1865 deaths","19th-century members of the Illinois General Assembl(...TRUNCATED) | ["Short description","Hatnote group","Redirect","!","Other uses","Featured article","Protection padl(...TRUNCATED) | 8,990 | ["Abraham Lincoln","Abe Lincoln","Honest Abe","President Lincoln","Great Emancipator","Abe licnoln",(...TRUNCATED) |
en-308-1337155936 | en | 308 | 1,337,155,936 | article | Aristotle | Q868 | ["Aristotle (Attic Greek: Ἀριστοτέλης, romanized: Aristotélēs; 384–322 BC) was an (...TRUNCATED) | ["__LEAD__","__LEAD__","__LEAD__","__LEAD__","__LEAD__","Life","Life","Life","Life","Life","Theoreti(...TRUNCATED) | [[{"lang":"en","title":"Attic Greek","text":"Attic Greek","start":11,"end":22},{"lang":"en","title":(...TRUNCATED) | ["p","p","p","p","p","p","p","p","p","p","p","p","li","li","li","li","li","li","p","p","p","p","bloc(...TRUNCATED) | ["Ancient Greek sculpture","Lysippos","Stagira (ancient city)","Chalcidian League","Chalcis","Euboea(...TRUNCATED) | ["Aristotle","Aristotelianism","384 BC births","322 BC deaths","4th-century BC Greek mathematicians"(...TRUNCATED) | ["Short description","Other uses","Good article","Protection padlock","Use Oxford spelling","CS1 con(...TRUNCATED) | 5,523 | ["Aristotle","Aristotelis","Aristotel","Arystoteles","The Stagirite","Aristotle of Stagira","Stagiri(...TRUNCATED) |
en-309-1340346650 | en | 309 | 1,340,346,650 | article | An American in Paris | Q853997 | ["An American in Paris is a jazz-influenced symphonic poem (or tone poem) for orchestra by American (...TRUNCATED) | ["__LEAD__","__LEAD__","__LEAD__","Background","Background","Background","Composition","Composition"(...TRUNCATED) | [[{"lang":"en","title":"Jazz","text":"jazz-influenced","start":26,"end":41},{"lang":"en","title":"Sy(...TRUNCATED) | ["p","p","p","p","p","p","p","p","p","p","p","p","blockquote","p","p","p","p","p","p","p","p","p","p(...TRUNCATED) | ["George Gershwin","Orchestral jazz","Rhapsody (music)","Carnegie Hall","Walter Damrosch","New York (...TRUNCATED) | ["1928 compositions","Compositions by George Gershwin","Grammy Hall of Fame Award recipients","Music(...TRUNCATED) | ["Short description","About","Italic title","Use mdy dates","Infobox musical composition","Cite news(...TRUNCATED) | 142 | ["An American in Paris","AnAmericanInParis","An American In Paris","American in Paris","An american (...TRUNCATED) |
en-316-1338992324 | en | 316 | 1,338,992,324 | article | Academy Award for Best Production Design | Q277751 | ["The Academy Award for Best Production Design recognizes achievement for art direction in film. The(...TRUNCATED) | [
"__LEAD__",
"__LEAD__",
"Shortlisted finalists",
"See also",
"See also",
"See also",
"See also"
] | [[{"lang":"en","title":"Art director","text":"art direction","start":72,"end":85},{"lang":"en","titl(...TRUNCATED) | [
"p",
"p",
"p",
"li",
"li",
"li",
"li"
] | ["Academy of Motion Picture Arts and Sciences","1927 in film","1928 in film","Nathan Crowley","Lee S(...TRUNCATED) | ["Academy Awards","Best Production Design Academy Award winners","Awards for best production design"(...TRUNCATED) | ["Short description","Use mdy dates","Infobox award","Start date and age","Cite web","Clear","Legend(...TRUNCATED) | 1,500 | ["Academy Award for Best Production Design","Academy Award: Best Art Direction","Best Art Direction-(...TRUNCATED) |
en-324-1340945663 | en | 324 | 1,340,945,663 | article | Academy Awards | Q19020 | ["The Academy Awards, commonly known as the Oscars, are awards for artistic and technical merit in f(...TRUNCATED) | ["__LEAD__","__LEAD__","__LEAD__","History","History","History","History","History","History","Histo(...TRUNCATED) | [[{"lang":"en","title":"Academy of Motion Picture Arts and Sciences","text":"Academy of Motion Pictu(...TRUNCATED) | ["p","p","p","p","p","p","p","p","p","p","p","p","p","p","p","p","p","p","p","p","p","p","p","p","p"(...TRUNCATED) | ["Film industry","Academy of Motion Picture Arts and Sciences","97th Academy Awards","Academy Award (...TRUNCATED) | ["Academy Awards","1929 establishments in California","1953 American television series debuts","Amer(...TRUNCATED) | ["Short description","Redirect-multi","Pp-move","Use American English","Use mdy dates","Infobox awar(...TRUNCATED) | 18,983 | ["Academy Awards","AcademyAwards","Academy award","Oscars","Academy-Award","Oscar award","Oscar Awar(...TRUNCATED) |
wikipedia-paragraphs
wikipedia-paragraphs is a dataset generated from Wikipedia, designed for natural language processing (NLP) research.
Each entry contains cleaned paragraph text and Wikilink information extracted from a Wikipedia page, along with useful metadata such as categories, templates, and the associated Wikidata QID.
Dataset structure
Configurations
The dataset is organized into multiple configurations, such as enwiki-20260301-v1.2.0.
Each configuration corresponds to a specific Wikipedia dump from which the data was sourced.
The version number denotes the version of the scripts used to process the data.
Data instances
Each instance in the dataset represents a single Wikipedia page, which can be an article, category, or template.
The following example from the enwiki-20260301-v1.2.0 configuration shows the data generated from the English Wikipedia article on Éclair.
{
"id": "en-1980219-1336076184",
"lang": "en",
"page_id": 1980219,
"revision_id": 1336076184,
"page_type": "article",
"title": "Éclair",
"wikidata_qid": "Q273426",
"paragraph_texts": [
"An éclair (English: /ɪˈklɛər/ ⓘ ih-KLAIR or /eɪˈklɛər/ ay-KLAIR, French: [eklɛːʁ] ⓘ; lit. 'lightning') is a pastry made with choux dough filled with a cream and topped with a flavored icing. The dough, which is the same as that used for profiteroles, is typically piped into an oblong shape with a pastry bag and baked until it is crisp and hollow inside. Once cool, the pastry is filled with custard (crème pâtissière), whipped cream or chiboust cream, then iced with fondant icing. Other fillings include pistachio- and rum-flavored custard, fruit-flavored fillings or chestnut purée. When the icing is caramel, the dessert may be called a bâton de Jacob (lit. 'Jacob's staff'). A similar pastry in a round rather than oblong shape is called a religieuse.",
"The word comes from the French éclair, meaning 'flash of lightning', so named because it is eaten quickly (in a flash); however some believe that the name is due to the glistening of the frosting resembling lightning.",
"The éclair originated during the 19th century in Lyon, France where it was called pain à la Duchesse ('Duchess-style bread') or petite duchesse ('little duchess') until 1850. The word is first attested both in English and in French in the 1860s.",
...
],
"paragraph_sections": [
"__LEAD__",
"Etymology",
"History",
...
],
"paragraph_wikilinks": [ [229/346]
[
{
"lang": "en",
"title": "Pastry",
"text": "pastry",
"start": 108,
"end": 114
},
{
"lang": "en",
"title": "Choux pastry",
"text": "choux",
"start": 125,
"end": 130
},
{
"lang": "en",
"title": "Profiterole",
"text": "profiteroles",
"start": 237,
"end": 249
},
...
],
[
{
"lang": "en",
"title": "Lightning",
"text": "lightning",
"start": 57,
"end": 66
}
],
[
{
"lang": "en",
"title": "Lyon",
"text": "Lyon",
"start": 49,
"end": 53
}
],
...
],
"paragraph_html_tags": [
"p",
"p",
"p",
...
],
"linked_articles": [
"France",
"French cuisine",
"Pastry",
...
],
"categories": [
"Albanian cuisine",
"Belgian desserts",
"Custard desserts",
...
],
"templates": [
"Short description",
"Use American English",
"Use mdy dates",
...
],
"num_inlinks": 69,
"redirects": [
"Éclair",
"Chocolate eclair",
"Eclairs",
...
]
}
Data Fields
- id (string): A unique ID for the instance, composed of
lang,page_idandrevision_id - lang (string): The Wikipedia edition code of the page.
- page_id (int64): The page ID of the page.
- revision_id (int64): The revision ID of the page.
- page_type (string): The page type, one of:
"article","category", or"template". - title (string): The page title.
- wikidata_qid (string, optional): The corresponding Wikidata QID, if available.
- paragraph_texts (list of string): A list of cleaned paragraph texts extracted from the page's HTML.
- paragraph_sections (list of string): A list of section titles corresponding to each paragraph.
__LEAD__denotes the page's lead section. - paragraph_wikilinks (list of list): A nested list where each inner list contains the wikilinks for the corresponding paragraph. Each wikilink object has the following fields:
- lang (string): The Wikipedia edition code of the target page.
- title (string): The title of the target page.
- text (string): The anchor text of the wikilink.
- start (int64): The starting character index of the anchor text in the paragraph.
- end (int64): The ending character index of the anchor text in the paragraph.
- paragraph_html_tags (list of string): The HTML tag from which each paragraph was extracted, one of:
"p","li""dt","dd", or"blockquote" - linked_articles (list of string): A list of article titles linked from the page.
- categories (list of string): A list of categories assigned to the page.
- templates (list of string): A list of templates used on the page.
- num_inlinks (int64): The number of pages linking to this page. The meaning depends on the page type:
- For articles, it's the number of pages with wikilinks pointing to this page.
- For categories, it's the number of pages assigned to this category.
- For templates, it's the number of pages where this template is used.
- redirects (list of string): A list of page titles that redirect to this page.
Example usage
The following example shows how to use the dataset to build a corpus of lead paragraphs from articles.
from datasets import load_dataset
# Load the dataset in streaming mode to avoid downloading it all at once
dataset = load_dataset("singletongue/wikipedia-paragraphs", name="enwiki-20260301-v1.2.0", split="train", streaming=True)
# Define a function to filter for relevant article pages
def filter_example(example):
# Keep only article pages
if example["page_type"] != "article":
return False
# Exclude articles that are just lists
if example["title"].startswith("List of"):
return False
# Exclude disambiguation pages
if "Disambiguation" in example["templates"]:
return False
return True
dataset = dataset.filter(filter_example)
# Define a function to extract and combine all paragraphs from the lead section
def get_lead_paragraph_text(example):
lead_paragraphs = []
for text, section in zip(example["paragraph_texts"], example["paragraph_sections"]):
if section == "__LEAD__":
lead_paragraphs.append(text)
# Join the paragraphs into a single string, replacing newlines with spaces
return {"lead_paragraph_text": " ".join(lead_paragraphs).replace("\n", " ")}
dataset = dataset.map(get_lead_paragraph_text)
# Take the first 100 articles and save their lead paragraphs to a file
with open("corpus.txt", "w") as fo:
for example in dataset.take(100):
print(example["lead_paragraph_text"], file=fo)
Dataset creation process
This dataset is created from the Wikipedia CirrusSearch dumps and Wikimedia Enterprise HTML dumps. We also utilized the Wikimedia REST API to fetch HTML content that was missing from the dumps.
The code used for creating this dataset is available in the GitHub repository.
License
This dataset is available under the CC-BY-SA 4.0 and GFDL licenses.
Limitation
This dataset is created from specific snapshots of Wikipedia. It may contain outdated information or content that is no longer available on Wikipedia, as well as material that may be considered inappropriate.
- Downloads last month
- 561