code: def __init__(self, cfg):
      super(LM, self).__init__()
      self.bert = BertModel.from_pretrained(
          cfg.lm_file, num_hidden_layers=cfg.num_hidden_layers
      )
      self.bilstm = RNN(cfg)
      self.fc = nn.Linear(cfg.hidden_size, cfg.num_attributes)
      self.dropout = nn.Dropout(cfg.dropout)
  
file_path: DeepKE/src/deepke/attribution_extraction/standard/models/LM.py
imports: import os
  import sys
  from torch import nn
  from .None import BasicModule
  from module import RNN
  from transformers import BertModel
  from utils import seq_len_to_mask
label_desc: Use image node_id 1 to create a new LM object from inherited base classes: BasicModule with example: obj = LM(cfg)