XiaoZhang98
commited on
Commit
•
d8ec0de
1
Parent(s):
ecf576b
Update README.md
Browse files
README.md
CHANGED
@@ -1,6 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
## Example Usage
|
2 |
|
3 |
-
|
4 |
|
5 |
```python
|
6 |
from transformers import AutoTokenizer, T5ForConditionalGeneration
|
@@ -20,4 +25,4 @@ output = model.generate(x)
|
|
20 |
|
21 |
# Decode and print the output text
|
22 |
pred_text = tokenizer.decode(output[0], skip_special_tokens=True, clean_up_tokenization_spaces=False)
|
23 |
-
print(pred_text)
|
|
|
1 |
+
---
|
2 |
+
{}
|
3 |
+
|
4 |
+
---
|
5 |
+
|
6 |
## Example Usage
|
7 |
|
8 |
+
This section demonstrates how to use the `XiaoZhang98/byT5-DRS` model with the Hugging Face Transformers library to process an example sentence.
|
9 |
|
10 |
```python
|
11 |
from transformers import AutoTokenizer, T5ForConditionalGeneration
|
|
|
25 |
|
26 |
# Decode and print the output text
|
27 |
pred_text = tokenizer.decode(output[0], skip_special_tokens=True, clean_up_tokenization_spaces=False)
|
28 |
+
print(pred_text)
|