Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
abf3cc70
Unverified
Commit
abf3cc70
authored
Mar 21, 2022
by
PolarisRisingWar
Committed by
GitHub
Mar 21, 2022
Browse files
Fix a typo (add a coma) (#16291)
As mentioned:
https://github.com/huggingface/transformers/issues/16277
parent
641e5f3f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/source/task_summary.mdx
docs/source/task_summary.mdx
+1
-1
No files found.
docs/source/task_summary.mdx
View file @
abf3cc70
...
...
@@ -213,7 +213,7 @@ Here is an example of question answering using a model and a tokenizer. The proc
with
the
weights
stored
in
the
checkpoint
.
2.
Define
a
text
and
a
few
questions
.
3.
Iterate
over
the
questions
and
build
a
sequence
from
the
text
and
the
current
question
,
with
the
correct
model
-
specific
separators
token
type
ids
and
attention
masks
.
model
-
specific
separators
,
token
type
ids
and
attention
masks
.
4.
Pass
this
sequence
through
the
model
.
This
outputs
a
range
of
scores
across
the
entire
sequence
tokens
(
question
and
text
),
for
both
the
start
and
end
positions
.
5.
Compute
the
softmax
of
the
result
to
get
probabilities
over
the
tokens
.
...
...
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