wakalinus
A simple sentiment analysis utility for Japanese.
Requirements
- Python 3
Usage
import wakalinus
analyzer = wakalinus.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}]
Installation
$ pip install wakalinus
Metadata
Release files for wakalinus 0.1.1
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 |
|---|---|---|---|---|
| wakalinus-0.1.1.tar.gz | 72.4 kB | Without provenance | Details for wakalinus-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wakalinus-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for wakalinus-0.1.1-py3-none-any.whl |
Total release size: 145.8 kB
Release files / wakalinus-0.1.1.tar.gz
| Download URL | wakalinus-0.1.1.tar.gz |
|---|---|
| Size | 72.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c9d4ef5a20a5c160b472d2c5cbdb7c6fbf189882546f4b6469f66c9236a39e6
|
|
BLAKE2b-256 checksum How to use checksums |
dfe17dfa9a2803b592155161bb4cff226e7c9ddbb33a92034621704f89516c43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6
|
Release files / wakalinus-0.1.1-py3-none-any.whl
| Download URL | wakalinus-0.1.1-py3-none-any.whl |
|---|---|
| Size | 73.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
42c82da2450ae6f027d9c053f935fdb1276d23f9ee1cfdb57f5c683f08914085
|
|
BLAKE2b-256 checksum How to use checksums |
bb35c390a17006c45750f67f6c23197c102a5792b48661cb75853c50c24e63e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6
|
Security for wakalinus 0.1.1
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.