original_docstring: Update the state of the metric with new predictions
  
          Args:
              gt: list of groung-truth character sequences
              pred: list of predicted character sequences
docstring: Update the state of the metric with new predictions
docstring_tokens: Update the state of the metric with new predictions
code: def update(self, gt: List[str], pred: List[str],) -> None:
          """Update the state of the metric with new predictions
  
          Args:
              gt: list of groung-truth character sequences
              pred: list of predicted character sequences"""
  
          if len(gt) != len(pred):
              raise AssertionError(
                  "prediction size does not match with ground-truth labels size"
              )
  
          for gt_word, pred_word in zip(gt, pred):
              _raw, _caseless, _unidecode, _unicase = string_match(gt_word, pred_word)
              self.raw += int(_raw)
              self.caseless += int(_caseless)
              self.unidecode += int(_unidecode)
              self.unicase += int(_unicase)
  
          self.total += len(gt)
code_tokens: def update ( self , gt : List [ str ] , pred : List [ str ] , ) -> None : if len ( gt ) != len ( pred ) : raise AssertionError ( "prediction size does not match with ground-truth labels size" ) for gt_word , pred_word in zip ( gt , pred ) : _raw , _caseless , _unidecode , _unicase = string_match ( gt_word , pred_word ) self . raw += int ( _raw ) self . caseless += int ( _caseless ) self . unidecode += int ( _unidecode ) self . unicase += int ( _unicase ) self . total += len ( gt )
short_docstring: Update the state of the metric with new predictions
short_docstring_tokens: Update the state of the metric with new predictions
comment: """Update the state of the metric with new predictions
  
          Args:
              gt: list of groung-truth character sequences
              pred: list of predicted character sequences"""