Skip to main content

ner-d

https://img.shields.io/pypi/v/ner-d.svg https://img.shields.io/pypi/pyversions/ner-d.svg https://travis-ci.org/verifid/ner-d.svg?branch=master https://codecov.io/gh/verifid/ner-d/branch/master/graph/badge.svg

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

Metadata

Release files for ner-d 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for ner-d 0.4.0
File Interpreter ABI Platform
ner_d-0.4.0-py3-none-any.whl Python 3 none any Details

Release files / ner_d-0.4.0-py3-none-any.whl

Download URL ner_d-0.4.0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de1687872e221fc0d86be57c81b45b9ca529982fb053b5a46280e20f53b9c674
BLAKE2b-256 checksum
How to use checksums
8acaf971fddbb219dc8d69bba4207b6ea5028a7a8b7a6390d81f31a00740d022
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.4.0 This release

1 release file

0.3.0

1 release file

0.2.1

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page