Update README.md
Browse files
README.md
CHANGED
@@ -78,7 +78,7 @@ tokenizer = AutoTokenizer.from_pretrained('itdainb/vietnamese-cross-encoder')
|
|
78 |
|
79 |
activation_fct = torch.nn.Identity()
|
80 |
|
81 |
-
features = tokenizer(
|
82 |
|
83 |
model.eval()
|
84 |
with torch.no_grad():
|
|
|
78 |
|
79 |
activation_fct = torch.nn.Identity()
|
80 |
|
81 |
+
features = tokenizer(tokenized_pairs, padding=True, truncation="longest_first", return_tensors="pt", max_length=256)
|
82 |
|
83 |
model.eval()
|
84 |
with torch.no_grad():
|