ranWang's picture
Upload README.md with huggingface_hub
eff8195
|
raw
history blame
1.16 kB
metadata
dataset_info:
  features:
    - name: uuid
      dtype: string
    - name: url
      dtype: string
    - name: title
      dtype: string
    - name: html_content
      dtype: string
  splits:
    - name: zh
      num_bytes: 1601593205
      num_examples: 39851
    - name: es
      num_bytes: 5021837
      num_examples: 120
    - name: ru
      num_bytes: 5864612
      num_examples: 120
    - name: fr
      num_bytes: 5059295
      num_examples: 120
    - name: en
      num_bytes: 4599987
      num_examples: 120
    - name: ar
      num_bytes: 5560430
      num_examples: 120
  download_size: 456115539
  dataset_size: 1627699366

Dataset Card for "un_corpus_for_sitemap"

How to use

from datasets import load_dataset
import datasets


dataset = load_dataset('ranWang/un_corpus_for_sitemap')

#   lang_list = ['zh', 'en', 'fr', 'es', 'ru', 'ar']
for lang in dataset:
    for colum in dataset[lang]:
#       colum.keys = ['uuid', 'url', 'title', 'html_content']
#       code...

OR 

# you want to specify the language
dataset = load_dataset('ranWang/un_corpus_for_sitemap', split={lang})

for colum in dataset:
#   colum.keys = ['uuid', 'url', 'title', 'html_content']
#   code...