Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
4fa4dcb2
Unverified
Commit
4fa4dcb2
authored
Jun 10, 2024
by
谭九鼎
Committed by
GitHub
Jun 10, 2024
Browse files
docs/zh: fix style (#31334)
parent
6b11f89c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
docs/source/zh/task_summary.md
docs/source/zh/task_summary.md
+1
-3
No files found.
docs/source/zh/task_summary.md
View file @
4fa4dcb2
...
...
@@ -284,7 +284,6 @@ score: 0.9327, start: 30, end: 54, answer: huggingface/transformers
有两种类型的话语模型:
*
causal:模型的目标是预测序列中的下一个
`token`
,而未来的
`tokens`
被遮盖。
```py
>>> from transformers import pipeline
...
...
@@ -294,9 +293,8 @@ score: 0.9327, start: 30, end: 54, answer: huggingface/transformers
>>> generator(prompt) # doctest: +SKIP
```
*
masked:模型的目标是预测序列中被遮蔽的
`token`
,同时具有对序列中所有
`tokens`
的完全访问权限。
*
masked:模型的目标是预测序列中被遮蔽的
`token`
,同时具有对序列中所有
`tokens`
的完全访问权限。
```py
>>> text = "Hugging Face is a community-based open-source <mask> for machine learning."
>>> fill_mask = pipeline(task="fill-mask")
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment