def _create_metrics(self) -> None:
    self.mask_loss = tf.keras.metrics.Mean(name='m_loss')
    self.intent_loss = tf.keras.metrics.Mean(name='i_loss')
    self.entity_loss = tf.keras.metrics.Mean(name='e_loss')
    self.entity_group_loss = tf.keras.metrics.Mean(name='g_loss')
    self.entity_role_loss = tf.keras.metrics.Mean(name='r_loss')
    self.mask_acc = tf.keras.metrics.Mean(name='m_acc')
    self.intent_acc = tf.keras.metrics.Mean(name='i_acc')
    self.entity_f1 = tf.keras.metrics.Mean(name='e_f1')
    self.entity_group_f1 = tf.keras.metrics.Mean(name='g_f1')
    self.entity_role_f1 = tf.keras.metrics.Mean(name='r_f1')
def _create_metrics(self) -> None:
    self.mask_loss = tf.keras.metrics.Mean(name='m_loss')
    self.intent_loss = tf.keras.metrics.Mean(name='i_loss')
    self.entity_loss = tf.keras.metrics.Mean(name='e_loss')
    self.entity_group_loss = tf.keras.metrics.Mean(name='g_loss')
    self.entity_role_loss = tf.keras.metrics.Mean(name='r_loss')
    self.mask_acc = tf.keras.metrics.Mean(name='m_acc')
    self.intent_acc = tf.keras.metrics.Mean(name='i_acc')
    self.entity_f1 = tf.keras.metrics.Mean(name='e_f1')
    self.entity_group_f1 = tf.keras.metrics.Mean(name='g_f1')
    self.entity_role_f1 = tf.keras.metrics.Mean(name='r_f1')