Downloads · 30 days
0
Akindelevictoria/yoruba-multilingual-constituency-parser
yoruba-multilingual-constituency-parser is a machine learning model from Akindelevictoria. 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 cc-by-4.0.
This repository hosts a transformer-based constituency parser fine-tuned on the manually annotated Yoruba Constituency Treebank (Version 1.0). The model is designed to automatically generate phrase-structure trees for…
Downloads · 30 days
0
Access
Public
Updated Jan 8, 2026
Repo size
797 KB
Likes
0
Public
Click a slice to open those files.
.json2.4 MB · 75%
From the Hugging Face model README
This repository hosts a transformer-based constituency parser fine-tuned on the manually annotated Yoruba Constituency Treebank (Version 1.0). The model is designed to automatically generate phrase-structure trees for Yoruba sentences, supporting both linguistic research and NLP applications.
The parser is built on a T5 architecture and was fine-tuned to understand Yoruba syntax, including:
This model is intended for academic use, syntactic analysis, and computational research in Yoruba language processing.
| File | Description |
|---|---|
config.json | Model architecture and configuration settings. |
pytorch_model.bin or model.safetensors | Trained model weights. |
tokenizer.json or tokenizer.model | Tokenization rules for Yoruba sentences. |
tokenizer_config.json | Tokenizer settings and special rules. |
special_tokens_map.json | Maps special tokens (e.g., <pad>, <eos>). |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
# Load the fine-tuned Yoruba parser
model_name_or_path = "YOUR-HF-USERNAME/yoruba-constituency-parser"
tokenizer = AutoTokenizer.from_pretrained(model_name_or_path)
model = AutoModelForSeq2SeqLM.from_pretrained(model_name_or_path)
# Parse a sample Yoruba sentence
sentence = "Mo ra aso tuntun"
inputs = tokenizer(sentence, return_tensors="pt")
outputs = model.generate(**inputs)
parsed_tree = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(parsed_tree)
## Authors
Victoria A. Akindele
Department of Linguistics, University of Ibadan
Dr. Gerald Nweya
Department of Linguistics, University of Ibadan (Project Supervisor)