GithubHelp home page GithubHelp logo

taocheng-cs / zero-resource Goto Github PK

View Code? Open in Web Editor NEW

This project forked from siddharthss500/zero-resource

0.0 0.0 0.0 43.68 MB

Zero-Resource Cross-Domain Named Entity Recognition

Python 100.00%

zero-resource's Introduction

Zero Resource Cross-Domain Named Entity Recognition

This is a Pytorch implementation of BiLSTM-CRF+MTL+MoEE for Cross Domain Named Entity Recognition, which is described in https://arxiv.org/pdf/2002.05923.pdf.

Data

The corpus is found in the data folder. The model uses CoNLL 2003 data for training and validation. The test data is the CBS SciTech News Dataset taken from https://github.com/jiachenwestlake/Cross-Domain_NER.

How to run the code

python run.py train METHOD TRAIN SENT_VOCAB TAG_VOCAB_NER TAG_VOCAB_ENTITY [options]

python run.py test METHOD TEST SENT_VOCAB TAG_VOCAB_NER TAG_VOCAB_ENTITY MODEL [options]

For example,

python run.py train MTL ./data/train.txt ./vocab/sent_vocab.json ./vocab/tag_vocab_ner.json ./vocab/tag_vocab_entity.json --cuda --validation-every 100 --max-decay 1 --embed-size 300 --max-epoch 100

python run.py test MTL ./data/tech_test.txt ./vocab/sent_vocab.json ./vocab/tag_vocab_ner.json ./vocab/tag_vocab_entity.json ./model/model.pth --cuda --validation-every 100 --max-decay 1 --embed-size 300 --max-epoch 100

Results

Model Author's Results Our Results
FastText-Pretrained FastText-Fine tuned FastText-Pretrained
unfreeze freeze unfreeze freeze unfreeze freeze
BiLSTM-CRF 63.18 67.89 63.38 67.64 64.41 67.56
BiLSTM-CRF w/ MTL 64.62 69.58 66.5 64.7 68.84 68.89
BiLSTM-CRF w/ MTL (Separate) - - 66.3 66.1 68.84 68.89
BiLSTM-CRF w/ MoEE 65.24 69.25 62.3 63.19 68.7 67.94
BiLSTM-CRF w/ MTL and MoEE 64.88 70.04 49.98 65.38 67.24 68.33
Mod1 - - 66.27 65.57 68.31 70.37
Mod2 - - 45.66 61.91 65.33 69.36

Contributors

  1. Siddharth Sundararajan
  2. Nitin Reddy Karolla

Reference

  1. https://github.com/Gxzzz/BiLSTM-CRF
  2. https://github.com/jiachenwestlake/Cross-Domain_NER

code review

run.py line12

zero-resource's People

Contributors

siddharthss500 avatar taocheng-cs 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.