lysandre HF staff commited on
Commit
c626438
1 Parent(s): df7df4d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -62,8 +62,8 @@ classifier(sequence_to_classify, candidate_labels, multi_class=True)
62
  ```python
63
  # pose sequence as a NLI premise and label as a hypothesis
64
  from transformers import AutoModelForSequenceClassification, AutoTokenizer
65
- nli_model = AutoModelForSequenceClassification.from_pretrained('joeddav/xlm-roberta-large-xnli')
66
- tokenizer = AutoTokenizer.from_pretrained('joeddav/xlm-roberta-large-xnli')
67
 
68
  premise = sequence
69
  hypothesis = f'This example is {label}.'
 
62
  ```python
63
  # pose sequence as a NLI premise and label as a hypothesis
64
  from transformers import AutoModelForSequenceClassification, AutoTokenizer
65
+ nli_model = AutoModelForSequenceClassification.from_pretrained('facebook/bart-large-mnli')
66
+ tokenizer = AutoTokenizer.from_pretrained('facebook/bart-large-mnli')
67
 
68
  premise = sequence
69
  hypothesis = f'This example is {label}.'