fix docstring
This commit is contained in:
@@ -985,7 +985,7 @@ class BertForTokenClassification(PreTrainedBertModel):
|
|||||||
selected in [0, 1]. It's a mask to be used if the input sequence length is smaller than the max
|
selected in [0, 1]. It's a mask to be used if the input sequence length is smaller than the max
|
||||||
input sequence length in the current batch. It's the mask that we typically use for attention when
|
input sequence length in the current batch. It's the mask that we typically use for attention when
|
||||||
a batch has varying length sentences.
|
a batch has varying length sentences.
|
||||||
`labels`: labels for the classification output: torch.LongTensor of shape [batch_size]
|
`labels`: labels for the classification output: torch.LongTensor of shape [batch_size, sequence_length]
|
||||||
with indices selected in [0, ..., num_labels].
|
with indices selected in [0, ..., num_labels].
|
||||||
|
|
||||||
Outputs:
|
Outputs:
|
||||||
|
|||||||
Reference in New Issue
Block a user