YorubaCNN Models
Collection
A collection of CNN models trained on Yoruba Texts for Named Entity Recognition and Sentiment Analysis.
โข
2 items
โข
Updated
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)