Coder Social home page Coder Social logo

at4chinesener's Introduction

AT4ChineseNER

This is the source code for the paper ''Adversarial Transfer Learning for Chinese Named Entity Recognition with Self-Attention Mechanism'' accepted by EMNLP2018. The paper can be download from http://aclweb.org/anthology/D18-1017.

Requirements

  • TensorFlow >= v1.2.0
  • numpy
  • python 2.7

Usage

Download datasets

Please download the WeiboNER dataset, SighanNER dataset and MSR dataset, respectively. The dataset files are put in data directory.

Train model

For training the model on WeiboNER dataset, you need to type the following commands:

  • python preprocess_weibo.py
  • python train_weibo.py

For SighanNER dataset, the operation is similar.

Test model

We have provided our best model on the original WeiboNER dataset in the ckpt directory. You just run the model like:

  • python preprocess_weibo.py
  • python test_weibo.py

In addition, if you adjust certain hyper-parameters and train the model, you can test the model with restoring certain checkpoint.

Citation

If you use the code, please cite this paper:

Pengfei Cao, Yubo Chen, Kang Liu, Jun Zhao. Adversarial Transfer Learning for Chinese Named Entity Recognition with Self-Attention Mechanism. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing (EMNLP2018).

at4chinesener's People

Contributors

cpf-nlpr avatar zxteloiv avatar

Watchers

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