Stopwords in NLP
Installation
pip install stopwds
you may want to checkout the version
stopwds version
Usage
stopwords
from stopwds import stopwords
'''
baidu: 百度停用词表
hit: 哈工大停用词表
scu: 四川大学机器智能实验室停用词表
cn: 中文停用词表
'''
for stopword in stopwords('baidu'):
print(stopword)
and you can use like this:
from stopwds import stopwords
import jieba
text = ('医美产业崛起的同时,我国医美行业也形成了一条清晰且完整的产业链,上游医美产品生产企业占据了产业链核心环节。')
cut_sent = [word for word in jieba.cut(text) if word and word not in stopwords()]
Acknowlegements
- stopwords
Metadata
Release files for stopwds 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| stopwds-0.1.5.tar.gz | 5.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| stopwds-0.1.5-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 25.1 kB
Release files / stopwds-0.1.5.tar.gz
| Download URL | stopwds-0.1.5.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c12ac69fc2c4b4351e6798828c85e34246fad4986f9c0c51c24dcb0b0f52cad
|
|
BLAKE2b-256 checksum How to use checksums |
ba69cf9dc71114587cbc2953d588c03b1c911136b61044d732ded7f3e96a1489
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9
|
Release files / stopwds-0.1.5-py2.py3-none-any.whl
| Download URL | stopwds-0.1.5-py2.py3-none-any.whl |
|---|---|
| Size | 19.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
c5d7d4406b2b63a3e37a69edbe0afbe706969e25a0b9a632f4505dfd577de86d
|
|
BLAKE2b-256 checksum How to use checksums |
90ba1a53c74261ed3c53206a5fb70580999e23c81668ab30b0afb816dc9eb8c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9
|