ó
    È9i\  ã                   óp  • S SK JrJr  S SKJr  S SKJrJr  S SKJ	r
  S SKJr  \
R                  " 5       r	\R                  " \R                  \R                   S9\R                  " \R"                  \R                   S9\R                  " \R$                  \R                   S9 " S S\5      5       5       5       rg	)
é    )ÚHeadsÚModels)ÚMODELS)ÚModelForTokenClassificationÚ"ModelForTokenClassificationWithCRF)Úlogger)ÚTasks)Úmodule_namec                   ó   • \ rS rSrSrSrSrg)ÚBertForTokenClassificationé   a”  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.

Úbert© N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Úbase_model_typeÚ__static_attributes__r   ó    Úo/var/www/html/land-doc-ocr/venv/lib/python3.13/site-packages/modelscope/models/nlp/bert/token_classification.pyr   r      s   † ñð ƒOr   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   Ú<module>r$      s›   ð÷$ .Ý ,÷Eå .Ý +à	×	Ò	Ó	€ð ×Ò˜×2Ñ2ÀÇÁÑLØ×Ò˜×,Ñ,¸&¿+¹+ÑFØ×Ò˜×/Ñ/¸V¿[¹[ÑIôÐ!<ó ó Jó Gó Mñr   