A minimal package exposing a simple NER runner using Hugging Face transformers pipeline.
Project description
ner_simple
A minimal package that exposes a single function run_ner(text, model=...) to run Named Entity Recognition using Hugging Face transformers pipeline.
Files
ner_simple/ner.py- containsrun_nerfunction.requirements.txt- basic dependencies.
Usage
pip install -r requirements.txt
# or install transformers and torch manually
from ner_simple import run_ner
text = "Barack Obama was born in Hawaii and was the 44th President of the United States."
entities = run_ner(text)
print(entities)
The default model is dbmdz/bert-large-cased-finetuned-conll03-english which is fine-tuned for CoNLL-03 NER tasks.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ner_simple-0.1.0.tar.gz.
File metadata
- Download URL: ner_simple-0.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a23740b875003fdeed0dace17532f6e0fa79c8016d40c69819e0765b0200d0d
|
|
| MD5 |
56aca09ccf8e3e04ab17ba4ee7b5849a
|
|
| BLAKE2b-256 |
b72d1d441798a5cd625048420824f7f25732f0764a1d5d04caa6367b6b44ecb6
|
File details
Details for the file ner_simple-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ner_simple-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9049c0bf7ee3c24f05f8131c079522ce93c9b376179fcaa85574c5c29177dc08
|
|
| MD5 |
aff327e0286c5f78c35aefdbc3ff37f8
|
|
| BLAKE2b-256 |
d1340f92f4ef39850ba1265c5aeb8528ff87cb89618a99b20cc4dab7c011793b
|