pymlask


Namepymlask JSON
Version 0.3.3 PyPI version JSON
download
home_pagehttps://github.com/ikegami-yukino/pymlask
SummaryEmotion analyzer for Japanese
upload_time2024-07-25 16:20:12
maintainerNone
docs_urlNone
authorYukino Ikegami
requires_pythonNone
licenseThe BSD 3-Clause License
keywords emotion analysis
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            pymlask
===================

|coveralls| |pyversion| |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!

Dependencies
==============
MeCab binary
-------------

* Windows (32-bit Python): https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7WElGUGt6ejlpVXc
* Windows (64-bit Python): https://github.com/ikegami-yukino/mecab/releases
* macOS with Homebrew: $ brew install mecab mecab-ipadic
* Ubuntu: $ sudo apt install mecab libmecab-dev mecab-ipadic-utf8

Installation
==============
Modified dictionary version (recommended)

::

 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
===========

.. code:: python

 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'])
 #     }
 emotion_analyzer = mlask.MLAsk('-d /usr/local/lib/mecab/dic/mecab-ipadic-neologd')  # Use other dictionary

Dictionary sources
====================
* 中村 明 (1993) "感情表現辞典" 東京堂出版
* 学研辞典編集部 (2017) "感情ことば選び辞典" 学研プラス
* Angela Ackerman, Becca Puglisi (2012) "The Emotion Thesaurus: A Writer's Guide to Character Expression" JADD Publishing. (滝本 杏奈 (訳) (2015) "感情類語辞典" フィルムアート社)
* Angela Ackerman, Becca Puglisi (2013) "The Positive Trait Thesaurus: A Writer's Guide to Character Attributes" JADD Publishing (滝本 杏奈 (訳) (2016) "性格類語辞典 ポジティブ編" フィルムアート社)
* Angela Ackerman, Becca Puglisi (2013) "The Negative Trait Thesaurus: A Writer's Guide to Character Attributes" JADD Publishing (滝本 杏奈 (訳) (2016) "性格類語辞典 ポジティブ編" フィルムアート社)

LICENSE
=========

The BSD 3-Clause License


Copyright
=============

ML-Ask Python: The BSD 3-Clause License
(c) 2017 Yukino Ikegami. All Rights Reserved.

ML-Ask (original): The BSD 3-Clause License
(c) 2007-2013, Michal Ptaszynski, Pawel Dybala, Rafal Rzepka, Kenji Arakii. All Rights Reserved.

Cited by
=========

