Fix error/typo in docstring of TokenClassificationPipeline (#19798)

This commit is contained in:
Serhii Hamotskyi 2022-10-21 16:53:16 +00:00 committed by GitHub
parent cca51aa151
commit 2e5c6f5975
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"`.