Commit
•
ea045f4
1
Parent(s):
c93675d
Update README.md
Browse files
README.md
CHANGED
@@ -25,10 +25,10 @@ Furthermore, we enriched the gold_silver flavors of PMB (release 5.0.0) with dif
|
|
25 |
|
26 |
To use the model, follow the code below for a quick response.
|
27 |
|
28 |
-
from transformers import
|
29 |
|
30 |
# Initialize the tokenizer and model
|
31 |
-
tokenizer =
|
32 |
|
33 |
model = T5ForConditionalGeneration.from_pretrained('saadamin2k13/byT5_ft_semantic_parser')
|
34 |
|
|
|
25 |
|
26 |
To use the model, follow the code below for a quick response.
|
27 |
|
28 |
+
from transformers import ByT5Tokenizer, T5ForConditionalGeneration
|
29 |
|
30 |
# Initialize the tokenizer and model
|
31 |
+
tokenizer = ByT5Tokenizer.from_pretrained('saadamin2k13/byT5_ft_semantic_parser', max_length=512)
|
32 |
|
33 |
model = T5ForConditionalGeneration.from_pretrained('saadamin2k13/byT5_ft_semantic_parser')
|
34 |
|