class_docstr: Taken from the official evaluation script for v1.1 of the SQuAD dataset
class_docstr_tok: ["Taken","from","the","official","evaluation","script","for","v1.1","of","the","SQuAD","dataset"]
code: def __init__(self, dist_sync_on_step=False, *args, **kwargs):
      super().__init__(dist_sync_on_step=dist_sync_on_step)
  
      self.add_state(
          "correct", default=torch.tensor(0.0), dist_reduce_fx="sum"
      )
      self.add_state(
          "total", default=torch.tensor(0), dist_reduce_fx="sum"
      )
  
imports: import logging
  import re
  import string
  from collections import Counter
  from typing import List, Union
  import torch
  from torchmetrics import Metric
label_desc: Use image node_id 1 to create a new TokenF1Score object from inherited base classes: Metric with example: obj = TokenF1Score(dist_sync_on_step)