code: def tagging(preds, labels):
      p = sequence_precision_score(labels, preds)
      r = sequence_recall_score(labels, preds)
      f1 = sequence_f1_score(labels, preds)
      return p, r, f1
  
file_path: nlp-architect/nlp_architect/utils/metrics.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  from scipy.stats import pearsonr, spearmanr
  from sklearn.metrics import f1_score
  from collections import defaultdict
  import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: tagging(preds, labels) and returns: p,  r,  f1