Giter Site home page Giter Site logo

kzjava1998 / cnn-relation-extraction Goto Github PK

View Code? Open in Web Editor NEW

This project forked from onehaitao/cnn-relation-extraction

0.0 0.0 0.0 881 KB

Implementation of Relation Classification via Convolutional Deep Neural Network.

License: MIT License

Python 61.46% Perl 38.54%

cnn-relation-extraction's Introduction

CNN-relation-extraction

PWC

Implementation of Relation Classification via Convolutional Deep Neural Network.

Environment Requirements

  • python 3.6
  • pytorch 1.3.0

Data

Usage

  1. Download the embedding and decompress it into the embedding folder.
  2. Run the following the commands to start the program.
python run.py

More details can be seen by python run.py -h.

  1. You can use the official scorer to check the final predicted result.
perl semeval2010_task8_scorer-v1.2.pl proposed_answer.txt predicted_result.txt >> result.txt

Result

The result of my version and that in paper are present as follows:

paper my version
0.789 0.7926

The training log can be seen in train.log and the official evaluation results is available in result.txt.

Note:

  • Some settings are different from those mentioned in the paper.
  • No validation set used during training.
  • Just complete the part without lexical level features. More detail is available in Section 5.3 in this paper.
  • Although I try to set random seeds, it seems that the results of each run are a little different.

Reference Link

cnn-relation-extraction's People

Contributors

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