Collection of stopwords for multiple languages. Using ISO 639-1 language code.
Project description
stopwordsiso
Collection of stopwords for multiple languages, using ISO 639-1 language code.
This Python package is based on Stopwords ISO project by Gene Diaz. You can see the full list of stopwords in every languages available there. Contribution to the word lists should also happen there.
Comparable packages also published on npm and bower.
Installation
$ pip install stopwordsiso
Usage
import stopwordsiso as stopwords
stopwords.has_lang("th") # check if there is a stopwords for the language
stopwords.langs() # return a set of all the supported languages
stopwords.stopwords("en") # English stopwords
stopwords.stopwords(["de", "id", "zh"]) # German, Indonesian, and Chinese stopwords
stopwords.stopwords("xxx") # an empty set will be returned for unknown language
Stopwords Data
The entire collection is in JSON format and can be found at stopwords-iso.json
in your stopwordsiso/
Python package directory. You are free to use this collection any way you like.
Stopwords for each language is a list value with a key of respective language in ISO 639-1 language code, like this:
{
"af": [ "aan", "af", "al", "as", ],
"ar": [ "آض", "آمينَ", "آه", "آهاً", ],
}
If you wish to add, remove, or update some of the stopwords, please go to Stopwords ISO project at https://github.com/stopwords-iso.
Credits
- Gene Diaz, stopwords compilation, npm and bower packages
- Arthit Suriyawongkul, Python utility and pip package (was originally at https://github.com/wisesight/stopwords-iso )
- All stopwords sources are listed here
- Get the latest list of stopwords at https://github.com/stopwords-iso/stopwords-iso
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file stopwordsiso-0.6.tar.gz
.
File metadata
- Download URL: stopwordsiso-0.6.tar.gz
- Upload date:
- Size: 80.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.0.3 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cac5c7dab72d64474a4c365df8b8901a871efff2efe189253e2426c01746e75e |
|
MD5 | c6a432fc28bab79a80de187c4b4379fd |
|
BLAKE2b-256 | 555ff3543cb14b64fa55fcf59c29e361f2ad832c7ff484f3ccf5bb98c089b43f |
File details
Details for the file stopwordsiso-0.6-py3-none-any.whl
.
File metadata
- Download URL: stopwordsiso-0.6-py3-none-any.whl
- Upload date:
- Size: 72.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.0.3 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 687c6e8bd5b9d47fea295d555f975a92944ff366887db20b674078bc1f10aa1c |
|
MD5 | 6a2440b64384abb5df990d7fcd5389f2 |
|
BLAKE2b-256 | 7dbc307c1f625022bf6f0b719b6c1d14bcfed8105b50a01fb983e6ff2518e336 |