🍪 分析一句话的情绪值
Switch branches/tags
Nothing to show
Clone or download
DIYgod
DIYgod Merge pull request #1 from knewzen/master
remove codesponsor
Latest commit cb2b5d1 Jan 5, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
logs Tencent wenzhi Feb 8, 2017
models first commit Feb 7, 2017
routes use SimpleCount Apr 19, 2017
tools first commit Feb 7, 2017
.gitignore Tencent wenzhi Feb 8, 2017
README.md remove codesponsor Jan 4, 2018
emos.json first commit Feb 7, 2017
index.js Tencent wenzhi Feb 8, 2017
package.json first commit Feb 7, 2017

README.md

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