基于网页微信的养鱼插件
常年被养鱼突然有感而发,为何不把 NLP 技术用于养鱼,通过模型评测每一句聊天,给出对应的情感分析数据
先要安装tampermonkey或者其他类似的工具。
然后把 repo 里的fishpond.js
丢到用户脚本里面并启用。
然后需要启动 NLP 模型服务器
clone the repo
cd fishpond_sentiment_analysis
uvicorn main:app --host 0.0.0.0 --log-level debug
然后登录网页微信即可使用。
- snownlp
pip install snownlp
- fastapi
pip install fastapi
See the open issues for a list of proposed features (and known issues).
目前得做个看板用来统计各个鱼儿的情感曲线以及平均回复时间,统计这个是想看看塘主有没有什么特征,例如平均回复时间可能>2 小时。
现在模型是用的snownlp
,它的情感分析是基于商品评价语料库,我们需要真正的养鱼语料库,所以各位塘主和鱼儿们,把自己的聊天贡献出来吧~
在data/pond/sample.csv
可以参考如何标注自己的聊天记录为 csv,我每周用 bert 训练一发,模型会以 docker 镜像的形式发布。
Distributed under the MIT License. See LICENSE
for more information.