class_docstr: Toxic comment classification for the Jigsaw challenges.
  Args:
      config ([dict]): takes in args from a predefined config
                            file containing hyperparameters.
class_docstr_tok: ["Toxic","comment","classification","for","the","Jigsaw","challenges",".","Args",":","config","(","[","dict","]",")",":","takes","in","args","from","a","predefined","config","file","containing","hyperparameters","."]
code: def __init__(self, config):
      super().__init__()
      self.save_hyperparameters()
      self.num_classes = config["arch"]["args"]["num_classes"]
      self.model_args = config["arch"]["args"]
      self.model, self.tokenizer = get_model_and_tokenizer(
          **self.model_args
      )
      self.bias_loss = False
  
      if "loss_weight" in config:
          self.loss_weight = config["loss_weight"]
      if "num_main_classes" in config:
          self.num_main_classes = config["num_main_classes"]
          self.bias_loss = True
      else:
          self.num_main_classes = self.num_classes
  
      self.config = config
  
imports: import argparse
  import json
  import os
  import pytorch_lightning
  import src.data_loaders
  import torch
  from pytorch_lightning.callbacks import ModelCheckpoint
  from src.utils import get_model_and_tokenizer
  from torch.nn import functional
  from torch.utils.data import DataLoader
label_desc: Use image node_id 1 to create a new ToxicClassifier object from inherited base classes: pl with example: obj = ToxicClassifier(config)