Giter Club home page Giter Club logo

ccks2021fee's Introduction

CCKS2021

介绍

CCKS 2021:面向金融领域的篇章级事件抽取和事件因果关系抽取 url:https://www.biendata.xyz/competition/ccks_2021_task6_2 最终成绩第十

主要框架

代码有两部分组成,event classification和arguement detection

event classification

  • 将原始数据中的reason_type和result_type事件提取出来
  • 使用BERT+linear
  • 输入[cls]+key_word+[sep]+sentence
  • 输出为原因事件的组合reason_type#result_type的概率

arguement classification

  • 通过第一步的结果提取句子的事件角色
  • 使用BERT+linear
  • 输入[cls]+role+[sep]+event_type+[sep]+key_word+[sep]+sentence
  • 输出为角色在句子中的起始位置概率和结束位置概率
  • 加入了负例,负例中的原因或结果其中一个和正例相同

运行

  • 将data.rar解压
  • 在ccks2021FEE下放入roberta模型
  • 运行event/event_train.py进行第一部分训练
  • 运行arguemnt/argue_train.py进行第二部分训练

效果

event_train的f1值在0.64左右 argue_train的f1值在0.82左右

文件说明

  • event: event classification相关代码

    • event_train: 训练代码
    • model: 模型
    • event_dataReader: 数据处理代码
    • statistics: 对多组模型结果投票
  • arguement: arguement detection相关代码

    • event_train: 训练代码
    • model: 模型
    • argu_data_reader: 数据处理代码
    • statistics: 对多组模型结果投票
  • evaluate: validation验证代码

ccks2021fee's People

Contributors

taojingcong 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.