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
2e5c6f59
"docs/vscode:/vscode.git/clone" did not exist on "c81ebd1c39e3e1bc017a3affbba096dc9aedb5a0"
Unverified
Commit
2e5c6f59
authored
Oct 21, 2022
by
Serhii Hamotskyi
Committed by
GitHub
Oct 21, 2022
Browse files
Fix error/typo in docstring of TokenClassificationPipeline (#19798)
parent
cca51aa1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/pipelines/token_classification.py
src/transformers/pipelines/token_classification.py
+1
-1
No files found.
src/transformers/pipelines/token_classification.py
View file @
2e5c6f59
...
...
@@ -173,7 +173,7 @@ class TokenClassificationPipeline(Pipeline):
the following keys:
- **word** (`str`) -- The token/word classified. This is obtained by decoding the selected tokens. If you
want to have the exact string in the original sentence, use `start` and `
stop
`.
want to have the exact string in the original sentence, use `start` and `
end
`.
- **score** (`float`) -- The corresponding probability for `entity`.
- **entity** (`str`) -- The entity predicted for that token/word (it is named *entity_group* when
*aggregation_strategy* is not `"none"`.
...
...
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