sonoisa commited on
Commit
72d9b3d
1 Parent(s): 39f060c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -28,7 +28,7 @@ import torch
28
 
29
  class SentenceT5:
30
  def __init__(self, model_name_or_path, device=None):
31
- self.tokenizer = T5Tokenizer.from_pretrained(model_name_or_path)
32
  self.model = T5Model.from_pretrained(model_name_or_path).encoder
33
  self.model.eval()
34
 
 
28
 
29
  class SentenceT5:
30
  def __init__(self, model_name_or_path, device=None):
31
+ self.tokenizer = T5Tokenizer.from_pretrained(model_name_or_path, is_fast=False)
32
  self.model = T5Model.from_pretrained(model_name_or_path).encoder
33
  self.model.eval()
34