ChinaPuffer / Text2Emotion

:cookie: 分析一句话的情绪值

Home Page:https://api.prprpr.me/emotion/wenzhi?password=DIYgod&text=小拳拳捶你胸口

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Text2Emotion

分析一句话的情绪值

介绍

有两种版本:

使用

https://api.prprpr.me/emotion?text={一句话}

https://api.prprpr.me/emotion/wenzhi?password=DIYgod&text={一句话}

搭建

需要环境:Node.js MongoDB Redis

emos.json导入 MongoDB:

mongoimport -d emotion -c emos --file emos.json

根目录需要新建配置文件 config.js

module.exports = {
    xfkey: '',        // 讯飞开放平台密钥
    wzSecretId: '',   // 腾讯云API密钥 - SecretId
    wzSecretKey: '',  // 腾讯云API密钥 - SecretKey
    wzPassWord: ''    // 腾讯文智版调用口令
};

LICENSE

MIT © DIYgod

About

:cookie: 分析一句话的情绪值

https://api.prprpr.me/emotion/wenzhi?password=DIYgod&text=小拳拳捶你胸口


Languages

Language:JavaScript 100.0%