ranWang's picture
Upload README.md with huggingface_hub
66cb9a9
|
raw
history blame
1.17 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: ru
      num_bytes: 5864612
      num_examples: 120
    - name: ar
      num_bytes: 5560430
      num_examples: 120
    - name: fr
      num_bytes: 2080884094
      num_examples: 46756
    - name: en
      num_bytes: 4599987
      num_examples: 120
    - name: es
      num_bytes: 1882287335
      num_examples: 44878
  download_size: 1592960042
  dataset_size: 5580789663

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...