Code Monkey home page Code Monkey logo

ner-bilstm-crf-affix-pytorch's Introduction

NER-BiLSTM-CRF-Affix-PyTorch

  • A PyTorch implementation of a common NER model: BiLSTM-CRF with Character-Word-Capital-Affix-Level Feature.
  • Tips: Some code are referred from ZhixiuYe/NER-pytorch.
  • Paper: Bidirectional LSTM-CRF Models for Sequence Tagging - arXiv
  • Paper: Deep Affix Features Improve Neural Named Entity Recognizers - ACL

Architecture

architecture

Dataset

Train

  • First, download eng.train, eng.testa, eng.testb, glove.6B.100d.txt and save to ./data/ folder.
  • To train, execute the following script. You can edit some parameters in train.py.

Tips: The evaluate script will ask you to have a perl interpreter, commonly it has been installed on Linux systems.

python3 train.py \
    --output_mapping ./output/mapping.pkl \
    --output_affix_list ./output/affix_list.json \
    --use_crf 1 \
    --add_cap_feature 1 \
    --add_affix_feature 1 \
    --use_gpu 1 \
    --model_path ./model

References

ner-bilstm-crf-affix-pytorch's People

Contributors

aoi-hosizora avatar

Watchers

James Cloos 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.