class_docstr: Compile and save results of human+model chats.
  
  Results will be saved on the level of specific conversations, as well as aggregated
  up the level of each worker as a whole.
class_docstr_tok: ["Compile","and","save","results","of","human+model","chats",".","Results","will","be","saved","on","the","level","of","specific","conversations",",","as","well","as","aggregated","up","the","level","of","each","worker","as","a","whole","."]
code: def __init__(self, opt: Dict[str, Any]):
      super().__init__(opt)
      # Validate problem buckets
      if (
          self.use_problem_buckets
          and "none_all_good" not in self.problem_buckets
      ):
          # The code relies on a catchall "none" category if the user selects no other
          # annotation bucket
          raise ValueError(
              'There must be a "none_all_good" category in self.problem_buckets!'
          )
  
      # Input args
      os.makedirs(self.output_folder, exist_ok=True)
      self.max_convos_per_worker = opt["max_convos_per_worker"]
      self.min_word_count = opt["min_word_count"]
      self.worker_block_list = opt["worker_block_list"].split(",")
  
      # Setting up problem buckets
      if self.use_problem_buckets:
          self.regular_buckets = [
              bucket
              for bucket in self.problem_buckets
              if bucket not in ["other", "none_all_good"]
          ]
          # Remove the buckets that are special cases
  
      self.acceptability_checker = AcceptabilityChecker()
  
file_path: ParlAI/parlai/crowdsourcing/tasks/model_chat/analysis/compile_results.py
imports: import os
  from datetime import datetime
  from typing import Any, Dict
  import numpy
  import pandas
  from parlai.crowdsourcing.utils.acceptability import AcceptabilityChecker
  from parlai.crowdsourcing.utils.analysis import AbstractTurnAnnotationResultsCompiler
  from parlai.crowdsourcing.tasks.model_chat.model_chat_blueprint import BLUEPRINT_TYPE
label_desc: Use image node_id 2 to create a new ModelChatResultsCompiler object from inherited base classes: AbstractTurnAnnotationResultsCompiler with example: obj = ModelChatResultsCompiler(opt)