|
--- |
|
license: cc-by-sa-4.0 |
|
datasets: |
|
- ctu-aic/csfever_v2 |
|
language: |
|
- cs |
|
library_name: sentence-transformers |
|
pipeline_tag: text-classification |
|
--- |
|
|
|
# Model Card for xlm-roberta-large-squad2-csfever_v2-f1 |
|
|
|
## Model Details |
|
|
|
Model for natural language inference trained as a part of bachelor thesis. |
|
|
|
## Uses |
|
|
|
### Transformers |
|
```python |
|
from transformers import AutoModelForSequenceClassification, AutoTokenizer |
|
model = AutoModelForSequenceClassification.from_pretrained("ctu-aic/xlm-roberta-large-squad2-csfever_v2-f1") |
|
tokenizer = AutoTokenizer.from_pretrained("ctu-aic/xlm-roberta-large-squad2-csfever_v2-f1") |
|
|
|
``` |
|
|
|
### Sentence Transformers |
|
```python |
|
from sentence_transformers.cross_encoder import CrossEncoder |
|
model = CrossEncoder('ctu-aic/xlm-roberta-large-squad2-csfever_v2-f1') |
|
scores = model.predict([["My first context.", "My first hypothesis."], |
|
["Second context.", "Hypothesis."]]) |
|
``` |