superdoc-dev/docx-corpus
docx-corpus The largest classified corpus of Word documents. 736K+ .docx files from the public web, classified into 10 document types and 9 topics across 76 languages. Dataset Description This dataset contains metadata for publicly available .docx files collected from the web. Each document has been classified by document type and topic using a two-stage pipeline: LLM labeling (Claude) of a stratified sample, followed by fine-tuned XLM-RoBERTa classifiers applied… See the full description on the dataset page: https://huggingface.co/datasets/superdoc-dev/docx-corpus.
docx-corpus
The largest classified corpus of Word documents. 736K+ .docx files from the public web, classified into 10 document types and 9 topics across 76 languages.
Dataset Description
This dataset contains metadata for publicly available .docx files collected from the web. Each document has been classified by document type and topic using a two-stage pipeline: LLM labeling (Claude) of a stratified sample, followed by fine-tuned XLM-RoBERTa classifiers applied at scale.
Schema
Document Types
legal, forms, reports, policies, educational, correspondence, technical, administrative, creative, reference
Topics
government, education, healthcare, finance, legal_judicial, technology, environment, nonprofit, general
Download Files
Each row includes a url column pointing to the .docx file on our CDN. You can download files directly:
from datasets import load_dataset
import requests
ds = load_dataset("superdoc-dev/docx-corpus", split="train")
# Filter and download
legal_en = ds.filter(lambda x: x["type"] == "legal" and x["language"] == "en")
for row in legal_en:
resp = requests.get(row["url"])
with open(f"corpus/{row['id']}.docx", "wb") as f:
f.write(resp.content)Or use the manifest API for bulk downloads:
curl "https://api.docxcorp.us/manifest?type=legal&lang=en" -o manifest.txt
wget -i manifest.txt -P ./corpus/Links
- Website: docxcorp.us
- GitHub: superdoc-dev/docx-corpus
- Built by: 🦋 SuperDoc
