class_docstr: This class represents an error case
  
  Args:
      _input: Original input string
      target: Ground-truth target string
      pred: Predicted string
      mode: A string indicates the mode (i.e., constants.ITN_MODE or constants.TN_MODE)
class_docstr_tok: ["This","class","represents","an","error","case","Args",":","_input",":","Original","input","string","target",":","Ground-truth","target","string","pred",":","Predicted","string","mode",":","A","string","indicates","the","mode","(","i.e.",",","constants.ITN_MODE","or","constants.TN_MODE",")"]
docstr: This method returns a HTML string representing this error case instance.
  Returns: a string contains the HTML representing this error case instance.
docstr_tok: ["This","method","returns","a","HTML","string","representing","this","error","case","instance",".","Returns",":","a","string","contains","the","HTML","representing","this","error","case","instance","."]
code: def get_html(self):
      """
      This method returns a HTML string representing this error case instance.
      Returns: a string contains the HTML representing this error case instance.
      """
      html_str = ""
      # Input
      input_form = (
          "Written" if self.mode == constants.TN_MODE else "Spoken"
      )
      padding_multiplier = 1 if self.mode == constants.TN_MODE else 2
      padding_spaces = "".join(["&nbsp;"] * padding_multiplier)
      input_str = f"<b>[Input ({input_form})]{padding_spaces}</b>: {self._input}</br>\n"
      html_str += input_str + " "
      # Target
      target_html = self.get_spans_html(
          self.target_spans, self.target_tokens
      )
      target_form = (
          "Spoken" if self.mode == constants.TN_MODE else "Written"
      )
      target_str = (
          f"<b>[Target ({target_form})]</b>: {target_html}</br>\n"
      )
      html_str += target_str + " "
      # Pred
      pred_html = self.get_spans_html(self.pred_spans, self.pred_tokens)
      padding_multiplier = 10 if self.mode == constants.TN_MODE else 11
      padding_spaces = "".join(["&nbsp;"] * padding_multiplier)
      pred_str = (
          f"<b>[Prediction]{padding_spaces}</b>: {pred_html}</br>\n"
      )
      html_str += pred_str + " "
      # Classes
      padding_multiplier = 15 if self.mode == constants.TN_MODE else 16
      padding_spaces = "".join(["&nbsp;"] * padding_multiplier)
      class_str = (
          f"<b>[Classes]{padding_spaces}</b>: {self.classes}</br>\n"
      )
      html_str += class_str + " "
      # Space
      html_str += "</br>\n"
      return html_str
  
file_path: NeMo/examples/nlp/duplex_text_normalization/analyze_errors.py
imports: from argparse import ArgumentParser
  from typing import List
  from nemo.collections.nlp.data.text_normalization import constants
label_desc: Use image node_id 3 for calling the ErrorCase obj's underlying member method code with example usage: obj.get_html() and returns: html_str