def get_entity_anno_dict(sentence_anno):
    """
    For each sentence annotation all annotated entities are extracted and saved in a dictionary.
    :param sentence_anno: An sentence annotation
    :rtype: dict
    """
    entity_dict = dict()

    for entity in sentence_anno.iter('entity'):
        entity_id = entity.get('id')
        entity_dict[entity_id] = entity

    return entity_dict