From e477eb919f675edf2c2bdc35ce67cdbd880ebb5b Mon Sep 17 00:00:00 2001 From: Santiago Castro Date: Wed, 28 Oct 2020 15:52:28 -0400 Subject: [PATCH] Fix typo in `AutoModelForMaskedLM` docs (#8129) --- src/transformers/modeling_auto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transformers/modeling_auto.py b/src/transformers/modeling_auto.py index e148ace57..267ba9927 100644 --- a/src/transformers/modeling_auto.py +++ b/src/transformers/modeling_auto.py @@ -938,7 +938,7 @@ class AutoModelForMaskedLM: This is a generic model class that will be instantiated as one of the model classes of the library---with a masked language modeling head---when created with the when created with the :meth:`~transformers.AutoModelForMaskedLM.from_pretrained` class method or the - :meth:`~transformers.AutoModelForMasedLM.from_config` class method. + :meth:`~transformers.AutoModelForMaskedLM.from_config` class method. This class cannot be instantiated directly using ``__init__()`` (throws an error). """