Giter Site home page Giter Site logo

spanie's Introduction

SpanIE

A span-based joint named entity recognition (NER) and relation extraction model with RoBERTa

This code repository has been restructured based on JointIE for the purpose of dependency transition models. It mainly references the following models and codes:

Generalizing Natural Language Analysis through Span-relation Representations (ACL2020). [paper] (https://arxiv.org/abs/1911.03822)

LSTM/BERT-CRF Model for Named Entity Recognition (or Sequence Labeling) code

Environment

torch==2.2.0

Transformer==4.37.2

python==3.8.0

Train and Evaluate Models

Train and evaluate model with default configure.(RoBERTa-Large, Learing rate 1e-5)

python transformers_trainer.py --dataset scierc

Results with Default Configure on Test Set

Dataset NER (F1) Relation (F1)
SciERC 70.98(best) 46.19
SciERC 69.87 47.27(best)
NYT24(NYT) 96.52(best) 84.90
NYT24(NYT) 96.21 85.06(best)
NYT29 内容6 内容6
WebNLG 97.94 92.64(best)
ACE2004_fold1 90.79 (best) 49.79
ACE2004_fold1 89.70 60.81 (best)
ACE2004_fold2 90.11(best) 51.11
ACE2004_fold2 88.04 53.98(best)
ACE2004_fold3 90.00(best) 42.39
ACE2004_fold3 88.86 46.77(best)
ACE2004_fold4 92.03(best) 46.72
ACE2004_fold4 91.04 48.67(best)
ACE2004_fold5 88.32(best) 45.16
ACE2004_fold5 87.26 46.35(best)
ACE2004_NER(avg best) 90.25 47.03
ACE2004_RE(avg best) 88.98 51.32
ACE2005_NRE(best) 90.12 62.43
ACE2005_RE(best) 89.51 64.84

spanie's People

Contributors

joel4u avatar

Stargazers

 avatar  avatar

Watchers

 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.