• Stars
    star
    111
  • Rank 312,661 (Top 7 %)
  • Language
    Python
  • License
    Other
  • Created over 7 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Emotion analyzer for Japanese text

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!

Dependencies

MeCab binary

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

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.

More Repositories

1

jaconv

Pure-Python Japanese character interconverter for Hiragana, Katakana, Hankaku, and Zenkaku
Python
289
star
2

neologdn

Japanese text normalizer for mecab-neologd
Cython
265
star
3

dataset-list

lists of text corpus and more (mainly Japanese)
116
star
4

oseti

Dictionary based Sentiment Analysis for Japanese
Python
90
star
5

misc

Machine Learning / Randomized Algorithm and more
Jupyter Notebook
35
star
6

mozcpy

Mozc for Python: Kana-Kanji converter
Python
34
star
7

flati

Flatten nested iterable object for Python (Pure-Python implementation)
Python
28
star
8

madoka-python

Memory-efficient Count-Min Sketch Counter (based on Madoka C++ library)
C++
25
star
9

oll-python

Online machine learning algorithms (based on OLL C++ library)
C++
22
star
10

shellinford-python

Wavelet Matrix/Tree succinct data structure for full text search (based on shellinford C++ library)
C++
22
star
11

rakutenma-python

Rakuten MA (Python version)
Python
21
star
12

sengiri

Yet another sentence-level tokenizer for the Japanese text
Python
21
star
13

python-tr

A Pure-Python implementation of the tr algorithm
Python
14
star
14

asa-python

Japanese Argument Structure Analyzer (ASA) client for Python
Python
11
star
15

mecab-as-kkc

Converting Mozc dictionary to MeCab dictionary for Kana-Kanji conversion (KKC)
Python
10
star
16

coding-tips

ど忘れしたときのためのメモ
10
star
17

zunda-python

Zunda: Japanese Enhanced Modality Analyzer client for Python.
Python
10
star
18

jctconv

Rename jctconv -> jaconv. Please use the jaconv
Python
8
star
19

pytypo

English spelling correction
Python
7
star
20

morris_counter

Memory-efficient probabilistic counter namely Morris Counter
Python
5
star
21

udon

Rename udon -> pytypo. Please use the pytypo
Python
4
star
22

neologdn-java

Japanese text normalizer for mecab-neologd
Java
4
star
23

dotfiles

Shell
3
star
24

csj-eval

For evaluating speech recognition system using the Corpus of Spontaneous Japanese (CSJ)
Python
3
star
25

kpy

Keitai (Japanese mobile phone) model name extractor on Python
Python
2
star
26

neologd-diff

Write diff (added/removed entries) of mecab-ipadic-neologd between 2 versions
Python
2
star
27

ikegami-yukino.github.io

Profile de Yukino Ikegami
HTML
1
star
28

yascikit-learn

Yet another scikit-learn
Python
1
star
29

mecab-python-windows

C++
1
star
30

notebooks

Jupyter notebook
Jupyter Notebook
1
star