---
language:
- yo
library_name: sentence-transformers
tags:
- sentence-transformers
- sentence-similarity
- feature-extraction
- generated_from_trainer
- dataset_size:5019
- loss:TripletLoss
base_model: Davlan/bert-base-multilingual-cased-finetuned-yoruba
datasets:
- embedding-data/QQP_triplets
metrics:
- cosine_accuracy
- dot_accuracy
- manhattan_accuracy
- euclidean_accuracy
- max_accuracy
widget:
- source_sentence: Bawo ni eniyan lasan ṣe le ṣe agbaye ni aye ti o dara julọ?
sentences:
- Ewo ni fiimu ti o dara julọ ti agbaye?
- >-
Bawo ni a ṣe le ṣe agbaye ni aye ti o dara julọ fun gbogbo ati fun iran
iwaju lati wa?
- Njẹ aiye yii dara julọ tabi buru?
- source_sentence: Ni Pokemon ati tẹmpili ti okun, kilode ti o yanilenu Manicy?
sentences:
- Kini idi ti Manafy ọmọ-ọwọ ni Pokémon ger ati tẹmpili ti okun?
- Bawo ni awọn ibeere mi ṣe wa nigbagbogbo nigbagbogbo lori Quora?
- Ṣe "Pokémon ti o wuyi ati tẹmpili ti Okun" ka akọku?
- source_sentence: Kini itumo igbesi aye yii?
sentences:
- Kini "Gbe igbesi aye rẹ" tumọ si?
- Kini o ro pe o jẹ itumọ ti igbesi aye?
- >-
Nitorinaa bawo ni MO ṣe le gba meth lati fulu jade ninu ara ni awọn wakati 2
ṣaaju idanwo togbo kan?
- source_sentence: >-
Nibo ni MO le gba ọpọlọpọ awọn aso deede, awọn aṣọ alekun & awọn aṣọ irọlẹ
ni goolu ni eti okun?
sentences:
- >-
Nibo ni MO le gba ọpọlọpọ awọn awọ ati titobi fun awọn aṣọ awọn alagbaje ni
Gold Coast?
- >-
Kini yoo ṣẹlẹ ti o ba jẹ ki o dina nkan bi Facebook tabi Google ni isansa ti
iṣan neta?
- Nibo ni MO le gba ikojọpọ ti o lẹwa fun awọn aṣọ igbeyawo ni Sydney?
- source_sentence: Kini o yẹ ki Ilu India ṣe lori ikọlu UI?
sentences:
- Bawo ni MO ṣe sọ Gẹẹsi leta ni ifọrọwanilẹnuwo kan?
- >-
Lẹhin gbogbo họọsi ti media media ti ṣẹda awọn ikọlu URI Wip, kii yoo jẹ
ohun itiju fun India ti ko ba kọlu Pakistan?
- Bawo ni India le dahun si ikọlu ẹru UI?
pipeline_tag: sentence-similarity
model-index:
- name: >-
SentenceTransformer based on
Davlan/bert-base-multilingual-cased-finetuned-yoruba
results:
- task:
type: triplet
name: Triplet
dataset:
name: Unknown
type: unknown
metrics:
- type: cosine_accuracy
value: 0.865
name: Cosine Accuracy
- type: dot_accuracy
value: 0.135
name: Dot Accuracy
- type: manhattan_accuracy
value: 0.868
name: Manhattan Accuracy
- type: euclidean_accuracy
value: 0.868
name: Euclidean Accuracy
- type: max_accuracy
value: 0.868
name: Max Accuracy
---
# SentenceTransformer based on Davlan/bert-base-multilingual-cased-finetuned-yoruba
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [Davlan/bert-base-multilingual-cased-finetuned-yoruba](https://huggingface.co/Davlan/bert-base-multilingual-cased-finetuned-yoruba). It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
## Model Details
### Model Description
- **Model Type:** Sentence Transformer
- **Base model:** [Davlan/bert-base-multilingual-cased-finetuned-yoruba](https://huggingface.co/Davlan/bert-base-multilingual-cased-finetuned-yoruba)
- **Maximum Sequence Length:** 512 tokens
- **Output Dimensionality:** 768 tokens
- **Similarity Function:** Cosine Similarity
### Model Sources
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
- **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
### Full Model Architecture
```
SentenceTransformer(
(0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: BertModel
(1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
)
```
## Usage
### Direct Usage (Sentence Transformers)
First install the Sentence Transformers library:
```bash
pip install -U sentence-transformers
```
Then you can load this model and run inference.
```python
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("adejumobi/bert-base-multilingual-cased-finetuned-yoruba-IR")
# Run inference
sentences = [
'Kini o yẹ ki Ilu India ṣe lori ikọlu UI?',
'Bawo ni India le dahun si ikọlu ẹru UI?',
'Lẹhin gbogbo họọsi ti media media ti ṣẹda awọn ikọlu URI Wip, kii yoo jẹ ohun itiju fun India ti ko ba kọlu Pakistan?',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 768]
# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]
```
## Evaluation
### Metrics
#### Triplet
* Evaluated with [TripletEvaluator
](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.TripletEvaluator)
| Metric | Value |
|:--------------------|:----------|
| **cosine_accuracy** | **0.865** |
| dot_accuracy | 0.135 |
| manhattan_accuracy | 0.868 |
| euclidean_accuracy | 0.868 |
| max_accuracy | 0.868 |
## Training Details
### Training Dataset
#### Unnamed Dataset
* Size: 5,019 training samples
* Columns: query
, pos
, and neg
* Approximate statistics based on the first 1000 samples:
| | query | pos | neg |
|:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
| type | string | string | string |
| details |
Kini idi ti Ilu India ṣe a ko ni ọkan lori ijiroro oloselu kan bi ni AMẸRIKA?
| Kini idi ti a ko le ni ijiroro gbangba laarin awọn oloselu ni India bi ọkan ninu wa?
| Njẹ eniyan le da quo duro de India Pakistan ariyanjiyan?A ni aisan ati ti o ri eyi lojoojumọ ni olopo?
|
| Kini OnePlus Ọkan?
| Bawo ni OnePlus kan?
| Kini idi ti OnePlus Ọkan dara?
|
| Ṣe ọkan wa ṣe iṣakoso awọn ẹdun wa?
| Bawo ni ọlọgbọn ati awọn eniyan aṣeyọri ṣe ṣakoso awọn ẹdun wọn?
| Bawo ni MO ṣe le ṣakoso awọn ẹdun mi rere fun awọn eniyan ti Mo nifẹ ṣugbọn wọn ko bikita nipa mi?
|
* Loss: [TripletLoss
](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#tripletloss) with these parameters:
```json
{
"distance_metric": "TripletDistanceMetric.EUCLIDEAN",
"triplet_margin": 5
}
```
### Evaluation Dataset
#### Unnamed Dataset
* Size: 1,000 evaluation samples
* Columns: query
, pos
, and neg
* Approximate statistics based on the first 1000 samples:
| | query | pos | neg |
|:--------|:----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|
| type | string | string | string |
| details | Bawo ni o jẹ ọjọ ebi?
| Bawo ni o jẹ ọsan
| Njẹ NEBM lueMo ṣẹlẹ lati wa awọn ifiweranṣẹ ti o sọ pe o jẹ iro ati pe ko ni itter
|
| Kini awọn ohun elo akọkọ ti kọnputa kan?
| Kini diẹ ninu awọn ẹya akọkọ ti kọnputa kan?Awọn iṣẹ wo ni wọn nṣe iranṣẹ?
| Kini awọn eto kọmputa?Kini awọn iṣẹ ti awọn eto kọnputa?
|
| Ṣe o le faffiti Artists fun sokiri Graffiti ni Rockdale County, GA?
| Ṣe o le fun awọn ojukokoro fun fun sokiri Graffiti ni Cockdale County, Georgia?
| Kini idi ti Graffiti jẹ arufin?
|
* Loss: [TripletLoss
](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#tripletloss) with these parameters:
```json
{
"distance_metric": "TripletDistanceMetric.EUCLIDEAN",
"triplet_margin": 5
}
```
### Training Hyperparameters
#### Non-Default Hyperparameters
- `eval_strategy`: steps
- `per_device_train_batch_size`: 12
- `per_device_eval_batch_size`: 3
- `learning_rate`: 1e-05
- `num_train_epochs`: 5
- `warmup_ratio`: 0.1
- `fp16`: True
- `batch_sampler`: no_duplicates
#### All Hyperparameters