Update README.md
Browse files
README.md
CHANGED
@@ -27,7 +27,7 @@ widget:
|
|
27 |
|
28 |
# Randeng-BART-139M-QG-Chinese
|
29 |
|
30 |
-
- Github: [Fengshenbang-LM](https://github.com/IDEA-CCNL/Fengshenbang-LM/tree/
|
31 |
- Docs: [Fengshenbang-Docs](https://fengshenbang-doc.readthedocs.io/)
|
32 |
|
33 |
## 简介 Brief Introduction
|
@@ -77,7 +77,8 @@ out = model.generate(
|
|
77 |
max_length=64,
|
78 |
top_p = 0.9,
|
79 |
)
|
80 |
-
|
|
|
81 |
# 问题:华沙的犹太人口占城市的百分之多少?
|
82 |
```
|
83 |
|
|
|
27 |
|
28 |
# Randeng-BART-139M-QG-Chinese
|
29 |
|
30 |
+
- Github: [Fengshenbang-LM/Bart_qg](https://github.com/IDEA-CCNL/Fengshenbang-LM/tree/dev/yangqi/fengshen/examples/bart_qg)
|
31 |
- Docs: [Fengshenbang-Docs](https://fengshenbang-doc.readthedocs.io/)
|
32 |
|
33 |
## 简介 Brief Introduction
|
|
|
77 |
max_length=64,
|
78 |
top_p = 0.9,
|
79 |
)
|
80 |
+
pred = tokenizer.batch_decode(out,clean_up_tokenization_spaces=True, skip_special_tokens=True)[0]
|
81 |
+
print(pred)
|
82 |
# 问题:华沙的犹太人口占城市的百分之多少?
|
83 |
```
|
84 |
|