GithubHelp home page GithubHelp logo

zhoudan0215 / coarse-fine_emotion_classification Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hehuihui1994/coarse-fine_emotion_classification

0.0 2.0 0.0 9.82 MB

结合上下文和篇章特征的多标签情绪分类

Python 100.00%

coarse-fine_emotion_classification's Introduction

coarse-fine_emotion_classification

结合上下文和篇章特征的多标签情绪分类


##简介 主要针对微博本文的每一个句子进行情绪分类,实现论文面向微博文本的情绪分析方法研究中的结合上下文和篇章特征的多标签情绪分类方法,使用python编程实现。

##方法 1 首先利用句内特征结合MLKNN 算法构造基分类器,并对微博中的每个句子进行初始情绪分类,特征选择方法使用卡方统计。
2 在初始情绪分类的基础上,利用句子相邻句子的情绪转移概率以及微博整体与句子之间的情绪转换概率,进行分类修正,获得新的分类结果。在更新 后的句子分类结果的基础上,迭代利用上下文特征和篇章特征进行分类更新,直至分类结果收敛。
3 在迭代过程中,句子的上下句的情绪使用上一轮迭代过程中该句子上下句的情绪类别。微博整体的情绪则根据上一轮迭代中该微博的所有句子分类结 果,将所有句子中出现最多情绪类别作为该微博整体情绪类别。

##文件说明

  • all_emotion_transfer.py
    计算相邻句子的情绪转移概率以及微博整体与句子之间的情绪转移概率。

  • evaluation_for_MLL.py
    计算评估指标Hamming_Loss、One_error、Coverage、RankingLoss、Average_Precision。

  • mlKNN.py
    mlknn算法

  • performance.py
    performance库,多种常用的评估指标如acc、precision、recall等。

  • process.py
    结合上下文和篇章特征的多标签情绪分类方法。

  • pytc.py
    pytc库,文本处理工具库。

coarse-fine_emotion_classification's People

Contributors

hehuihui1994 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.