GithubHelp home page GithubHelp logo

yiyiwang515 / bilstm-crf-keras Goto Github PK

View Code? Open in Web Editor NEW

This project forked from samrawal/bilstm-crf-keras

0.0 0.0 0.0 173 KB

Easily-configurable implementation of BiLSTM-CRF in Keras for Named Entity Recognition

Python 98.24% Shell 1.76%

bilstm-crf-keras's Introduction

Named Entity Recognition with BiLSTM-CRF in Keras

Overview

This repository contains an implementation of a BiLSTM-CRF network in Keras for performing Named Entity Recognition (NER). This implementation was created with the goals of allowing flexibility through configuration options that do not require significant changes to the code each time, and simple, robust logging to keep tabs on model performances without extra effort.

  • Model parameters are exposed through a JSON config file for easy configuration.
  • Supports automatic logging of train/test results, model parameters, etc. across multiple trials
  • Supports initializing embedding layer with weights from pretrained word2vec model (optional)

Inspired by Guillaume Genthial’s LSTM+CRF Tensorflow implementation, and following the completion of my Honors Undergraduate Thesis, I decided to create my own implementation of a BiLSTM-CRF model that would provide flexibility, while providing easy model logging and configuration without needing to make significant changes in the code each time.

Model

This is an implementation of the BiLSTM-CRF architecture described in Lample et al. Both character- and word-level representations are used for the input. Additionally, the word-level embedding layer can be initialized with pretrained word2vec model weights.

./docs/resources/BiLSTM-CRF.png

Requirements

  • Python 3.x
  • Keras
  • Tensorflow
  • numpy
  • tqdm

bilstm-crf-keras's People

Contributors

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