Update README.md
Browse files
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 |
|