Giter Site home page Giter Site logo

named-entity-recognition's Introduction

Named Entity Recognition

Named Entity Recognition (NER) is a subtask of information extraction that locates and classifies named entities mentioned in unstructured text into pre-defined categories such as the person names, organizations, locations, etc.

This task is done with the help of the Hugginface libraries: transformers and datasets

Dataset

The dataset used for this task is the CoNLL-2003 dataset which is available in the datasets library. The dataset is already split into training, validation, and test sets.

Data description

  • id: a string feature.
  • tokens: a list of string features.
  • pos_tags: a list of classification labels (int).
  • chunk_tags: a list of classification labels (int).
  • ner_tags: a list of classification labels (int). Full tagset with indices:

Model

The model used to perform the NER task is the BertForTokenClassification model which is a BERT model pre-trained for token-level classification tasks. The model can be found here.

This model is then fine-tuned on the CoNLL-2003 dataset.

Training

The model is trained using the Trainer class from the transformers library. The training is done on the CoNLL-2003 dataset with the following hyperparameters:

  • batch_size: 16

  • learning_rate: 2e-5

  • epochs: 3

named-entity-recognition's People

Contributors

abstract-dex 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.