Update README.md
Browse files
README.md
CHANGED
@@ -22,7 +22,10 @@ from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
|
|
22 |
model = AutoModelForSeq2SeqLM.from_pretrained("Hnabil/t5-address-standardizer")
|
23 |
tokenizer = AutoTokenizer.from_pretrained("Hnabil/t5-address-standardizer")
|
24 |
|
25 |
-
inputs = tokenizer(
|
|
|
|
|
|
|
26 |
outputs = model.generate(**inputs, max_length=100)
|
27 |
print(tokenizer.batch_decode(outputs, skip_special_tokens=True))
|
28 |
|
|
|
22 |
model = AutoModelForSeq2SeqLM.from_pretrained("Hnabil/t5-address-standardizer")
|
23 |
tokenizer = AutoTokenizer.from_pretrained("Hnabil/t5-address-standardizer")
|
24 |
|
25 |
+
inputs = tokenizer(
|
26 |
+
"220, soyth rhodeisland aveune, mason city, iowa, 50401, us",
|
27 |
+
return_tensors="pt"
|
28 |
+
)
|
29 |
outputs = model.generate(**inputs, max_length=100)
|
30 |
print(tokenizer.batch_decode(outputs, skip_special_tokens=True))
|
31 |
|