프로젝트
GitHub에서 보기
Liebeck/spacy-sentiws
소개
German sentiment scores with SentiWS as extension for spaCy
AI 및 머신러닝측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalspacy-sentiws
This package uses the spaCy 3 extensions to add SentiWS as German sentiment score directly into your spaCy pipeline.
Usage
import spacy
from spacy_sentiws import spaCySentiWS
nlp = spacy.load('de_core_news_sm')
nlp.add_pipe('sentiws', config={'sentiws_path': 'data/sentiws/'})
doc = nlp('Die Dummheit der Unterwerfung blüht in hübschen Farben.')
for token in doc:
print('{}, {}, {}'.format(token.text, token._.sentiws, token.pos_))
Installation
- Use pip to install spacy-sentiws
pip install spacy-sentiws
- Download the SentiWS http://pcai056.informatik.uni-leipzig.de/downloads/etc/SentiWS/SentiWS_v2.0.zip and unzip it. The directory
data/sentiwswill be used by default.
Local development
Use develop.py to extend the functionality
How to run the tests
python -m unittest
How to update pip package: https://widdowquinn.github.io/coding/update-pypi-package/
python setup.py sdist bdist_wheel
twine upload dist/PACKAGENAME-VERSION.tar.gz
Contributors
- stereolith (Thanks for upgrading to spaCy 3)
관련 프로젝트 살펴보기
불러오는 중…