Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,33 @@
|
|
1 |
---
|
2 |
license: cc-by-sa-4.0
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: cc-by-sa-4.0
|
3 |
+
datasets:
|
4 |
+
- ctu-aic/csfever_v2
|
5 |
+
language:
|
6 |
+
- cs
|
7 |
+
library_name: sentence-transformers
|
8 |
+
pipeline_tag: text-classification
|
9 |
---
|
10 |
+
|
11 |
+
# Model Card for xlm-roberta-large-squad2-csfever_v2-precision
|
12 |
+
|
13 |
+
## Model Details
|
14 |
+
|
15 |
+
Model for natural language inference trained as a part of bachelor thesis.
|
16 |
+
|
17 |
+
## Uses
|
18 |
+
|
19 |
+
### Transformers
|
20 |
+
```python
|
21 |
+
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
22 |
+
model = AutoModelForSequenceClassification.from_pretrained("ctu-aic/xlm-roberta-large-squad2-csfever_v2-precision")
|
23 |
+
tokenizer = AutoTokenizer.from_pretrained("ctu-aic/xlm-roberta-large-squad2-csfever_v2-precision")
|
24 |
+
|
25 |
+
```
|
26 |
+
|
27 |
+
### Sentence Transformers
|
28 |
+
```python
|
29 |
+
from sentence_transformers.cross_encoder import CrossEncoder
|
30 |
+
model = CrossEncoder('ctu-aic/xlm-roberta-large-squad2-csfever_v2-precision')
|
31 |
+
scores = model.predict([["My first context.", "My first hypothesis."],
|
32 |
+
["Second context.", "Hypothesis."]])
|
33 |
+
```
|