Ahmet Bağcı
commited on
Commit
·
5f72235
1
Parent(s):
20bdb85
fix typo
Browse files
README.md
CHANGED
@@ -26,7 +26,7 @@ tokenizer=BertTokenizerFast.from_pretrained("dbmdz/bert-base-turkish-cased")
|
|
26 |
model = EncoderDecoderModel.from_pretrained("ahmetbagci/bert2bert-turkish-paraphrase-generation")
|
27 |
|
28 |
text="son model arabalar çevreye daha mı az zarar veriyor?"
|
29 |
-
input_ids = tokenizer(
|
30 |
output_ids = model.generate(input_ids)
|
31 |
print(tokenizer.decode(output_ids[0], skip_special_tokens=True))
|
32 |
#sample output
|
|
|
26 |
model = EncoderDecoderModel.from_pretrained("ahmetbagci/bert2bert-turkish-paraphrase-generation")
|
27 |
|
28 |
text="son model arabalar çevreye daha mı az zarar veriyor?"
|
29 |
+
input_ids = tokenizer(text, return_tensors="pt").input_ids
|
30 |
output_ids = model.generate(input_ids)
|
31 |
print(tokenizer.decode(output_ids[0], skip_special_tokens=True))
|
32 |
#sample output
|