简体   繁体   English

情绪分析而不是正面负面中性,我想按产品类别进行情绪分析

[英]Sentiment Analysis instead of Positive Negative Neutral, I want to sentiment by category of products

Im doing a categorical product sentiment analysis.我正在做一个分类的产品情绪分析。 But I dont quite know what keyword to search for and what methods should I use.但是我不太清楚要搜索什么关键字以及应该使用什么方法。 Im using this dataset for this https://huggingface.co/datasets/viewer/?dataset=amazon_reviews_multi&config=en Im doint a neural search project and my model would be the Review text and product category.我将此数据集用于此https://huggingface.co/datasets/viewer/?dataset=amazon_reviews_multi&config=en我正在做一个神经搜索项目,我的模型将是评论文本和产品类别。

I think the keyword you are looking for is 'multi-task classification'.我认为您正在寻找的关键字是“多任务分类”。 Sometimes this is called 'joint learning', where a model learns how to solve two or more tasks simultaneously.有时这被称为“联合学习”,模型学习如何同时解决两个或多个任务。

Task 1: Classify sentiment.任务 1:对情绪进行分类。 Task 2: Classify product category.任务 2:分类产品类别。

It is possible to train one neural network model to learn how to classify both sentiment and category at the same time.可以训练一个神经网络模型来学习如何同时对情绪和类别进行分类。 You'll end up having an output layer with two groups of nodes, one for the first task, and one for the other.您最终将拥有一个包含两组节点的输出层,一组用于第一个任务,一组用于另一组。 You need to define loss criteria for both groups, add them together, and use the combined loss to train the network.您需要为这两个组定义损失标准,将它们加在一起,并使用组合损失来训练网络。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我正在尝试解析网站并生成正面、中性或负面情绪分析 - I am trying to parse a website and generate positive, neutral, or negative sentiment analysis 用keras包括中性推文的情感分析 - Sentiment analysis with keras including neutral tweet Python - 将来自 Vader 的正面/负面/中立/反馈情绪评分拆分为单独的列并将其添加到数据集中 - Python - Splitting positive/negative/neutral/ feedback sentiment score from Vader into separate columns and adding it to data set 审查数据情绪分析,重点是提取负面情绪? - Review data sentiment analysis, focusing on extracting negative sentiment? 在特定单词之前,如何计算否定或肯定单词-Python中的情感分析? - How do you count a negative or positive word prior to a specific word - Sentiment Analysis in Python? 在负面情绪分析中添加“-”号 - Adding '-' sign to negative flair sentiment analysis 使用朴素贝叶斯分类的Twitter情感分析仅返回“中性”标签 - Twitter Sentiment analysis with Naive Bayes Classify only returning 'neutral' label 如何从没有积极或消极情绪的句子中删除单词? - How to remove words from a sentence that carry no positive or negative sentiment? NLTK 分类器在情绪分析中只给出否定答案 - NLTK Classifier giving only negative as answer in Sentiment Analysis 用于情感分析的Python代码 - Python code for sentiment analysis
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM