Token Classification
Transformers
PyTorch
GLiNER
English
code
finance
named-entity-recognition
argilla
Instructions to use bhums/argilla_token_classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bhums/argilla_token_classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="bhums/argilla_token_classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("bhums/argilla_token_classifier", device_map="auto") - GLiNER
How to use bhums/argilla_token_classifier with GLiNER:
from gliner import GLiNER model = GLiNER.from_pretrained("bhums/argilla_token_classifier") text = "Cristiano Ronaldo dos Santos Aveiro was born on 5 February 1985 in Funchal, Madeira, Portugal." labels = ["person", "date", "location"] entities = model.predict_entities(text, labels) for entity in entities: print(entity["text"], "=>", entity["label"]) - Notebooks
- Google Colab
- Kaggle
Commit History
-
Rename config.json to gliner_config.json
Verified signature3141c89 -
renamed to config.json
Verified signaturebb9970b -
Update README.md
Verified signaturebd14b7f -
Update README.md
Verified signaturefd06c20 -
create README.md
Verified signature## Model Description This is a token classification model based on the GLiNER architecture, fine-tuned for recognizing various entity types from text. The model is trained on the OntoNotes 5 dataset and is designed to classify tokens into categories such as PERSON, ORG, DATE, and more. ## Intended Use This model is intended for token classification tasks, particularly for named entity recognition (NER). It can be used to identify and classify entities in text, making it useful for information extraction, content tagging, and other NLP applications. ## Training Data The model is fine-tuned on the OntoNotes 5 dataset, which provides annotated text data with various entity types. The dataset includes diverse examples of entities such as locations, organizations, dates, and other types of named entities. ## Usage You can use the model for token classification as follows: ```python from transformers import AutoTokenizer, AutoModelForTokenClassification import torch # Load the mode…0510b6a -
Push model using huggingface_hub.
Verified signaturebcfcb21 -
initial commit
Verified signaturea19ffe1