Git Product home page Git Product logo

lrner's Introduction

LR-NER

This repository is the implemented code based on PyTorch of our paper 《Improving Low Resource Named Entity Recognition using Cross-lingual Knowledge Transfer》,our approach achieved improvements on two low resource languages (including Dutch and Spanish) and Chinese OntoNotes 4.0 dataset.

1 Requirement

Python : 2.7
PyTorch : >=0.3.0

2 Installation

PyTorch

This code is based on PyTorch. You can find installation instructions here.

Dependencies

You can install dependencies like this :

pip install -r requirements.txt

3 Usage

The default configuration is in the file demo.train.config and demo.decode.config.You can modify the parameters as you want.

In training status: : CUDA_VISIBLE_DEVICES=0 python main.py --config demo.train.config

In decoding status : python main.py --config demo.decode.config

4 Dataset

Language Dataset Link
Dutch CoNLL-2002 https://github.com/synalp/NER/tree/master/corpus/
Spanish CoNLL-2002 https://github.com/synalp/NER/tree/master/corpus/
Chinese Ontonotes 4.0 https://catalog.ldc.upenn.edu/ldc2011t03
Translation Link
MUSE https://github.com/facebookresearch/MUSE
Word embedding Link
Glove(english) https://nlp.stanford.edu/projects/glove/

5 Reference

NCRF++: An Open-source Neural Sequence Labeling Toolkit

NER-pytorch

lrner's People

Contributors

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