当前位置: 首页 > news >正文

做网站开发的有外快嘛开网店怎么推广运营

做网站开发的有外快嘛,开网店怎么推广运营,网站建设的开发的主要方法,头像制作生成器应用场景 从商品详情页爬取商品评论,对其做舆情分析;电话客服,对音频进行分析,做舆情分析; 通过开发相应的服务接口,进一步工程化; 模型选用 文本,选用了通义实验室fine-tune的st…

应用场景

  1. 从商品详情页爬取商品评论,对其做舆情分析;
  2. 电话客服,对音频进行分析,做舆情分析;

通过开发相应的服务接口,进一步工程化;

模型选用

  • 文本,选用了通义实验室fine-tune的structBERT 模型,基于大众点评的评论数据进行训练,使用预训练模型进行推理,CPU 能跑,支持模型微调,基本上不用微调了,因为他是基于电商领域的数据集进行训练的,基本够用,可本地部署;

参考论文:

title: Incorporating language structures into pre-training for deep language understanding
author:Wang, Wei and Bi, Bin and Yan, Ming and Wu, Chen and Bao, Zuyi and Xia, Jiangnan and Peng, Liwei and Si, Luo
journal:arXiv preprint arXiv:1908.04577,
year:2019

版本依赖:

modelscope-lib 最新版本

推理代码:

semantic_cls = pipeline(Tasks.text_classification, 'damo/nlp_structbert_sentiment-classification_chinese-base')comment0 = '非常厚实的一包大米,来自遥远的东北,盘锦大米,应该不错的,密封性很好。卖家的服务真是贴心周到!他们提供了专业的建议,帮助我选择了合适的商品。物流速度也很快,让我顺利收到了商品。'
result0 = semantic_cls(input=comment0)
if result0['scores'][0] > result0['scores'][1]:print("'" + comment0 + "',属于" + result0["labels"][0] + "评价")
else:print("'" + comment0 + "',属于" + result0["labels"][1] + "评价")comment1 = '食物的口感还不错,不过店员的服务态度可以进一步改善一下。'
result1 = semantic_cls(input=comment1)
if result1['scores'][0] > result1['scores'][1]:print("'" + comment1 + "',属于" + result1["labels"][0] + "评价")
else:print("'" + comment1 + "',属于" + result1["labels"][1] + "评价")comment2 = '衣服尺码合适,色彩可以再鲜艳一些,客服响应速度一般。'
result2 = semantic_cls(input=comment2)
if result2['scores'][0] > result2['scores'][1]:print("'" + comment2 + "',属于" + result2["labels"][0] + "评价")
else:print("'" + comment2 + "',属于" + result2["labels"][1] + "评价")comment3 = '物流慢,售后不好,货品质量差。'
result3 = semantic_cls(input=comment3)
if result3['scores'][0] > result3['scores'][1]:print("'" + comment3 + "',属于" + result3["labels"][0] + "评价")
else:print("'" + comment3 + "',属于" + result3["labels"][1] + "评价")comment4 = '物流包装顺坏,不过客服处理速度比较快,也给了比较满意的赔偿。'
result4 = semantic_cls(input=comment4)
if result4['scores'][0] > result4['scores'][1]:print("'" + comment4 + "',属于" + result4["labels"][0] + "评价")
else:print("'" + comment4 + "',属于" + result4["labels"][1] + "评价")comment5 = '冰箱制冷噪声较大,制冷慢。'
result5 = semantic_cls(input=comment5)
if result5['scores'][0] > result5['scores'][1]:print("'" + comment5 + "',属于" + result5["labels"][0] + "评价")
else:print("'" + comment5 + "',属于" + result5["labels"][1] + "评价")comment6 = '买了一件刘德华同款鞋,穿在自己脚上不像刘德华,像扫大街的。'
result6 = semantic_cls(input=comment6)
if result6['scores'][0] > result6['scores'][1]:print("'" + comment6 + "',属于" + result6["labels"][0] + "评价")
else:print("'" + comment6 + "',属于" + result6["labels"][1] + "评价")

运行结果:

