Skip to content

naivenlp/naive-stopwords

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

naive-stopwords

Python package PyPI version Python

Stop words for Chinese.

Installation

pip install -U naive-stopwords

Usage

>>> 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')