@staticmethod
def get_named_entity_dict(doc):
    """
        To get named entities from NLP processed text
        :param doc: spacy container for linguistic annotations.
        :return: dictionary containing entity_text and entity_label
        """
    entity_details_dict = {'ent_text': [], 'ent_label': []}
    for ent in doc.ents:
        entity_details_dict['ent_text'].append(ent.text)
        entity_details_dict['ent_label'].append(ent.label_)
    return entity_details_dict
