o
    ߥi\                     @   s   d dl mZmZ d dlmZ d dlmZmZ d dlm	Z
 d dlmZ e
 Z	ejejejdejejejdejejejdG dd deZd	S )
    )HeadsModels)MODELS)ModelForTokenClassification"ModelForTokenClassificationWithCRF)logger)Tasks)module_namec                   @   s   e Zd ZdZdZdS )BertForTokenClassificationa  Bert 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, word-segmentation.

    This model inherits from :class:`TokenClassificationModel`. Check the superclass documentation for the generic
    methods the library implements for all its model (such as downloading or saving, resizing the input embeddings,
    pruning heads etc.)

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

    bertN)__name__
__module____qualname____doc__base_model_type r   r   c/home/ubuntu/.local/lib/python3.10/site-packages/modelscope/models/nlp/bert/token_classification.pyr
      s    r
   N)modelscope.metainfor   r   modelscope.models.builderr   6modelscope.models.nlp.task_models.token_classificationr   r   modelscope.utilsr   loggingmodelscope.utils.constantr   
get_loggerregister_moduletoken_classificationr   part_of_speechword_segmentationr
   r   r   r   r   <module>   s   