Giter VIP home page Giter VIP logo

shashwath94 / relation-extraction-using-cnn Goto Github PK

View Code? Open in Web Editor NEW
17.0 3.0 7.0 509 KB

A Chainer implementation of a Convolutional Network model for relation classification in the SemEval Task 8 dataset. This model performs Multi-Way Classification of Semantic Relations Between Pairs of Nominals in the SemEval 2010 task 8 dataset.

Python 100.00%
chainer python3 deep-learning convolutional-neural-networks cnn-text-classification

relation-extraction-using-cnn's Introduction

Relation-Extraction-using-CNN

A Chainer implementation of a Convolutional Network model for relation classification in the SemEval Task 8 dataset. This model performs Multi-Way Classification of Semantic Relations Between Pairs of Nominals in the SemEval 2010 task 8 dataset.

The CNN model is inspired by Relation Classification via Convolutional Deep Neural Network

Requirements

Requirements

  1. Python3
  2. Chainer
  3. vsmlib
  4. numpy
  5. Word Embeddings (It can be downloaded from https://nlp.stanford.edu/projects/glove/, the Stanford NLP group has a bunch of open source pre-trained Glove embeddings or you can use your own embeddings. Just specify the path in config.yaml)

Dataset The Semeval 2010 task 8 dataset can be downloaded from https://docs.google.com/document/d/1QO_CnmvNRnYwNWu1-QCAeR5ToQYkXUqFeAJbdEhsq7w/preview. A small subset of the data has been provided to get you started. The format of the data is as follows:

Component-Whole(e2,e1)	12	15	The system as described above has its greatest application in an arrayed configuration of antenna elements .

The first part is the label ie, the relation between the nominals present at index 12 and 15 respectively.

Configuration parameters All the config parameters and the hyperparameters of the model can be specified in the config.yaml file.

Train the model

python3 main.py config.yaml

relation-extraction-using-cnn's People

Contributors

shashwath94 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

relation-extraction-using-cnn's Issues

File missing

I'm trying to replicate your work but failed in loading the word embeddings. can I know which one did you use?

[Errno 2] No such file or directory: '/home/shashwath/ldt/Li-wiki201308_filtered/structured_linear/skip/100d/'

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.