Skip to main content

No project description provided

Project description

wakalinus

build PyPi MIT License

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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wakalinus-0.1.1-py3-none-any.whl (73.4 kB view details)

Uploaded Python 3

File details

Details for the file wakalinus-0.1.1.tar.gz.

File metadata

  • Download URL: wakalinus-0.1.1.tar.gz
  • Upload date:
  • Size: 72.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for wakalinus-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0c9d4ef5a20a5c160b472d2c5cbdb7c6fbf189882546f4b6469f66c9236a39e6
MD5 46ea68fc4e979d2d99fe337cc0a57be0
BLAKE2b-256 dfe17dfa9a2803b592155161bb4cff226e7c9ddbb33a92034621704f89516c43

See more details on using hashes here.

File details

Details for the file wakalinus-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: wakalinus-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 73.4 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for wakalinus-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 42c82da2450ae6f027d9c053f935fdb1276d23f9ee1cfdb57f5c683f08914085
MD5 439ca44600d2662b957fff99ce64a746
BLAKE2b-256 bb35c390a17006c45750f67f6c23197c102a5792b48661cb75853c50c24e63e9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page