GithubHelp home page GithubHelp logo

mpearce25 / named-entity-recognition-with-bidirectional-lstm-cnns Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kamalkraj/named-entity-recognition-with-bidirectional-lstm-cnns

0.0 1.0 0.0 1.12 MB

Named-Entity-Recognition-with-Bidirectional-LSTM-CNNs

License: GNU General Public License v3.0

Python 100.00%

named-entity-recognition-with-bidirectional-lstm-cnns's Introduction

Named-Entity-Recognition-with-Bidirectional-LSTM-CNNs

A keras implementation of Bidirectional-LSTM_CNNs for Named-Entity-Recoganition. The original paper can be found at https://arxiv.org/abs/1511.08308

The implementation differs from the original paper in the following ways :

  1. lexicons are not considered
  2. Bucketing is used to speed up the training
  3. nadam optimizer used instead of SGD

Result

The model produces a test F1_score of 90.9 % with ~70 epochs. The results produced in the paper for the given architecture is 91.14 Architecture(BILSTM-CNN with emb + caps)

Dataset

conll-2003

Network Model in paper

Network Model Constructed Using Keras

alt text

To run the script

   python3 nn.py

Requirements

0) nltk
1) numpy 
2) Keras==2.1.2
3) Tensorflow==1.4.1

Inference on trained model

from ner import Parser

p = Parser()

p.load_models("models/")

p.predict("Steve Went to Paris")
##Output [('Steve', 'B-PER'), ('went', 'O'), ('to', 'O'), ('Paris', 'B-LOC')]

named-entity-recognition-with-bidirectional-lstm-cnns's People

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.