def _predict_entities(self, predict_out: Optional[Dict[(Text, tf.Tensor)]], message: Message) -> List[Dict]:
    if (predict_out is None):
        return []
    (predicted_tags, confidence_values) = train_utils.entity_label_to_tags(predict_out, self._entity_tag_specs, self.component_config[BILOU_FLAG])
    entities = self.convert_predictions_into_entities(message.get(TEXT), message.get(TOKENS_NAMES[TEXT], []), predicted_tags, self.split_entities_config, confidence_values)
    entities = self.add_extractor_name(entities)
    entities = (message.get(ENTITIES, []) + entities)
    return entities
def _predict_entities(self, predict_out: Optional[Dict[(Text, tf.Tensor)]], message: Message) -> List[Dict]:
    if (predict_out is None):
        return []
    (predicted_tags, confidence_values) = train_utils.entity_label_to_tags(predict_out, self._entity_tag_specs, self.component_config[BILOU_FLAG])
    entities = self.convert_predictions_into_entities(message.get(TEXT), message.get(TOKENS_NAMES[TEXT], []), predicted_tags, self.split_entities_config, confidence_values)
    entities = self.add_extractor_name(entities)
    entities = (message.get(ENTITIES, []) + entities)
    return entities