Scientific paper
-----------------
- Yingying Lao, Tomoya Kishida, Junqi Zhao, Dongli Han. A Practical and Emotional Response Technique: Context-Based Sticker Suggestion Model on the Line App. In Proceedings of the 8th International Conference on Frontiers of Educational Technologies (ICFET '22), p.162–168, 2022.
- 大澤 卓也. 「いじめ自殺」の社会問題に対するツイッター上の感情分析. 立命館産業社会論集, 第56巻, 第4号, p.85-104, 2021.
- Yoshihiro ADACHI, Tomohiro KONDO, Takamitsu KOBAYASHI, Nao ETANI, Kaito ISHII. Emotion Analysis of Japanese Sentences Using an Emotion-word Dictionary. Journal of the Visualization Society of Japan, Volume 41, Issue 161, p.21-27, 2022.
- 吉田 光男, 鳥海 不二夫, 榊 剛史. COVID-19流行下でのインフォデミック ―Twitterで流れたGoToトラベルに関する情報―. オペレーションズ・リサーチ, 2021年4月号, p.216-223, 2021.
- Tomoya Kitayama. COVID-19 and its impact on the national examination for pharmacists in Japan: An SNS text analysis. PLoS ONE, 18(6), 2023.
- 山田耕. コロナ禍の中で語られた「広島の観光」とは? ― 広島観光客数を Twitter から予測する ―. 安田女子大学 現代ビジネス学会誌 2022 年度, Vol.11, p.28-56, 2023.
- 星野 雄介. ⾃然⾔語処理技術を⽤いた新型コロナウイルスに関する新聞社説の予備的分析 ―新聞社ごとの違いと研究の展望―. 武蔵野大学経営研究所紀要, 第5号, p.113-148, 2022.

Blog
------
- 【Python】PymlaskでML-ASK感情分析をやってみた話  |  ミナピピンの研究室: https://tkstock.site/2022/07/07/python-pymlask-ml-ask-emotion-naturallanguage/
- CentOS8にML-AskのPythonライブラリのインストール - 株式会社CoLabMix: https://colabmix.co.jp/tech-blog/centos8-ml-ask-python/
- VS Code上でPyML-Askを実行した際のImportError: https://teratail.com/questions/ex9rdi58hl634f

.. |coveralls| image:: https://coveralls.io/repos/ikegami-yukino/pymlask/badge.png
    :target: https://coveralls.io/r/ikegami-yukino/pymlask
    :alt: coveralls.io

.. |pyversion| image:: https://img.shields.io/pypi/pyversions/pymlask.svg

.. |version| image:: https://img.shields.io/pypi/v/pymlask.svg
    :target: http://pypi.python.org/pypi/pymlask/
    :alt: latest version

.. |license| image:: https://img.shields.io/pypi/l/mlask.svg
    :target: http://pypi.python.org/pypi/mlask/
    :alt: license


CHANGES
=======

0.3.3 (2024-07-26)
------------------------

- Support mecab and mecab-python3 simultaneously (thanks @phuongdo)

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.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ikegami-yukino/pymlask",
    "name": "pymlask",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "emotion analysis",
    "author": "Yukino Ikegami",
    "author_email": "yknikgm@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/fa/4f/5c3cc7d85d1fae4b357a855f4441ba0956bfcc34597ad95354e326a75693/pymlask-0.3.3.tar.gz",
    "platform": "POSIX",
    "description": "pymlask\n===================\n\n|coveralls| |pyversion| |version| |license|\n\npymlask is a Python version of ML-Ask (eMotive eLement and Expression Analysis system)\n\nFor details about ML-Ask, See http://arakilab.media.eng.hokudai.ac.jp/~ptaszynski/repository/mlask.htm\n\nSee also http://qiita.com/yukinoi/items/ef6fb48b5e3694e9659c (in Japanese)\n\nContributions are welcome!\n\nDependencies\n==============\nMeCab binary\n-------------\n\n* Windows (32-bit Python): https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7WElGUGt6ejlpVXc\n* Windows (64-bit Python): https://github.com/ikegami-yukino/mecab/releases\n* macOS with Homebrew: $ brew install mecab mecab-ipadic\n* Ubuntu: $ sudo apt install mecab libmecab-dev mecab-ipadic-utf8\n\nInstallation\n==============\nModified dictionary version (recommended)\n\n::\n\n pip install pymlask\n\nML-Ask Original dictionary version (same as Ptaszynski's Perl version)\n\n::\n\n pip install git+https://github.com/ikegami-yukino/pymlask@original\n\nExample\n===========\n\n.. code:: python\n\n from mlask import MLAsk\n emotion_analyzer = MLAsk()\n emotion_analyzer.analyze('\u5f7c\u306e\u3053\u3068\u306f\u5acc\u3044\u3067\u306f\u306a\u3044\uff01(;\u00b4\u0414`)')\n # => {'text': '\u5f7c\u306e\u3053\u3068\u306f\u5acc\u3044\u3067\u306f\u306a\u3044\uff01(;\u00b4\u0414`)',\n #     'emotion': defaultdict(<class 'list'>,{'yorokobi': ['\u5acc\u3044*CVS'], 'suki': ['\u5acc\u3044*CVS']}),\n #     'orientation': 'POSITIVE',\n #     'activation': 'NEUTRAL',\n #     'emoticon': ['(;\u00b4\u0414`)'],\n #     'intension': 2,\n #     'intensifier': {'exclamation': ['\uff01'], 'emotikony': ['\u00b4\u0414`', '\u0414`', '\u00b4\u0414', '(;\u00b4\u0414`)']},\n #     'representative': ('yorokobi', ['\u5acc\u3044*CVS'])\n #     }\n emotion_analyzer = mlask.MLAsk('-d /usr/local/lib/mecab/dic/mecab-ipadic-neologd')  # Use other dictionary\n\nDictionary sources\n====================\n* \u4e2d\u6751 \u660e (1993) \"\u611f\u60c5\u8868\u73fe\u8f9e\u5178\" \u6771\u4eac\u5802\u51fa\u7248\n* \u5b66\u7814\u8f9e\u5178\u7de8\u96c6\u90e8 (2017) \"\u611f\u60c5\u3053\u3068\u3070\u9078\u3073\u8f9e\u5178\" \u5b66\u7814\u30d7\u30e9\u30b9\n* Angela Ackerman, Becca Puglisi (2012) \"The Emotion Thesaurus: A Writer's Guide to Character Expression\" JADD Publishing. (\u6edd\u672c \u674f\u5948 (\u8a33) (2015) \"\u611f\u60c5\u985e\u8a9e\u8f9e\u5178\" \u30d5\u30a3\u30eb\u30e0\u30a2\u30fc\u30c8\u793e)\n* Angela Ackerman, Becca Puglisi (2013) \"The Positive Trait Thesaurus: A Writer's Guide to Character Attributes\" JADD Publishing (\u6edd\u672c \u674f\u5948 (\u8a33) (2016) \"\u6027\u683c\u985e\u8a9e\u8f9e\u5178 \u30dd\u30b8\u30c6\u30a3\u30d6\u7de8\" \u30d5\u30a3\u30eb\u30e0\u30a2\u30fc\u30c8\u793e)\n* Angela Ackerman, Becca Puglisi (2013) \"The Negative Trait Thesaurus: A Writer's Guide to Character Attributes\" JADD Publishing (\u6edd\u672c \u674f\u5948 (\u8a33) (2016) \"\u6027\u683c\u985e\u8a9e\u8f9e\u5178 \u30dd\u30b8\u30c6\u30a3\u30d6\u7de8\" \u30d5\u30a3\u30eb\u30e0\u30a2\u30fc\u30c8\u793e)\n\nLICENSE\n=========\n\nThe BSD 3-Clause License\n\n\nCopyright\n=============\n\nML-Ask Python: The BSD 3-Clause License\n(c) 2017 Yukino Ikegami. All Rights Reserved.\n\nML-Ask (original): The BSD 3-Clause License\n(c) 2007-2013, Michal Ptaszynski, Pawel Dybala, Rafal Rzepka, Kenji Arakii. All Rights Reserved.\n\nCited by\n=========\n\nScientific paper\n-----------------\n- Yingying Lao, Tomoya Kishida, Junqi Zhao, Dongli Han. A Practical and Emotional Response Technique: Context-Based Sticker Suggestion Model on the Line App. In Proceedings of the 8th International Conference on Frontiers of Educational Technologies (ICFET '22), p.162\u2013168, 2022.\n- \u5927\u6fa4\u3000\u5353\u4e5f. \u300c\u3044\u3058\u3081\u81ea\u6bba\u300d\u306e\u793e\u4f1a\u554f\u984c\u306b\u5bfe\u3059\u308b\u30c4\u30a4\u30c3\u30bf\u30fc\u4e0a\u306e\u611f\u60c5\u5206\u6790. \u7acb\u547d\u9928\u7523\u696d\u793e\u4f1a\u8ad6\u96c6, \u7b2c56\u5dfb, \u7b2c4\u53f7, p.85-104, 2021.\n- Yoshihiro ADACHI, Tomohiro KONDO, Takamitsu KOBAYASHI, Nao ETANI, Kaito ISHII. Emotion Analysis of Japanese Sentences Using an Emotion-word Dictionary. Journal of the Visualization Society of Japan, Volume 41, Issue 161, p.21-27, 2022.\n- \u5409\u7530\u3000\u5149\u7537\uff0c \u9ce5\u6d77\u3000\u4e0d\u4e8c\u592b\uff0c \u698a\u3000\u525b\u53f2. COVID-19\u6d41\u884c\u4e0b\u3067\u306e\u30a4\u30f3\u30d5\u30a9\u30c7\u30df\u30c3\u30af \u2015Twitter\u3067\u6d41\u308c\u305fGoTo\u30c8\u30e9\u30d9\u30eb\u306b\u95a2\u3059\u308b\u60c5\u5831\u2015. \u30aa\u30da\u30ec\u30fc\u30b7\u30e7\u30f3\u30ba\u30fb\u30ea\u30b5\u30fc\u30c1, 2021\u5e744\u6708\u53f7, p.216-223, 2021.\n- Tomoya Kitayama. COVID-19 and its impact on the national examination for pharmacists in Japan: An SNS text analysis. PLoS ONE, 18(6), 2023.\n- \u5c71\u7530\u8015. \u30b3\u30ed\u30ca\u798d\u306e\u4e2d\u3067\u8a9e\u3089\u308c\u305f\u300c\u5e83\u5cf6\u306e\u89b3\u5149\u300d\u3068\u306f\uff1f \u2015 \u5e83\u5cf6\u89b3\u5149\u5ba2\u6570\u3092 Twitter \u304b\u3089\u4e88\u6e2c\u3059\u308b \u2015. \u5b89\u7530\u5973\u5b50\u5927\u5b66 \u73fe\u4ee3\u30d3\u30b8\u30cd\u30b9\u5b66\u4f1a\u8a8c 2022 \u5e74\u5ea6, Vol.11, p.28-56, 2023.\n- \u661f\u91ce \u96c4\u4ecb. \u2f83\u7136\u2f94\u8a9e\u51e6\u7406\u6280\u8853\u3092\u2f64\u3044\u305f\u65b0\u578b\u30b3\u30ed\u30ca\u30a6\u30a4\u30eb\u30b9\u306b\u95a2\u3059\u308b\u65b0\u805e\u793e\u8aac\u306e\u4e88\u5099\u7684\u5206\u6790 \u2015\u65b0\u805e\u793e\u3054\u3068\u306e\u9055\u3044\u3068\u7814\u7a76\u306e\u5c55\u671b\u2015. \u6b66\u8535\u91ce\u5927\u5b66\u7d4c\u55b6\u7814\u7a76\u6240\u7d00\u8981, \u7b2c5\u53f7, p.113-148, 2022.\n\nBlog\n------\n- \u3010Python\u3011Pymlask\u3067ML-ASK\u611f\u60c5\u5206\u6790\u3092\u3084\u3063\u3066\u307f\u305f\u8a71  |  \u30df\u30ca\u30d4\u30d4\u30f3\u306e\u7814\u7a76\u5ba4: https://tkstock.site/2022/07/07/python-pymlask-ml-ask-emotion-naturallanguage/\n- CentOS8\u306bML-Ask\u306ePython\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb - \u682a\u5f0f\u4f1a\u793eCoLabMix: https://colabmix.co.jp/tech-blog/centos8-ml-ask-python/\n- VS Code\u4e0a\u3067PyML-Ask\u3092\u5b9f\u884c\u3057\u305f\u969b\u306eImportError: https://teratail.com/questions/ex9rdi58hl634f\n\n.. |coveralls| image:: https://coveralls.io/repos/ikegami-yukino/pymlask/badge.png\n    :target: https://coveralls.io/r/ikegami-yukino/pymlask\n    :alt: coveralls.io\n\n.. |pyversion| image:: https://img.shields.io/pypi/pyversions/pymlask.svg\n\n.. |version| image:: https://img.shields.io/pypi/v/pymlask.svg\n    :target: http://pypi.python.org/pypi/pymlask/\n    :alt: latest version\n\n.. |license| image:: https://img.shields.io/pypi/l/mlask.svg\n    :target: http://pypi.python.org/pypi/mlask/\n    :alt: license\n\n\nCHANGES\n=======\n\n0.3.3 (2024-07-26)\n------------------------\n\n- Support mecab and mecab-python3 simultaneously (thanks @phuongdo)\n\n0.3.2 (2019-07-09)\n-------------------------\n\n- Fix bugs about emotion pattern matching (thanks @brunotoshio)\n- Fix bug about activation count (thanks @brunotoshio)\n\n0.3.1 (2019-05-22)\n-------------------------\n\n- Use MeCab.Tagger().parse() instead of MeCab.Tagger().parseToNode\n\n0.3 (2019-05-17)\n-------------------------\n\n- The 712 emotional words from Kanjou kotoba erabi jiten (\u611f\u60c5\u3053\u3068\u3070\u9078\u3073\u8f9e\u5178) are newly added\n- Support Python 3.7\n- Unsupport Python 2.6 and 3.3\n\n0.2.5 (2017-09-14)\n-------------------------\n\n- Fix bugs about MeCab (thanks @Kensuke-Mitsuzawa)\n- Delete install_requires\n\n0.2.4 (2017-03-01)\n-------------------------\n\n- Fix many bugs\n- Add some emotional words\n- Delete invalid words\n- Correct typo\n\n0.2.1 (2017-02-23)\n-------------------------\n\n- Add 67 emotional words\n\n0.2 (2017-02-22)\n-------------------------\n\n- Support Python 2.X\n- Add 52 emotional words\n- Fix bug\n\n0.1.1 (2017-02-15)\n-------------------------\n\n- Delete debug print (thanks @ssirai)\n\n0.1 (2017-02-10)\n-------------------------\n\n- First release.\n",
    "bugtrack_url": null,
    "license": "The BSD 3-Clause License",
    "summary": "Emotion analyzer for Japanese",
    "version": "0.3.3",
    "project_urls": {
        "Homepage": "https://github.com/ikegami-yukino/pymlask"
    },
    "split_keywords": [
        "emotion",
        "analysis"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fa4f5c3cc7d85d1fae4b357a855f4441ba0956bfcc34597ad95354e326a75693",
                "md5": "febad8b548077ada8f7ba322da130d9b",
                "sha256": "aa752a0a619370989c76bfd40d73ebd5684b9c886e9db72021025f810e92e158"
            },
            "downloads": -1,
            "filename": "pymlask-0.3.3.tar.gz",
            "has_sig": false,
            "md5_digest": "febad8b548077ada8f7ba322da130d9b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 74290,
            "upload_time": "2024-07-25T16:20:12",
            "upload_time_iso_8601": "2024-07-25T16:20:12.964956Z",
            "url": "https://files.pythonhosted.org/packages/fa/4f/5c3cc7d85d1fae4b357a855f4441ba0956bfcc34597ad95354e326a75693/pymlask-0.3.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-25 16:20:12",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ikegami-yukino",
    "github_project": "pymlask",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pymlask"
}
        
Elapsed time: 1.02549s