Skip to main content

bulk-ner 0.25.2

twitter PyPI downloads

Third-party providers hosting↗️

A no-strings inference implementation framework Named Entity Recognition (NER) service of wrapped AI models ↗️.

The key features of this framework are:

  1. ☑️ Native support of batching;
  2. ☑️ Native long-input contexts handling.

Installation

From PyPI:

pip install bulk-ner

or latest from Github:

pip install git+https://github.com/nicolay-r/bulk-ner@main

Usage

API

Please take a look at the related Wiki page

Shell

NOTE: You have to install source-iter package

This is an example for using DeepPavlov==1.3.0 as an adapter for NER models passed via --adapter parameter:

  1. Downloading provider:
wget https://raw.githubusercontent.com/nicolay-r/nlp-thirdgate/refs/heads/master/ner/dp_130.py
  1. Launching inference:
python -m bulk_ner.annotate \
    --src "test/data/test.tsv" \
    --prompt "{text}" \
    --batch-size 10 \
    --adapter "dynamic:dp_130.py:DeepPavlovNER" \
    --output "test-annotated.jsonl" \
    %%m \
    --model "ner_ontonotes_bert_mult"

You can choose the other models via --model parameter.

List of the supported models is available here: https://docs.deeppavlov.ai/en/master/features/models/NER.html

Deploy your model

Third-party providers hosting↗️

Quick example: Check out the default DeepPavlov wrapper implementation

All you have to do is to implement the BaseNER class that has the following protected method:

  • _forward(sequences) -- expected to return two lists of the same length:
    • terms -- related to the list of atomic elements of the text (usually words)
    • labels -- B-I-O labels for each term.

Powered by

The pipeline construction components were taken from AREkit [github]

Metadata

Release files for bulk-ner 0.25.2

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

Source distribution (sdist)

Source distribution for bulk-ner 0.25.2
File Size Uploaded Provenance Actions
bulk_ner-0.25.2.tar.gz 15.3 kB Without provenance Details for bulk_ner-0.25.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bulk-ner 0.25.2
File Interpreter ABI Platform Actions
bulk_ner-0.25.2-py3-none-any.whl Python 3 none any Details for bulk_ner-0.25.2-py3-none-any.whl

Total release size: 33.6 kB

Release files / bulk_ner-0.25.2.tar.gz

Download URL bulk_ner-0.25.2.tar.gz
Size 15.3 kB
Tags Source
SHA-256 checksum
How to use checksums
00f5b10e71d594de6ec6000002014b12094d0a4cf12b058f326ff4481029ce0f
BLAKE2b-256 checksum
How to use checksums
88613f476f8351cda43caa4f21d23f2d6430277744c1f8c8c55fc17acc5155a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.5

Release files / bulk_ner-0.25.2-py3-none-any.whl

Download URL bulk_ner-0.25.2-py3-none-any.whl
Size 18.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
36f77a453f18fe192db9a91079c72fdca2ac96befda25aee83e106221ac5a934
BLAKE2b-256 checksum
How to use checksums
41ae55c5a39a816396c3a26cf880da41eb9eed9fb362b0e04c67132b4213d5ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.5

Security for bulk-ner 0.25.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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