class_docstr: Represents the result of a goal function evaluating a AttackedText
  object.
  
  Args:
      attacked_text: The sequence that was evaluated.
      output: The display-friendly output.
      goal_status: The ``GoalFunctionResultStatus`` representing the status of the achievement of the goal.
      score: A score representing how close the model is to achieving its goal.
      num_queries: How many model queries have been used
      ground_truth_output: The ground truth output
class_docstr_tok: ["Represents","the","result","of","a","goal","function","evaluating","a","AttackedText","object",".","Args",":","attacked_text",":","The","sequence","that","was","evaluated",".","output",":","The","display-friendly","output",".","goal_status",":","The","``","GoalFunctionResultStatus","``","representing","the","status","of","the","achievement","of","the","goal",".","score",":","A","score","representing","how","close","the","model","is","to","achieving","its","goal",".","num_queries",":","How","many","model","queries","have","been","used","ground_truth_output",":","The","ground","truth","output"]
code: def __init__(
      self,
      attacked_text,
      raw_output,
      output,
      goal_status,
      score,
      num_queries,
      ground_truth_output,
      goal_function_result_type="",
  ):
      self.attacked_text = attacked_text
      self.raw_output = raw_output
      self.output = output
      self.score = score
      self.goal_status = goal_status
      self.num_queries = num_queries
      self.ground_truth_output = ground_truth_output
      self.goal_function_result_type = goal_function_result_type
  
      if isinstance(self.raw_output, torch.Tensor):
          self.raw_output = self.raw_output.numpy()
  
      if isinstance(self.score, torch.Tensor):
          self.score = self.score.item()
  
file_path: TextAttack/textattack/goal_function_results/goal_function_result.py
imports: from abc import ABC, abstractmethod
  import torch
  from textattack.shared import utils
label_desc: Use image node_id 1 to create a new GoalFunctionResult object from inherited base classes: ABC with example: obj = GoalFunctionResult(attacked_text, raw_output, output, goal_status, score, num_queries, ground_truth_output, goal_function_result_type)