fix the mlm longformer example by changing [MASK] to <mask> (#11559)

This commit is contained in:
Frederik Bode 2021-05-03 13:43:30 +02:00 committed by GitHub
parent 1c86157d9d
commit 6a11e4c2ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2082,6 +2082,7 @@ class TFLongformerForMaskedLM(TFLongformerPreTrainedModel, TFMaskedLanguageModel
checkpoint=_CHECKPOINT_FOR_DOC,
output_type=TFLongformerMaskedLMOutput,
config_class=_CONFIG_FOR_DOC,
mask="<mask>",
)
def call(
self,