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.
- Host: GitHub
- URL: https://github.com/naivenlp/naive-stopwords
- Owner: naivenlp
- License: apache-2.0
- Created: 2020-08-03T08:06:13.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-29T04:27:09.000Z (over 4 years ago)
- Last Synced: 2024-12-12T13:18:39.803Z (5 months ago)
- Language: Python
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# naive-stopwords

[](https://badge.fury.io/py/naive-stopwords)
[](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')```