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
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
Tension Visualization
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.5.tar.gz
(4.1 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file KeyMojiAPI-1.0.5.tar.gz.
File metadata
- Download URL: KeyMojiAPI-1.0.5.tar.gz
- Upload date:
- Size: 4.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.1 CPython/3.9.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
649f58f8ece7ebc5a4243c6f2eee0cafb15367531d60edb9d774b50298401c4e
|
|
| MD5 |
cd7c56696388402cd862db2eb8cec723
|
|
| BLAKE2b-256 |
14de3764f97bb0fb2bb50f42fe2baf05903e7d95aa874505a39a1035360be63d
|
File details
Details for the file KeyMojiAPI-1.0.5-py3-none-any.whl.
File metadata
- Download URL: KeyMojiAPI-1.0.5-py3-none-any.whl
- Upload date:
- Size: 4.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.1 CPython/3.9.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ca6cc08d354c8c452dd37fa34305badec2db9d230b78e12dced97ee9a44fe32
|
|
| MD5 |
5ac3a48ad4e705094f5999f6c22ee4e1
|
|
| BLAKE2b-256 |
ca34a36e7d6750a0c085e5a13299d89230d0723483f73b1a8a79d8836b142911
|