modelzoo.transformers.pytorch.bert.bert_finetune_models.BertForTokenClassification#

class modelzoo.transformers.pytorch.bert.bert_finetune_models.BertForTokenClassification[source]#

Bases: torch.nn.Module

Methods

forward

reset_parameters

__call__(*args: Any, **kwargs: Any) Any#

Call self as a function.

__init__(num_labels, classifier_dropout=None, loss_weight=1.0, include_padding_in_loss=True, **model_kwargs)[source]#
static __new__(cls, *args: Any, **kwargs: Any) Any#