---
language:
- fr
license: cc-by-4.0
base_model: flaubert/flaubert_base_cased
library_name: transformers
pipeline_tag: text-classification
tags:
- flaubert
- nli
- french
- xnli
datasets:
- facebook/xnli
---
# Flaubert-XNLI
A French Natural Language Inference (NLI) model, fine-tuned from
[`flaubert/flaubert_base_cased`](https://huggingface.co/flaubert/flaubert_base_cased)
on the French portion of [XNLI](https://huggingface.co/datasets/facebook/xnli).
Given a **premise** and a **hypothesis**, the model predicts the relationship between
them: **entailment**, **neutral**, or **contradiction**.
## Usage
```python
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
tokenizer = AutoTokenizer.from_pretrained("ColinDvrt/Flaubert-XNLI")
model = AutoModelForSequenceClassification.from_pretrained("ColinDvrt/Flaubert-XNLI")
premise = "Un homme joue de la guitare sur une scène."
hypothesis = "Quelqu'un fait de la musique."
inputs = tokenizer(premise, hyp…