Giter Site home page Giter Site logo

bilstm-crf-based-inner's Introduction

Indonesian NER using BiLSTM+CRF+IndoBERT

This model is used to predict named entities in Indonesian text utilizing BiLSTM and CRF architecture, and IndoBERT. The model is built by modifying an existing NER: https://github.com/PeijiYang/BERT-BiLSTM-CRF-NER-pytorch.

Datasets

The model uses datasets provided by IndoNLU: https://github.com/indobenchmark/indonlu

Training Dataset Format

Training dataset is in BIO format where the first column refers to words and the second column represents named entity types. These are some examples:

Produser	O
David	B-PERSON
Heyman	I-PERSON
dan	O
sutradara	O
Mark	B-PERSON
Herman	I-PERSON
sedang	O
mencari	O
seseorang	O
yang	O
mampu	O
memerankan	O
tokoh	O
utama	O
yang	O
lugu	O
,	O
sehingga	O
mereka	O
meminta	O
setiap	O
anak	O
apa	O
yang	O
mereka	O
tahu	O
tentang	O
Holocaust	O
.	O

How to run

Training and test processes can be performed at the same time using this syntax:

python ner.py --do_train True     --do_eval True     --do_test True     --max_seq_length 25  --train_batch_size 8     --eval_batch_size 8     --num_train_epochs 10     --do_lower_case     --logging_steps 200     --need_birnn True     --rnn_dim 256     --clean True

bilstm-crf-based-inner's People

Contributors

riagusmita avatar

Watchers

 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.