mirror of
https://github.com/saymrwulf/transformers.git
synced 2026-05-14 20:58:08 +00:00
Fix style
This commit is contained in:
parent
38ddab10da
commit
986dd5c5bf
2 changed files with 9 additions and 2 deletions
|
|
@ -2140,7 +2140,10 @@ class LongformerForTokenClassification(LongformerPreTrainedModel):
|
|||
checkpoint="brad1141/Longformer-finetuned-norm",
|
||||
output_type=LongformerTokenClassifierOutput,
|
||||
config_class=_CONFIG_FOR_DOC,
|
||||
expected_output="['Evidence', 'Evidence', 'Evidence', 'Evidence', 'Evidence', 'Evidence', 'Evidence', 'Evidence', 'Evidence', 'Evidence', 'Evidence', 'Evidence']",
|
||||
expected_output=(
|
||||
"['Evidence', 'Evidence', 'Evidence', 'Evidence', 'Evidence', 'Evidence', 'Evidence', 'Evidence',"
|
||||
" 'Evidence', 'Evidence', 'Evidence', 'Evidence']"
|
||||
),
|
||||
expected_loss=0.63,
|
||||
)
|
||||
def forward(
|
||||
|
|
|
|||
|
|
@ -2591,7 +2591,11 @@ class TFLongformerForTokenClassification(TFLongformerPreTrainedModel, TFTokenCla
|
|||
checkpoint="hf-internal-testing/tiny-random-longformer",
|
||||
output_type=TFLongformerTokenClassifierOutput,
|
||||
config_class=_CONFIG_FOR_DOC,
|
||||
expected_output="['LABEL_1', 'LABEL_1', 'LABEL_1', 'LABEL_1', 'LABEL_1', 'LABEL_1', 'LABEL_1', 'LABEL_1', 'LABEL_1', 'LABEL_1', 'LABEL_1', 'LABEL_1', 'LABEL_1', 'LABEL_1', 'LABEL_1', 'LABEL_1', 'LABEL_1', 'LABEL_1', 'LABEL_1', 'LABEL_1']",
|
||||
expected_output=(
|
||||
"['LABEL_1', 'LABEL_1', 'LABEL_1', 'LABEL_1', 'LABEL_1', 'LABEL_1', 'LABEL_1', 'LABEL_1', 'LABEL_1',"
|
||||
" 'LABEL_1', 'LABEL_1', 'LABEL_1', 'LABEL_1', 'LABEL_1', 'LABEL_1', 'LABEL_1', 'LABEL_1', 'LABEL_1',"
|
||||
" 'LABEL_1', 'LABEL_1']"
|
||||
),
|
||||
expected_loss=0.59,
|
||||
)
|
||||
def call(
|
||||
|
|
|
|||
Loading…
Reference in a new issue