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 an instance of ErrorCase from raw string lines.
  
  Args:
      lines: A list of raw string lines for the error case.
      mode: A string indicates the mode (i.e., constants.ITN_MODE or constants.TN_MODE)
  
  Returns: an instance of ErrorCase.
docstr_tok: ["This","method","returns","an","instance","of","ErrorCase","from","raw","string","lines",".","Args",":","lines",":","A","list","of","raw","string","lines","for","the","error","case",".","mode",":","A","string","indicates","the","mode","(","i.e.",",","constants.ITN_MODE","or","constants.TN_MODE",")","Returns",":","an","instance","of","ErrorCase","."]
code: def from_lines(cls, lines: List[str], mode: str):
      """
      This method returns an instance of ErrorCase from raw string lines.
  
      Args:
          lines: A list of raw string lines for the error case.
          mode: A string indicates the mode (i.e., constants.ITN_MODE or constants.TN_MODE)
  
      Returns: an instance of ErrorCase.
      """
      for line in lines:
          if line.startswith("Original Input"):
              _input = line[line.find(":") + 1 :].strip()
          elif line.startswith("Predicted Str"):
              pred = line[line.find(":") + 1 :].strip()
          elif line.startswith("Ground-Truth"):
              target = line[line.find(":") + 1 :].strip()
          elif line.startswith("Ground Classes"):
              classes = line[line.find(":") + 1 :].strip()
      return cls(_input, target, pred, classes, mode)
  
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 2 for calling the ErrorCase obj's underlying member method code with example usage: obj.from_lines(cls, lines, mode) and returns: cls