Skip to main content

Emotion analyzer for Japanese

Project description

pymlask

travis-ci.org coveralls.io pyversion latest version Code Health license

pymlask is a Python version of ML-Ask (eMotive eLement and Expression Analysis system)

For details about ML-Ask, See http://arakilab.media.eng.hokudai.ac.jp/~ptaszynski/repository/mlask.htm

See also http://qiita.com/yukinoi/items/ef6fb48b5e3694e9659c (in Japanese)

Contributions are welcome!

Installation

pip install pymlask

Example

from mlask import MLAsk
emotion_analyzer = MLAsk()
emotion_analyzer.analyze('彼のことは嫌いではない!(;´Д`)')
# => {'text': '彼のことは嫌いではない!(;´Д`)',
#     'emotion': defaultdict(<class 'list'>,{'yorokobi': ['嫌い*CVS'], 'suki': ['嫌い*CVS'], 'iya': ['嫌']}),
#     'orientation': 'mostly_POSITIVE',
#     'activation': 'ACTIVE',
#     'emoticon': ['(;´Д`)'],
#     'intension': 2,
#     'intensifier': {'exclamation': ['!'], 'emotikony': ['´Д`', 'Д`', '´Д', '(;´Д`)']},
#     'representative': ('yorokobi', ['嫌い*CVS'])
#     }

LICENSE

The BSD 3-Clause License

CHANGES

0.2.4 (2017-03-01)

  • Fix many bugs

  • Add some emotional words

  • Delete invalid words

  • Correct typo

0.2.1 (2017-02-23)

  • Add 67 emotional words

0.2 (2017-02-22)

  • Support Python 2.X

  • Add 52 emotional words

  • Fix bug

0.1.1 (2017-02-15)

  • Delete debug print (thanks @ssirai)

0.1 (2017-02-10)

  • First release.

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

pymlask-0.2.4.tar.gz (64.4 kB view hashes)

Uploaded Source

Supported by

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