Downloads · 30 days
181
1% of all-time downloads
tanaos/tanaos-NER-v1
tanaos-NER-v1 is a token classification model from tanaos. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as mit.
<p align="center" <img src="https://raw.githubusercontent.com/tanaos/.github/master/assets/logo.png" width="250px" alt="Tanaos – Train task specific LLMs without training data, for offline NLP and Text Classification"…
Downloads · 30 days
181
1% of all-time downloads
All-time downloads
19.2K
Public
Parameters
124M
496 MB on disk
Likes
12
Public
Click a slice to open those files.
.safetensors496 MB · 99%
From the Hugging Face model README
This model was created by Tanaos with the Artifex Python library.
This is a Named Entity Recognition model based on FacebookAI/roberta-base and fine-tuned on a synthetic dataset to recognize and classify entities in text into the following 14 entity categories:
| Entity | Description |
|---|---|
PERSON | Individual people, fictional characters |
ORG | Companies, institutions, agencies |
LOCATION | Geographical areas |
DATE | Absolute or relative dates, including years, months and/or days |
TIME | Specific time of the day |
PERCENT | Percentage expressions |
NUMBER | Numeric measurements or expressions |
FACILITY | Buildings, airports, highways, etc. |
PRODUCT | Objects, vehicles, food, etc. bearing a specific name |
WORK_OF_ART | Titles of creative works |
LANGUAGE | Natural or programming languages |
NORP | National, religious or political groups |
ADDRESS | Full addresses |
PHONE_NUMBER | Telephone numbers |
These entities were chosen to cover a wide range of common named entity types that are useful in various NLP applications, regardless of the specific application domain, in order to create a versatile and general-purpose Named Entity Recognition model, applicable across various industries and use cases.
Use this model through the Artifex library:
install Artifex with
pip install artifex
use the model with
from artifex import Artifex
ner = Artifex().named_entity_recognition()
named_entities = ner("John landed in Barcelona at 15:45.")
print(named_entities)
# >>> [[{'entity_group': 'PERSON', 'score': 0.92174554, 'word': 'John', 'start': 0, 'end': 4}, {'entity_group': 'LOCATION', 'score': 0.9853817, 'word': ' Barcelona', 'start': 15, 'end': 24}, {'entity_group': 'TIME', 'score': 0.98645407, 'word': ' 15:45.', 'start': 28, 'end': 34}]]
FacebookAI/roberta-baseThis model was trained using the Artifex Python library
pip install artifex
by providing the following instructions and generating 10,000 synthetic training samples:
from artifex import Artifex
ner = Artifex().named_entity_recognition()
ner.train(
named_entities={
"PERSON": "Individual people, fictional characters",
"ORG": "Companies, institutions, agencies",
"LOCATION": "Geographical areas",
"DATE": "Absolute or relative dates, including years, months and/or days",
"TIME": "Specific time of the day",
"PERCENT": "Percentage expressions",
"NUMBER": "Numeric measurements or expressions",
"FACILITY": "Buildings, airports, highways, etc.",
"PRODUCT": "Objects, vehicles, food, etc. bearing a specific name",
"WORK_OF_ART": "Titles of creative works",
"LANGUAGE": "Natural or programming languages",
"NORP": "National, religious or political groups",
"ADDRESS": "full addresses",
"PHONE_NUMBER": "telephone numbers",
},
domain="general",
num_samples=10000
)
This model is intended to:
Not intended for: