Giter Club home page Giter Club logo

bert-ner's Introduction

BERT-NER

****** Jul 27st, 2019 *****

Usage

Pls use 'bash run_ner.sh' in MAC terminal or Linux (Ubuntu/...). The model is trained on data\train.txt (based on conll2003 dataset). To test the model performance, feed the model with your test dataset. Refer to data\test.txt for the dataset format. The Tag Description is following this website: https://www.ling.upenn.edu/courses/Fall_2003/ling001/penn_treebank_pos.html

Output

A sample output is given, which was tested on NUS SoC tagged dataset, data\test.txt (600+ sentences, most are collected from the latest Bloomberg news dated to Jul 2019). And the model was trained on the data\train.txt (conll2003).

processed 10368 tokens with 652 phrases; found: 670 phrases; correct: 483.

Acuracy: 97.12% precision: 72.09% recall: 74.08% FB1: 73.07
LOC: precision: 92.71% recall: 95.70% FB1: 94.18
MISC: precision: 63.44% recall: 76.13% FB1: 69.21
ORG: precision: 70.63% recall: 64.96% FB1: 67.68
PER: precision: 59.04% recall: 56.32% FB1: 57.65

Note:

Do not remove the file, label_test.txt (under dir: output\result_dir), which is required when performing the training and testing. The original BERT repo can be found https://github.com/google-research/bert
The BERT-NER repo is based on code provided here https://github.com/kyzhouhzau/BERT-NER

bert-ner's People

Contributors

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