Git Product home page Git Product logo

joint_re_casrel's Introduction

Joint_RE

A pytorch version of ACL 2020 paper "A Novel Cascade Binary Tagging Framework for Relational Triple Extraction"

运行步骤

1.基于NTY数据集

  1. 安装相关依赖
  2. 解压/datasets/NYT/NYT_normal_dataset.zip
  3. 创建目录/pretrained_models/bert-base-cased/
  4. 下载pytorch的bert模型,放入上述目录(下载链接见百度网盘)

pytorch bert-base-cased 模型:https://pan.baidu.com/s/1u4IC6ldMLf43oEQxF-SdLA 提取码:lv4y

2.基于百度2019语言与智能技术竞赛数据集

  1. 解压/datasets/2019_Baidu_RE/2019_Baidu_RE.zip (数据集已处理过,原数据见百度网盘)
  2. 创建目录/pretrained_models/chinese-bert_chinese_wwm_pytorch/
  3. 下载哈工大预训练模型,放入上述目录(下载链接见讯飞网盘,哈工大git库中提供)
  4. 运行run.py --model chinese-bert --dataset 2019_Baidu_RE

chinese-bert_chinese_wwm_pytorch 模型:http://pan.iflytek.com/#/link/5DBDD89414E5B565D3322D6B7937DF47 提取码:hteX

百度2019语言与智能技术竞赛数据集 链接:https://pan.baidu.com/s/1aIxaccaLj9OhoRljN0ATpQ 提取码:gbua

可参考

原论文链接: https://arxiv.org/abs/1909.03227

tensorflow版本: https://github.com/weizhepei/CasRel

pytorch原版本:https://github.com/WeKnowG/Extractor

bert-chinese中文bert:https://github.com/ymcui/Chinese-BERT-wwm

joint_re_casrel's People

Contributors

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