An open API service indexing awesome lists of open source software.

https://github.com/naivenlp/naive-stopwords

Stop words for Chinese.
https://github.com/naivenlp/naive-stopwords

Last synced: 3 months ago
JSON representation

Stop words for Chinese.

Awesome Lists containing this project

README

        

# naive-stopwords

![Python package](https://github.com/naivenlp/naive-stopwords/workflows/Python%20package/badge.svg)
[![PyPI version](https://badge.fury.io/py/naive-stopwords.svg)](https://badge.fury.io/py/naive-stopwords)
[![Python](https://img.shields.io/pypi/pyversions/naive-stopwords.svg?style=plastic)](https://badge.fury.io/py/naive-stopwords)

Stop words for Chinese.

## Installation

```bash
pip install -U naive-stopwords
```

## Usage

```bash
>>> from naive_stopwords import Stopwords
>>> sw = Stopwords()
>>> sw.size()
2321
>>> sw.contains('hello')
True
>>> sw.add('的')
>>> sw.size()
2321
>>> sw.remove('的')
>>> sw.size()
2320
>>> sw.dump('file.txt')

```