基于分层思想的精细化文本情感分类方法
CSTR:
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

TP391

基金项目:

国家自然科学基金“NSFC-新疆联合基金”(U1703261)


A fine-grained text sentiment classification method based on hierarchical framework
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    在处理精细化情感分类任务时,现有情感分析方法通常采用扁平化的分类策略,未能充分考虑情感本身的层级关系,导致分类精度受限.为此,本文提出一种基于分层思想的精细化文本情感分类方法.通过将具有相同基础情感含义的细粒度标签归类为同一粗粒度类别,构建层次化的情感标签体系,从而增强模型对情感结构的理解能力.在模型设计上,采用RoBERTa(Robustly optimized BERT Approach)模型的不同Transformer层输出,分别提取低层次和高层次语义特征,以支持粗粒度与细粒度分类器的训练.在基于多任务学习的分层分类策略中,粗分类任务辅助细分类任务,从而提高分类的精度和泛化性.由粗到细的分层分类策略中,粗分类和细分类任务并行进行,每个细分类器独立计算损失,然后结合粗分类的先验信息优化信息选择,实现情感识别的逐步细化.最终,通过设定概率阈值来融合两种策略的优势,进一步提升分类性能.实验结果表明,在GoEmotions和Empathetic Dialogues数据集上,两种策略在F1值和准确率上均超越基线模型.而最终的融合技术又使得性能进一步提升,在两个数据集上的准确率分别达到64.6%和59.4%,优于现有方法.

    Abstract:

    With the continuous advancement of Natural Language Processing (NLP) technologies,sentiment analysis has been extensively applied in fields such as social media monitoring,customer service,and market research. However,when dealing with fine-grained sentiment classification tasks,existing methods often rely on a flat classification strategy,failing to fully capture the inherent hierarchical relationships among emotions,which consequently limits classification accuracy. Here,we propose a novel fine-grained text sentiment classification method based on a hierarchical framework. This method constructs a hierarchical emotional label system by grouping fine-grained labels with shared emotional meaning into broader coarse-grained categories,thereby enhancing the model's ability to comprehend emotional hierarchies. Architecturally,the model leverages feature representations from different Transformer layers of the RoBERTa (Robustly optimized BERT Approach) encoder to capture both low-level and high-level semantic information,which supports the training of distinct classifiers of coarse- and fine-grained levels. We implement two hierarchical strategies:a multi-task learning one where the coarse-grained classification task serves as an auxiliary to regularize and improve the generalization of the primary fine-grained classifier;a parallel coarse-to-fine strategy where each fine classifier computes its loss independently,then incorporates prior information from the coarse-grained classifier to optimize feature selection,enabling progressive refinement of sentiment predictions. Furthermore,the advantages of both strategies are combined via a probability threshold mechanism to further boost performance. Experimental results on the GoEmotions and Empathetic Dialogues datasets show that both proposed strategies outperform the baseline model in terms of F1-score and accuracy. The final fused model achieves further improvements,with accuracies reaching 64.6% and 59.4% on the respective datasets,which surpasses the performance of existing state-of-the-art methods.

    参考文献
    相似文献
    引证文献
引用本文

但志平,鲁雨洁,余肖生,李琳,李碧涛,董方敏.基于分层思想的精细化文本情感分类方法[J].南京信息工程大学学报(自然科学版),2026,18(4):465-475
DAN Zhiping, LU Yujie, YU Xiaosheng, LI Lin, LI Bitao, DONG Fangmin. A fine-grained text sentiment classification method based on hierarchical framework[J]. Journal of Nanjing University of Information Science & Technology, 2026,18(4):465-475

复制
分享
相关视频

文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2025-03-18
  • 最后修改日期:
  • 录用日期:
  • 在线发布日期: 2026-07-14
  • 出版日期:
文章二维码

地址:江苏省南京市宁六路219号    邮编:210044

联系电话:025-58731025    E-mail:nxdxb@nuist.edu.cn

南京信息工程大学学报 ® 2026 版权所有  技术支持:北京勤云科技发展有限公司