Downloads · 30 days
16
3% of all-time downloads
jacinthes/cross-encoder-sloberta-si-nli
cross-encoder-sloberta-si-nli is a text classification model from jacinthes. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as cc-by-sa-4.0.
The model was trained using the SentenceTransformers CrossEncoder class. <br / It is based on SloBerta, a monolingual Slovene model.
Downloads · 30 days
16
3% of all-time downloads
All-time downloads
499
Public
Repo size
1.3 GB
Likes
0
Public
Click a slice to open those files.
.bin443 MB · 99%
From the Hugging Face model README
The model was trained using the SentenceTransformers CrossEncoder class. <br /> It is based on SloBerta, a monolingual Slovene model.
This model was trained on the SI-NLI dataset.<br /> More details and the training script are available here: repo
The model achieves the following metrics:
The model can be used for inference using the below code:
from sentence_transformers import CrossEncoder
model = CrossEncoder('jacinthes/cross-encoder-sloberta-si-nli')
premise = 'Pojdi z menoj v toplice.'
hypothesis = 'Bova lepa bova fit.'
prediction = model.predict([premise, hypothesis])
int2label = {0: 'entailment', 1: 'neutral', 2:'contradiction'}
print(int2label[prediction.argmax()])