Skip to content
This repository has been archived by the owner on Nov 28, 2018. It is now read-only.

DIYgod/Text2Emotion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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