Skip to main content

KeyMoji sentimental analysis system differs from other "amature-tagged" and "pure-ML/DL" text sentimental analysis solutions in many ways. KeyMoji combines "syntactic structure information", "formal semantics" and "lexical semantic model" in one calculating process to estimate the sentimental bias and distributions of sentiments in texts.

Project description

KeyMoji [Emotions in Formula]

KeyMoji 關鍵情緒偵測 (SENSE2、SENSE8、Tension) 採用不同於其它「素人標記」和「純機器學習」的文本情緒偵測分析工具,結合了「句型」、「邏輯語意」和「詞彙模型」,設計出一個完整的「情緒計算過程」。

完整介紹

安裝方法

pip3 install KeyMojiAPI

or

python3 -m pip install KeyMojiAPI

使用方法

KeyMoji Website Demo
KeyMojiAPI Documentation

SENSE2

from KeyMojiAPI import KeyMoji
# 若您是使用 Docker 版本,無須填入 username, keymoji_key 參數
keymoji = KeyMoji(username="", keymojiKey="")

inputSTR = "他逃離了危險的災難"
result = keymoji.sense2(inputSTR)
print(result)
{
    "status": true,
    "msg": "Success!",
    "results": [
        {
            "score": 0.2798,
            "sentiment": "positive",
            "input_str": "他逃離了危險的災難",
            "cursing": false
        }
    ],
    "sense": "sense2",
    "version": "v101"
}

Visualization

sense2

SENSE8

from KeyMojiAPI import KeyMoji
# 若您是使用 Docker 版本,無須填入 username, keymoji_key 參數
keymoji = KeyMoji(username="", keymojiKey="")

inputSTR = "他逃離了危險的災難"
result = keymoji.sense8(inputSTR)
print(result)
{
    "status": true,
    "msg": "Success!",
    "results": [
        {
            "input_str": "他逃離了危險的災難",
            "Joy": 3.7486,
            "Trust": 5.1776,
            "Surprise": 6.7238,
            "Anticipation": 0.9618,
            "Fear": 0.9505,
            "Sadness": 0.9108,
            "Anger": 0.9516,
            "Disgust": 0.8876
        }
    ],
    "sense": "sense8",
    "version": "v101"
}

Visualization

sense8

Tension Visualization

tension

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

KeyMojiAPI-1.0.4.tar.gz (4.1 MB view details)

Uploaded Source

Built Distribution

KeyMojiAPI-1.0.4-py3-none-any.whl (4.1 MB view details)

Uploaded Python 3

File details

Details for the file KeyMojiAPI-1.0.4.tar.gz.

File metadata

  • Download URL: KeyMojiAPI-1.0.4.tar.gz
  • Upload date:
  • Size: 4.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.10

File hashes

Hashes for KeyMojiAPI-1.0.4.tar.gz
Algorithm Hash digest
SHA256 a24b661da027e2761f2da4eb61544af6b0387b38e955ae61f994dee60480337c
MD5 535fe74c70fd7758c5897e1560582886
BLAKE2b-256 f25149366840ac7fb8eb5518a3caf01f4c292f7b9d33ce3e5312c0932949651d

See more details on using hashes here.

File details

Details for the file KeyMojiAPI-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: KeyMojiAPI-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.10

File hashes

Hashes for KeyMojiAPI-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6bd4b2db57e4ab6e5c4ea7b867f9ac6ee26cdd8ca184e46b73f80a495e18f971
MD5 b45a87c2846416402ffa4e0f23571186
BLAKE2b-256 ae4def09153cfdf04f950820ab4d9d1606e7ca7782942fa1b405c229041b02ca

See more details on using hashes here.

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