Elron commited on
Commit
7e64472
1 Parent(s): 1388f44

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -2
README.md CHANGED
@@ -1,3 +1,4 @@
 
1
  ## BLEURT
2
 
3
  Pytorch version of the original BLEURT models from ACL paper ["BLEURT: Learning Robust Metrics for Text Generation"](https://aclanthology.org/2020.acl-main.704/) by
@@ -8,7 +9,7 @@ The code for model conversion was originated from [this notebook](https://colab.
8
  ## Usage Example
9
 
10
  ```python
11
- from transformers import BertForSequenceClassification, AutoTokenizer
12
  import torch
13
 
14
  tokenizer = AutoTokenizer.from_pretrained("elron/bleurt-large-512")
@@ -22,4 +23,4 @@ with torch.no_grad():
22
  scores = model(**tokenizer(references, candidates, return_tensors='pt'))[0]
23
 
24
  print(scores) # tensor([[0.9877], [0.0475]])
25
- ```
 
1
+
2
  ## BLEURT
3
 
4
  Pytorch version of the original BLEURT models from ACL paper ["BLEURT: Learning Robust Metrics for Text Generation"](https://aclanthology.org/2020.acl-main.704/) by
 
9
  ## Usage Example
10
 
11
  ```python
12
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer
13
  import torch
14
 
15
  tokenizer = AutoTokenizer.from_pretrained("elron/bleurt-large-512")
 
23
  scores = model(**tokenizer(references, candidates, return_tensors='pt'))[0]
24
 
25
  print(scores) # tensor([[0.9877], [0.0475]])
26
+ ```