Git Product home page Git Product logo

ner-d's Introduction

ner-d

image

image

image

image

image

ner-d is a Python module for Named Entity Recognition (NER). Named entity recognition (NER) (also known as entity identification, entity chunking and entity extraction) is a subtask of information extraction that seeks to locate and classify named entity mentions in unstructured text into pre-defined categories such as the person names, organizations, locations, medical codes, time expressions, quantities, monetary values, percentages, etc.

Gives you easy use with a single main function and flexibility for selecting language models. It automatically downloads models if not downloaded before and links on system and finds the entities from given text block.

Prerequisites

  • A single dependency listed on requirements.txt and will be installed when you install with pip.

Installation

  • Install module using pip:

    $ pip install ner-d
  • Download the latest ner-d library from: https://github.com/verifid/ner-d and install module using pip:

    $ pip install -e .
  • Extract the source distribution and run:

    $ python setup.py build
    $ python setup.py install

Usage

  • ner:
from nerd import ner

doc = ner.name("""GitHub launched April 10, 2008, a subsidiary of Microsoft, is an American web-based hosting service for version control using Git.
                   It is mostly used for computer code. It offers all of the distributed version control and source code management (SCM) functionality
                   of Git as well as adding its own features.""", language='en_core_web_sm')
text_label = [(X.text, X.label_) for X in doc]
print(text_label)
// [(u'GitHub', u'ORG'), (u'April 10, 2008', u'DATE'), (u'Microsoft', u'ORG'), (u'American', u'NORP'), (u'Git', u'PERSON'), (u'SCM', u'ORG'), (u'Git', u'PERSON')]

CLI

// Downloads language model
python -m nerd -d en_core_web_sm

// Load language model
python -m nerd -l en_core_web_sm

// Find entities from text
python -m nerd -n "GitHub launched April 10, 2008, a subsidiary of Microsoft, is an American web-based hosting service for version control using Git.
                   It is mostly used for computer code. It offers all of the distributed version control and source code management (SCM) functionality
                   of Git as well as adding its own features."

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.