ranWang's picture
Upload README.md with huggingface_hub
ec7bbcf
|
raw
history blame
1.27 kB
metadata
dataset_info:
  features:
    - name: uuid
      dtype: string
    - name: url
      dtype: string
    - name: title
      dtype: string
    - name: news_content
      sequence:
        sequence:
          sequence: string
    - name: html_content
      dtype: string
  splits:
    - name: ru
      num_bytes: 4612097472
      num_examples: 34774
    - name: zh
      num_bytes: 4853260847
      num_examples: 39850
    - name: en
      num_bytes: 8601079816
      num_examples: 67374
    - name: fr
      num_bytes: 6032856702
      num_examples: 46756
    - name: es
      num_bytes: 5542173377
      num_examples: 44877
    - name: ar
      num_bytes: 4731475832
      num_examples: 35807
  download_size: 14380633549
  dataset_size: 34372944046

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