def get_annotations(element):
    """
    returns a dictionary of all the annotation features of an element,
    e.g. tiger.pos = ART or coref.type = anaphoric.
    """
    from labels import get_annotation
    annotations = {}
    for label in element.getchildren():
        if get_xsi_type(label) == 'saltCore:SAnnotation':
            annotations.update([get_annotation(label)])
    return annotations