This commit is contained in:
BDoyen 2021-03-25 10:47:14 +00:00
commit e465c1e5f8
1 changed files with 7 additions and 3 deletions

View File

@ -1,10 +1,14 @@
--- ---
language: language:
- french - fr
thumbnail: thumbnail:
tags: tags:
- zero-shot-classification - zero-shot-classification
license: - xnli
- nli
- fr
license: mit
pipeline_tag: zero-shot-classification
datasets: datasets:
- xlni - xlni
metrics: metrics:
@ -42,7 +46,7 @@ classifier(sequence, candidate_labels, hypothesis_template=hypothesis_template)
``` ```
- As a premise/hypothesis checker : <br> - As a premise/hypothesis checker : <br>
The idea is here to compute a probability of the form \\\\\\\\(P(premise|hypothesis)\\\\\\\\) The idea is here to compute a probability of the form \\(P(premise|hypothesis)\\)
```python ```python
# load model and tokenizer # load model and tokenizer