Giter Site home page Giter Site logo

enno-h / relation-extraction Goto Github PK

View Code? Open in Web Editor NEW

This project forked from geetickachauhan/relation-extraction

0.0 0.0 0.0 3.34 MB

Relation Extraction with Semeval 2010 data, i2b2 2010 VA challenge classification data and DDI extraction data.

License: MIT License

Perl 0.65% Jupyter Notebook 97.07% Python 2.29%

relation-extraction's Introduction

REflex: Flexible Framework for Relation Extraction in Multiple Domains

Framework

Paper: http://arxiv.org/abs/1906.08318

REflex is a unifying framework for Relation Extraction, applied on 3 highly used datasets (from the general, biomedical and clinical domains), with the ability to be extendable to new datasets.

REflex has experimental as well as design goals. The experimental goals are in identification of sources of variability in results for the 3 datasets and provide the field with a strong baseline model to compare against for future improvements. The design goals are in identification of best practices for relation extraction and to be a guide for approaching new datasets.

In order to replicate experiments for this work, generate the data beyond the pre-processing stage by going into the notebooks/ folder and following the README.md instructions there. Note: default hyperparameters are listed in scripts/parser.py

The hierarchy of this code is organized as follows:

  1. relation_extraction stores the main components of the framework, including converters, pre-processing module and models
  2. eval/ contains the evaluation scripts used to evaluate the model
  3. scripts/ which contains the scripts to run the model

Refer to the jupyter notebooks in the notebooks/Data-Preprocessing folder and the ones marked with _original to know how to use the converter.

In order to run the model, cd into the scripts/ folder and type sample command python main.py --cross_validate --dataset=ddi Look at notebooks/commands.md for a list of official commands that were run for experiments.

Relation Extraction with Semeval 2010 data, i2b2 2010 VA challenge classification data and DDI extraction data.

For Semeval 2010 task 8, evaluation is done based on macro F1 of all classes but not considering "Other" For the DDI Extraction task, evaluation is done based on macro F1 of all classes (strict evaluation) as well as macro F1 for relation detection (loose evaluation). We print macro F1 of all classes (5 way with none), macro F1 of non 'none' classes and macro F1 of the detection.

relation-extraction's People

Contributors

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