Skip to main content

Emotion analyzer for Japanese

Project description

pymlask

travis-ci.org coveralls.io pyversion latest version 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

Modified dictionary version

pip install pymlask

ML-Ask Original dictionary version (same as Ptaszynski’s Perl version)

pip install git+https://github.com/ikegami-yukino/pymlask@original

Example

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

LICENSE

The BSD 3-Clause License

CHANGES

0.3.2 (2019-07-09)

  • Fix bugs about emotion pattern matching (thanks @brunotoshio)

  • Fix bug about activation count (thanks @brunotoshio)

0.3.1 (2019-05-22)

  • Use MeCab.Tagger().parse() instead of MeCab.Tagger().parseToNode

0.3 (2019-05-17)

  • The 712 emotional words from Kanjou kotoba erabi jiten (感情ことば選び辞典) are newly added

  • Support Python 3.7

  • Unsupport Python 2.6 and 3.3

0.2.5 (2017-09-14)

  • Fix bugs about MeCab (thanks @Kensuke-Mitsuzawa)

  • Delete install_requires

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.3.2.tar.gz (70.1 kB view details)

Uploaded Source

File details

Details for the file pymlask-0.3.2.tar.gz.

File metadata

  • Download URL: pymlask-0.3.2.tar.gz
  • Upload date:
  • Size: 70.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for pymlask-0.3.2.tar.gz
Algorithm Hash digest
SHA256 1f51723f62931205286f2b67746282ad1e7c052ab9e14f2ce396ef8fca422825
MD5 7ce12b95b65ec82ae0ec8c20d8e99f0c
BLAKE2b-256 67a2e4f0fd6d3cec795232979f8aae2e8df1e2b2aeb30258be8771535df5e4dd

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