8000 GitHub - xuweili/Text2Emotion: :cookie: 分析一句话的情绪值
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

xuweili/Text2Emotion

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 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

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%
0