code: def __init__(self, seq, preprocessor=None):
      super(F1score, self).__init__()
      self.seq = seq
      self.p = preprocessor
  
file_path: anago/anago/callbacks.py
imports: import numpy
  from keras.callbacks import Callback
  from seqeval.metrics import f1_score, classification_report
label_desc: Use image node_id 1 to create a new F1score object from inherited base classes: Callback with example: obj = F1score(seq, preprocessor)