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
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
Tension Visualization
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.2.tar.gz
(4.5 kB
view details)
Built Distribution
File details
Details for the file KeyMojiAPI-1.0.2.tar.gz
.
File metadata
- Download URL: KeyMojiAPI-1.0.2.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c66f76b784f8817187883f8b9eb2f63fb34abad67d1c6f9bc21431ea69cca482 |
|
MD5 | a729793d05deb9368cd46e6d69b58556 |
|
BLAKE2b-256 | 7a861bab8302e8155b4e12eedf55aefc39d00a6f7012aca6e9ff646c40005cec |
File details
Details for the file KeyMojiAPI-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: KeyMojiAPI-1.0.2-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f718c495a6cce309598da480b376701db5b9678a0ddb777d91f5268bdf1d8857 |
|
MD5 | 19d0205b9722f30286c93f52312c0512 |
|
BLAKE2b-256 | c78844fee9eb159e0f0c8614830d1a113f8e5050bbde47f0ffc103895840eb49 |