class_docstr: Style Evaluator. Now, we support metrics `'style'`
      
class_docstr_tok: ["Style","Evaluator",".","Now",",","we","support","metrics","`","'style","'","`"]
code: def __init__(self, config):
      super(StyleEvaluator, self).__init__(config)
      self.max_len = config["tgt_len"]
      self.batch_size = config["eval_batch_size"]
      self.device = config["device"]
      self.tokenizer = BartTokenizerFast.from_pretrained(
          "facebook/bart-large", add_prefix_space=True
      )
  
      self.model = TextCNN()
      self.model.to(self.device).eval()
      self.model.load_state_dict(
          torch.load(
              f'textbox/evaluator/utils/{config["dataset"]}.ckpt'
          )
      )
  
file_path: TextBox/textbox/evaluator/style_evaluator.py
imports: from .abstract_evaluator import AbstractEvaluator
  import torch
  import torch.nn
  import torch.nn.functional
  from math import ceil
  from transformers import BartTokenizerFast
label_desc: Use image node_id 1 to create a new StyleEvaluator object from inherited base classes: AbstractEvaluator with example: obj = StyleEvaluator(config)