stopwords / README.md
nltk-data-hub's picture
Upload README.md with huggingface_hub
e09fab1 verified
metadata
language:
  - sq
  - ar
  - az
  - eu
  - be
  - bn
  - ca
  - zh
  - da
  - nl
  - en
  - fi
  - fr
  - de
  - el
  - he
  - hi
  - hu
  - id
  - it
  - kk
  - ne
  - 'no'
  - pt
  - ro
  - ru
  - sl
  - es
  - sv
  - tg
  - ta
  - tr
  - uz
configs:
  - config_name: albanian
    data_files:
      - split: stopwords
        path: data/albanian/stopwords.parquet
  - config_name: arabic
    data_files:
      - split: stopwords
        path: data/arabic/stopwords.parquet
  - config_name: azerbaijani
    data_files:
      - split: stopwords
        path: data/azerbaijani/stopwords.parquet
  - config_name: basque
    data_files:
      - split: stopwords
        path: data/basque/stopwords.parquet
  - config_name: belarusian
    data_files:
      - split: stopwords
        path: data/belarusian/stopwords.parquet
  - config_name: bengali
    data_files:
      - split: stopwords
        path: data/bengali/stopwords.parquet
  - config_name: catalan
    data_files:
      - split: stopwords
        path: data/catalan/stopwords.parquet
  - config_name: chinese
    data_files:
      - split: stopwords
        path: data/chinese/stopwords.parquet
  - config_name: danish
    data_files:
      - split: stopwords
        path: data/danish/stopwords.parquet
  - config_name: dutch
    data_files:
      - split: stopwords
        path: data/dutch/stopwords.parquet
  - config_name: english
    data_files:
      - split: stopwords
        path: data/english/stopwords.parquet
  - config_name: finnish
    data_files:
      - split: stopwords
        path: data/finnish/stopwords.parquet
  - config_name: french
    data_files:
      - split: stopwords
        path: data/french/stopwords.parquet
  - config_name: german
    data_files:
      - split: stopwords
        path: data/german/stopwords.parquet
  - config_name: greek
    data_files:
      - split: stopwords
        path: data/greek/stopwords.parquet
  - config_name: hebrew
    data_files:
      - split: stopwords
        path: data/hebrew/stopwords.parquet
  - config_name: hinglish
    data_files:
      - split: stopwords
        path: data/hinglish/stopwords.parquet
  - config_name: hungarian
    data_files:
      - split: stopwords
        path: data/hungarian/stopwords.parquet
  - config_name: indonesian
    data_files:
      - split: stopwords
        path: data/indonesian/stopwords.parquet
  - config_name: italian
    data_files:
      - split: stopwords
        path: data/italian/stopwords.parquet
  - config_name: kazakh
    data_files:
      - split: stopwords
        path: data/kazakh/stopwords.parquet
  - config_name: nepali
    data_files:
      - split: stopwords
        path: data/nepali/stopwords.parquet
  - config_name: norwegian
    data_files:
      - split: stopwords
        path: data/norwegian/stopwords.parquet
  - config_name: portuguese
    data_files:
      - split: stopwords
        path: data/portuguese/stopwords.parquet
  - config_name: romanian
    data_files:
      - split: stopwords
        path: data/romanian/stopwords.parquet
  - config_name: russian
    data_files:
      - split: stopwords
        path: data/russian/stopwords.parquet
  - config_name: slovene
    data_files:
      - split: stopwords
        path: data/slovene/stopwords.parquet
  - config_name: spanish
    data_files:
      - split: stopwords
        path: data/spanish/stopwords.parquet
  - config_name: swedish
    data_files:
      - split: stopwords
        path: data/swedish/stopwords.parquet
  - config_name: tajik
    data_files:
      - split: stopwords
        path: data/tajik/stopwords.parquet
  - config_name: tamil
    data_files:
      - split: stopwords
        path: data/tamil/stopwords.parquet
  - config_name: turkish
    data_files:
      - split: stopwords
        path: data/turkish/stopwords.parquet
  - config_name: uzbek
    data_files:
      - split: stopwords
        path: data/uzbek/stopwords.parquet
license: other
task_categories:
  - text-classification
  - token-classification
pretty_name: NLTK Stopwords

NLTK Stopwords

Stopword lists from NLTK, covering 33 languages.

Each language is a separate config. Each row is one stopword.

Usage

from datasets import load_dataset

# Load one language
ds = load_dataset("nltk-data-hub/stopwords", "portuguese")
words = ds["stopwords"]["word"]

# Load all languages
for lang in ['albanian', 'arabic', 'azerbaijani', 'basque', 'belarusian', 'bengali', 'catalan', 'chinese', 'danish', 'dutch', 'english', 'finnish', 'french', 'german', 'greek', 'hebrew', 'hinglish', 'hungarian', 'indonesian', 'italian', 'kazakh', 'nepali', 'norwegian', 'portuguese', 'romanian', 'russian', 'slovene', 'spanish', 'swedish', 'tajik', 'tamil', 'turkish', 'uzbek']:
    ds = load_dataset("nltk-data-hub/stopwords", lang)
    print(lang, ds["stopwords"].num_rows)

Schema

Column Type Description
word string The stopword

Languages and word counts

Language BCP-47 Count
albanian sq 237
arabic ar 754
azerbaijani az 165
basque eu 326
belarusian be 224
bengali bn 398
catalan ca 278
chinese zh 841
danish da 94
dutch nl 101
english en 198
finnish fi 235
french fr 157
german de 232
greek el 265
hebrew he 221
hinglish hi 1,036
hungarian hu 199
indonesian id 758
italian it 279
kazakh kk 324
nepali ne 255
norwegian no 176
portuguese pt 207
romanian ro 356
russian ru 151
slovene sl 1,784
spanish es 313
swedish sv 114
tajik tg 163
tamil ta 125
turkish tr 53
uzbek uz 288

Source

Originally distributed as part of nltk.download('stopwords'). Converted to Parquet for use with the HuggingFace datasets library.

Citation

@book{nltk,
  author    = {Bird, Steven and Klein, Ewan and Loper, Edward},
  title     = {Natural Language Processing with Python},
  publisher = {O'Reilly Media},
  year      = {2009},
  url       = {https://www.nltk.org/}
}