code: def __init__(self, config):
      super(BertCRFForTokenClassification, self).__init__(config)
      self.num_labels = config.num_labels
  
      self.bert = BertModel(config)
      self.dropout = nn.Dropout(config.hidden_dropout_prob)
      self.classifier = nn.Linear(
          config.hidden_size, config.num_labels + 2
      )
      self.crf = CRF(self.num_labels)
  
      self.init_weights()
  
file_path: DeepKE/src/deepke/event_extraction/standard/bertcrf/bert_crf.py
imports: import logging
  from transformers.models.bert import BertModel, BertPreTrainedModel, BertConfig
  from .crf import *
  from .utils_ee import to_crf_pad, unpad_crf
label_desc: Use image node_id 1 to create a new BertCRFForTokenClassification object from inherited base classes: BertPreTrainedModel with example: obj = BertCRFForTokenClassification(config)