gorkemgoknar
commited on
Commit
•
a9d6ced
1
Parent(s):
8490a0e
Update README.md
Browse files
README.md
CHANGED
@@ -73,7 +73,7 @@ model.eval() # disable dropout (or leave in train mode to finetune)
|
|
73 |
```python
|
74 |
# input sequence
|
75 |
text = "Bu yazıyı bilgisayar yazdı."
|
76 |
-
inputs = tokenizer(text, return_tensors="pt")
|
77 |
|
78 |
# model output
|
79 |
outputs = model(**inputs, labels=inputs["input_ids"])
|
@@ -94,7 +94,7 @@ print('predicted text:', predicted_text)
|
|
94 |
```python
|
95 |
# input sequence
|
96 |
text = "Bu yazıyı bilgisayar yazdı."
|
97 |
-
inputs = tokenizer(text, return_tensors="pt")
|
98 |
|
99 |
# model output using Top-k sampling text generation method
|
100 |
sample_outputs = model.generate(inputs.input_ids,
|
73 |
```python
|
74 |
# input sequence
|
75 |
text = "Bu yazıyı bilgisayar yazdı."
|
76 |
+
inputs = tokenizer(text, return_tensors="pt")
|
77 |
|
78 |
# model output
|
79 |
outputs = model(**inputs, labels=inputs["input_ids"])
|
94 |
```python
|
95 |
# input sequence
|
96 |
text = "Bu yazıyı bilgisayar yazdı."
|
97 |
+
inputs = tokenizer(text, return_tensors="pt")
|
98 |
|
99 |
# model output using Top-k sampling text generation method
|
100 |
sample_outputs = model.generate(inputs.input_ids,
|