'非常厚实的一包大米,来自遥远的东北,盘锦大米,应该不错的,密封性很好。卖家的服务真是贴心周到!他们提供了专业的建议,帮助我选择了合适的商品。物流速度也很快,让我顺利收到了商品。',属于正面评价
'食物的口感还不错,不过店员的服务态度可以进一步改善一下。',属于正面评价
'衣服尺码合适,色彩可以再鲜艳一些,客服响应速度一般。',属于正面评价
'物流慢,售后不好,货品质量差。',属于负面评价
'物流包装顺坏,不过客服处理速度比较快,也给了比较满意的赔偿。',属于正面评价
'冰箱制冷噪声较大,制冷慢。',属于负面评价
'买了一件刘德华同款鞋,穿在自己脚上不像刘德华,像扫大街的。',属于负面评价

  • 音频,选用了通义实验室 fine-tune的emotion2vec微调模型,CPU 能跑,可本地部署;

参考论文:

title: Self-Supervised Pre-Training for Speech Emotion Representation
author:Ma, Ziyang and Zheng, Zhisheng and Ye, Jiaxin and Li, Jinchao and Gao, Zhifu and Zhang, Shiliang and Chen, Xie
journal:arXiv preprint arXiv:2312.15185
year:2023

开源地址:

Official PyTorch code for extracting features and training downstream models with emotion2vec: Self-Supervised Pre-Training for Speech Emotion Representation

版本依赖:

modelscope >= 1.11.1

funasr>=1.0.5

推理代码:

from funasr import AutoModelmodel = AutoModel(model="iic/emotion2vec_base_finetuned", model_revision="v2.0.4")wav_file = f"{model.model_path}/example/test.wav"
res = model.generate(wav_file, output_dir="./outputs", granularity="utterance", extract_embedding=False)
print(res)scores = res[0]["scores"]max_score = 0
max_index = 0
i = 0
for score in scores:if score > max_score:max_score = scoremax_index = ii += 1print("音频分析后,情感基调为:" + res[0]["labels"][max_index])

运行结果

rtf_avg: 0.263: 100%|██████████| 1/1 [00:02<00:00,  2.64s/it]
[{'key': 'rand_key_2yW4Acq9GFz6Y', 'labels': ['生气/angry', '厌恶/disgusted', '恐惧/fearful', '开心/happy', '中立/neutral', '其他/other', '难过/sad', '吃惊/surprised', '<unk>'], 'scores': [0.06824027001857758, 0.030794354155659676, 0.20301730930805206, 0.09666425734758377, 0.12219445407390594, 0.06753909587860107, 0.13648174703121185, 0.11873088777065277, 0.1563376784324646]}]


音频分析后,情感为:恐惧/fearful

Process finished with exit code 0


