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mZ e e¡Z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edeƒG dd„ de	ƒƒZdS )zPyTorch CamemBERT model. é    Né   )ÚCamembertConfig)Úadd_start_docstrings)ÚRobertaForMaskedLMÚRobertaForMultipleChoiceÚRobertaForQuestionAnsweringÚ RobertaForSequenceClassificationÚRobertaForTokenClassificationÚRobertaModelz;https://cdn.huggingface.co/camembert-base-pytorch_model.binzThttps://cdn.huggingface.co/Musixmatch/umberto-commoncrawl-cased-v1/pytorch_model.binzThttps://cdn.huggingface.co/Musixmatch/umberto-wikipedia-uncased-v1/pytorch_model.bin)zcamembert-basezumberto-commoncrawl-cased-v1zumberto-wikipedia-uncased-v1a  

    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.CamembertConfig`): 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.
zcThe bare CamemBERT 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 )ÚCamembertModelzŸ
    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Ú&CAMEMBERT_PRETRAINED_MODEL_ARCHIVE_MAPZpretrained_model_archive_map© r   r   úC/tmp/pip-unpacked-wheel-ymerj3tt/transformers/modeling_camembert.pyr   6   s   r   z8CamemBERT Model with a `language modeling` head on top. c                   @   s   e Zd ZdZeZeZdS )ÚCamembertForMaskedLMz¥
    This class overrides :class:`~transformers.RobertaForMaskedLM`. Please check the
    superclass for the appropriate documentation alongside usage examples.
    Nr   r   r   r   r   r   D   s   r   z˜CamemBERT 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 )Ú"CamembertForSequenceClassificationz³
    This class overrides :class:`~transformers.RobertaForSequenceClassification`. Please check the
    superclass for the appropriate documentation alongside usage examples.
    Nr   r   r   r   r   r   Q   s   r   z¡CamemBERT 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 )ÚCamembertForMultipleChoicez«
    This class overrides :class:`~transformers.RobertaForMultipleChoice`. Please check the
    superclass for the appropriate documentation alongside usage examples.
    Nr   r   r   r   r   r   `   s   r   zŸCamemBERT 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 )ÚCamembertForTokenClassificationz°
    This class overrides :class:`~transformers.RobertaForTokenClassification`. Please check the
    superclass for the appropriate documentation alongside usage examples.
    Nr   r   r   r   r   r   o   s   r   z×CamemBERT Model with a span classification head on top for extractive question-answering tasks like SQuAD
    (a linear layers on top of the hidden-states output to compute `span start logits` and `span end logits` c                   @   s   e Zd ZdZeZeZdS )ÚCamembertForQuestionAnsweringz®
    This class overrides :class:`~transformers.RobertaForQuestionAnswering`. Please check the
    superclass for the appropriate documentation alongside usage examples.
    Nr   r   r   r   r   r   ~   s   r   )r   ÚloggingZconfiguration_camembertr   Z
file_utilsr   Zmodeling_robertar   r   r   r   r	   r
   Ú	getLoggerr   Úloggerr   ZCAMEMBERT_START_DOCSTRINGr   r   r   r   r   r   r   r   r   r   Ú<module>   sP    

ýþ
 ÿ
ý
ý
ý
ý