Update
Browse files
README.md
CHANGED
@@ -24,7 +24,7 @@ You can use the model directly with a pipeline for text generation:
|
|
24 |
>>> model = GPT2LMHeadModel.from_pretrained("uer/gpt2-chinese-cluecorpussmall")
|
25 |
>>> text_generator = TextGenerationPipeline(model, tokenizer)
|
26 |
>>> text_generator("这是很久之前的事情了", max_length=100, do_sample=True)
|
27 |
-
[{'generated_text': '这是很久之前的事情了
|
28 |
```
|
29 |
|
30 |
|
|
|
24 |
>>> model = GPT2LMHeadModel.from_pretrained("uer/gpt2-chinese-cluecorpussmall")
|
25 |
>>> text_generator = TextGenerationPipeline(model, tokenizer)
|
26 |
>>> text_generator("这是很久之前的事情了", max_length=100, do_sample=True)
|
27 |
+
[{'generated_text': '这是很久之前的事情了 , 我 曾 经 把 这 个 当 做 一 种 思 想 的 传 承 , 或 者 是 人 生 的 回 顾 , 当 时 我 们 是 一 个 刚 刚 加 入 的 时 候 就 想 要 加 入 他 们 , 于 是 我 们 每 天 看 到 他 们 , 加 上 他 们 的 各 种 不 可 思 议 的 行 为 , 直 到 现 在 , 我 们 的 人 生 才 完 整 起 来 。'}]
|
28 |
```
|
29 |
|
30 |
|