U
    &ºc¡  ã                   @   sæ   d Z ddlZddlmZ ddlmZ ddlmZmZm	Z	m
Z
mZ e e¡Zddd	d
dddœZdZedeƒG dd„ deƒƒZedeƒG dd„ deƒƒZedeƒG dd„ de	ƒƒZedeƒG dd„ deƒƒZedeƒG dd„ de
ƒƒZdS )zPyTorch XLM-RoBERTa model. é    Né   )ÚXLMRobertaConfig)Úadd_start_docstrings)ÚRobertaForMaskedLMÚRobertaForMultipleChoiceÚ RobertaForSequenceClassificationÚRobertaForTokenClassificationÚRobertaModelz=https://cdn.huggingface.co/xlm-roberta-base-pytorch_model.binz>https://cdn.huggingface.co/xlm-roberta-large-pytorch_model.binzVhttps://cdn.huggingface.co/xlm-roberta-large-finetuned-conll02-dutch-pytorch_model.binzXhttps://cdn.huggingface.co/xlm-roberta-large-finetuned-conll02-spanish-pytorch_model.binzXhttps://cdn.huggingface.co/xlm-roberta-large-finetuned-conll03-english-pytorch_model.binzWhttps://cdn.huggingface.co/xlm-roberta-large-finetuned-conll03-german-pytorch_model.bin)zxlm-roberta-basezxlm-roberta-largez)xlm-roberta-large-finetuned-conll02-dutchz+xlm-roberta-large-finetuned-conll02-spanishz+xlm-roberta-large-finetuned-conll03-englishz*xlm-roberta-large-finetuned-conll03-germanat  

    This model is a PyTorch `torch.nn.Module <https://pytorch.org/docs/stable/nn.html#torch.nn.Module>`_ sub-class.
    Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general
    usage and behavior.

    Parameters:
        config (:class:`~transformers.XLMRobertaConfig`): Model configuration class with all the parameters of the
            model. Initializing with a config file does not load the weights associated with the model, only the configuration.
            Check out the :meth:`~transformers.PreTrainedModel.from_pretrained` method to load the model weights.
zeThe bare XLM-RoBERTa Model transformer outputting raw hidden-states without any specific head on top.c                   @   s   e Zd ZdZeZeZdS )ÚXLMRobertaModelzŸ
    This class overrides :class:`~transformers.RobertaModel`. Please check the
    superclass for the appropriate documentation alongside usage examples.
    N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Zconfig_classÚ(XLM_ROBERTA_PRETRAINED_MODEL_ARCHIVE_MAPZpretrained_model_archive_map© r   r   úE/tmp/pip-unpacked-wheel-ymerj3tt/transformers/modeling_xlm_roberta.pyr
   9   s   r
   z:XLM-RoBERTa Model with a `language modeling` head on top. c                   @   s   e Zd ZdZeZeZdS )ÚXLMRobertaForMaskedLMz¥
    This class overrides :class:`~transformers.RobertaForMaskedLM`. Please check the
    superclass for the appropriate documentation alongside usage examples.
    Nr   r   r   r   r   r   G   s   r   zšXLM-RoBERTa Model transformer with a sequence classification/regression head on top (a linear layer
    on top of the pooled output) e.g. for GLUE tasks. c                   @   s   e Zd ZdZeZeZdS )Ú#XLMRobertaForSequenceClassificationz³
    This class overrides :class:`~transformers.RobertaForSequenceClassification`. Please check the
    superclass for the appropriate documentation alongside usage examples.
    Nr   r   r   r   r   r   T   s   r   z£XLM-RoBERTa Model with a multiple choice classification head on top (a linear layer on top of
    the pooled output and a softmax) e.g. for RocStories/SWAG tasks. c                   @   s   e Zd ZdZeZeZdS )ÚXLMRobertaForMultipleChoicez«
    This class overrides :class:`~transformers.RobertaForMultipleChoice`. Please check the
    superclass for the appropriate documentation alongside usage examples.
    Nr   r   r   r   r   r   c   s   r   z¡XLM-RoBERTa Model with a token classification head on top (a linear layer on top of
    the hidden-states output) e.g. for Named-Entity-Recognition (NER) tasks. c                   @   s   e Zd ZdZeZeZdS )Ú XLMRobertaForTokenClassificationz°
    This class overrides :class:`~transformers.RobertaForTokenClassification`. Please check the
    superclass for the appropriate documentation alongside usage examples.
    Nr   r   r   r   r   r   r   s   r   )r   ÚloggingZconfiguration_xlm_robertar   Z
file_utilsr   Zmodeling_robertar   r   r   r   r	   Ú	getLoggerr   Úloggerr   ZXLM_ROBERTA_START_DOCSTRINGr
   r   r   r   r   r   r   r   r   Ú<module>   sL   	
ú
þ
 ÿ
ý
ý
ý