The viewer is disabled because this dataset repo requires arbitrary Python code execution. Please consider removing the loading script and relying on automated data support (you can use convert_to_parquet from the datasets library). If this is not possible, please open a discussion for direct help.

YAML Metadata Warning: empty or missing yaml metadata in repo card (https://huggingface.co/docs/hub/datasets-cards)

This is an helper script to load an html enterprise dataset into a datasets object

How to use

  1. Download a NS0 dump at https://dumps.wikimedia.org/other/enterprise_html/runs/20230220/

  2. Untar it

For example with:

mkdir enwiki-NS6-20230220-ENTERPRISE-HTML
tar -I pigz -vxf enwiki-NS6-20230220-ENTERPRISE-HTML.json.tar.gz -C enwiki-NS6-20230220-ENTERPRISE-HTML
  1. Load it:
from datasets import load_dataset

local_path=... # Path to directory where you extracted the NS0 dump
shard_id=...

ds = load_dataset(
    "SaulLu/wikipedia_html_enterprise", 
    shard=shard_id, 
    data_dir=local_path
)
Downloads last month
14