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

使用方法

KeyMoji Website Demo
KeyMojiAPI Documentation

SENSE2

from KeyMojiAPI import KeyMoji
keymoji = KeyMoji(username="your_username@mail.com", keymojiKey="your_keymoji_key")

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
keymoji = KeyMoji(username="your_username@mail.com", keymojiKey="your_keymoji_key")

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

Uploaded Source

Built Distribution

KeyMojiAPI-1.0.3-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: KeyMojiAPI-1.0.3.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • 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.5

File hashes

Hashes for KeyMojiAPI-1.0.3.tar.gz
Algorithm Hash digest
SHA256 67327933cacac414c50e5aa810dd1796b2b0d274c066a2ab996f989a126ab7a4
MD5 d7e8d12cc6ef67dce59bdf62755c1272
BLAKE2b-256 a9bdb743e877ef443ecdfd08cd8e00bc342e5ec2acd2c270687749734b8a2d2e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: KeyMojiAPI-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • 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.5

File hashes

Hashes for KeyMojiAPI-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d606f09c78b10aaa9a6b67837213f0b346de415143d14af8cdd798b65980fc75
MD5 78a3c6e13cbf2303405b8c0ceb6c7cf7
BLAKE2b-256 7b0375262f5ead463c2d231ae85ab6d4121034e6525158db097a5a4956f2fe16

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