Downloads · 30 days
5
2% of all-time downloads
Testys/cnn_yor_ner
cnn_yor_ner is a machine learning model from Testys. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This model is a CNN-based model for Named Entity Recognition (NER) built on top of a pre-trained transformer model.
Downloads · 30 days
5
2% of all-time downloads
All-time downloads
269
Public
Repo size
2.3 GB
Likes
0
Public
Click a slice to open those files.
.bin2.2 GB · 99%
From the Hugging Face model README
This model is a CNN-based model for Named Entity Recognition (NER) built on top of a pre-trained transformer model.
The model uses a pre-trained transformer as a base and adds convolutional layers on top for NER tasks.
This model is intended for Named Entity Recognition tasks. It should be used on Yoruba text data.
To use this model:
from transformers import AutoTokenizer
from custom_modeling import get_model
tokenizer = AutoTokenizer.from_pretrained("your-username/your-model-name")
model = get_model("your-username/your-model-name")
# Load the saved weights
import torch
model.load_state_dict(torch.load("pytorch_model.bin"))
# Use the model for inference
inputs = tokenizer("Your text here", return_tensors="pt")
outputs = model(**inputs)