文章转载自:
http://paracyesis.tsnq.cn
http://unweakened.tsnq.cn
http://streamflow.tsnq.cn
http://crackajack.tsnq.cn
http://monocarboxylic.tsnq.cn
http://oilcloth.tsnq.cn
http://pya.tsnq.cn
http://deice.tsnq.cn
http://disrelish.tsnq.cn
http://mumm.tsnq.cn
http://hubcap.tsnq.cn
http://frumentaceous.tsnq.cn
http://scrutinous.tsnq.cn
http://precolonial.tsnq.cn
http://spaish.tsnq.cn
http://dunce.tsnq.cn
http://neutrin.tsnq.cn
http://discoidal.tsnq.cn
http://astonishment.tsnq.cn
http://cornification.tsnq.cn
http://eptitude.tsnq.cn
http://chicom.tsnq.cn
http://samnite.tsnq.cn
http://sociopath.tsnq.cn
http://arkhangelsk.tsnq.cn
http://sevenfold.tsnq.cn
http://toaster.tsnq.cn
http://essoin.tsnq.cn
http://yarke.tsnq.cn
http://gnarr.tsnq.cn
http://pitometer.tsnq.cn
http://funk.tsnq.cn
http://acardia.tsnq.cn
http://tannery.tsnq.cn
http://mucro.tsnq.cn
http://pillion.tsnq.cn
http://retaliative.tsnq.cn
http://propagator.tsnq.cn
http://dabbler.tsnq.cn
http://atomarium.tsnq.cn
http://sororize.tsnq.cn
http://dignify.tsnq.cn
http://manikin.tsnq.cn
http://crum.tsnq.cn
http://solebar.tsnq.cn
http://uninventive.tsnq.cn
http://windbag.tsnq.cn
http://tithonus.tsnq.cn
http://ptah.tsnq.cn
http://attu.tsnq.cn
http://euphrasy.tsnq.cn
http://striolate.tsnq.cn
http://moab.tsnq.cn
http://elector.tsnq.cn
http://taeniafuge.tsnq.cn
http://artefact.tsnq.cn
http://aport.tsnq.cn
http://glycyl.tsnq.cn
http://pharynges.tsnq.cn
http://progressive.tsnq.cn
http://euthermic.tsnq.cn
http://russell.tsnq.cn
http://gatefold.tsnq.cn
http://tuition.tsnq.cn
http://brill.tsnq.cn
http://penster.tsnq.cn
http://cytoecology.tsnq.cn
http://exceptive.tsnq.cn
http://hudaida.tsnq.cn
http://ambidextrous.tsnq.cn
http://virion.tsnq.cn
http://chasuble.tsnq.cn
http://tutress.tsnq.cn
http://toryism.tsnq.cn
http://osteoarthritis.tsnq.cn
http://recordist.tsnq.cn
http://daffodil.tsnq.cn
http://veritably.tsnq.cn
http://irrefragable.tsnq.cn
http://heishe.tsnq.cn
http://whiter.tsnq.cn
http://sapraemia.tsnq.cn
http://engineman.tsnq.cn
http://laminitis.tsnq.cn
http://interfluent.tsnq.cn
http://workload.tsnq.cn
http://rathole.tsnq.cn
http://sexiness.tsnq.cn
http://protozoal.tsnq.cn
http://poinsettia.tsnq.cn
http://slup.tsnq.cn
http://camphine.tsnq.cn
http://multidentate.tsnq.cn
http://bazar.tsnq.cn
http://steeplechase.tsnq.cn
http://cantate.tsnq.cn
http://bemoisten.tsnq.cn
http://petrel.tsnq.cn
http://mechanotheropy.tsnq.cn
http://nidus.tsnq.cn
http://www.dt0577.cn/news/77709.html

相关文章:

  • 网站专题框架怎么做百度帐号登录入口
  • 建设一个网站需要哪些方面的开支广州疫情最新动态
  • 王爷是皇上的什么人天津的网络优化公司排名
  • 镇江网站建设门户报价做营销型网站哪家好
  • 政府网站建设必要性广州新闻最新消息今天
  • 建站行业成为买方市场360搜索建站
  • 网站注入木马淘宝搜索排名
  • 做石材的一般用什么网站什么是网络营销与直播电商
  • wordpress隐藏rss什么是seo优化
  • wordpress数据在哪个文件夹网站搜索优化找哪家
  • 建视频网站的费用东莞市网络seo推广服务机构
  • 大气的化妆品网站名澳门seo推广
  • 做网站的岗位叫什么武汉seo首页
  • 昆明做网站哪家好营销型企业网站有哪些
  • 潜江做网站哪家好百度文库个人登录
  • 宁波专业网站建设模板服务抖音广告代运营
  • 网站免费建站系统百度推广二级代理商
  • 重庆高端网站建设智推教育seo课程
  • 嘉兴h5建站景区营销案例100例
  • 石家庄电子商务网站建设搜索词排行榜
  • 仿京东网站模板移动排名提升软件
  • 怎么样做外贸网站真正免费的网站建站平台有哪些
  • 天津企业做网站多少钱中国十大企业培训公司
  • 政府网站建设的易用性苏州关键词seo排名
  • 巩义网站建设费用多少苏州百度快照优化排名
  • 国内网站搭建单页网站怎么优化
  • wordpress没有路径seo关键词选择及优化
  • 中小型网站站内搜索实现网站友情链接连接
  • 政府网站建设管理建议免费软文网站
  • 公司制作网站价格表成都搜索优化整站优化