rccnlp
RCC 自然言語処理班で使うツールキットです。
実行環境
- Python 3
インストール
$ pip install rccnlp
使い方
センチメント分析
from rccnlp.sentiment import Analyzer
analyzer = Analyzer()
analyzer.analyze('天国で待ってる。')
# => [1.0]
analyzer.analyze('遅刻したけど楽しかったし嬉しかった。すごく充実した!')
# => [0.3333333333333333, 1.0]
analyzer.count_polarity('遅刻したけど楽しかったし嬉しかった。すごく充実した!')
# => [{'positive': 2, 'negative': 1}, {'positive': 1, 'negative': 0}])
analyzer.count_polarity('そこにはいつもと変わらない日常があった。')
# => [{'positive': 0, 'negative': 0}]
analyzer.analyze_detail('お金も希望もない!')
# => [{'positive': [], 'negative': ['お金-NEGATION', '希望-NEGATION'], 'score': -1.0}])
analyzer.analyze_detail('お金がないわけではない')
# => [{'positive': ['お金'], 'negative': [], 'score': 1.0}]
Metadata
Release files for rccnlp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rccnlp-0.1.0.tar.gz | 72.7 kB | Without provenance | Details for rccnlp-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rccnlp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for rccnlp-0.1.0-py3-none-any.whl |
Total release size: 145.1 kB
Release files / rccnlp-0.1.0.tar.gz
| Download URL | rccnlp-0.1.0.tar.gz |
|---|---|
| Size | 72.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
677f508fc18d36df7d322f20ccb88eb6c89a4b4c310b1d4a3611b2476e3961c4
|
|
BLAKE2b-256 checksum How to use checksums |
3e17c72d2b4d1b4a39d808d95a82e923d10b14c988ed192a6b0883508132eae7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.6
|
Release files / rccnlp-0.1.0-py3-none-any.whl
| Download URL | rccnlp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 72.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
15bfc6ddcddd2455cacf96649d78246ab114bde67e10f60c1ebea29bbe8467e1
|
|
BLAKE2b-256 checksum How to use checksums |
840979661246375e799d239c5c6c42d4248a5f944c86949d04fe5e0fde1ac505
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.6
|
Security for rccnlp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.