No project description provided
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wakalinus-0.1.1.tar.gz
(72.4 kB
view hashes)
Built Distribution
wakalinus-0.1.1-py3-none-any.whl
(73.4 kB
view hashes)
Close
Hashes for wakalinus-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42c82da2450ae6f027d9c053f935fdb1276d23f9ee1cfdb57f5c683f08914085 |
|
MD5 | 439ca44600d2662b957fff99ce64a746 |
|
BLAKE2b-256 | bb35c390a17006c45750f67f6c23197c102a5792b48661cb75853c50c24e63e9 |