import re


def get_mentions (sentence,dict_configuration) :

    """Get the pronouns and mentions from a sentence"""

    mentionList=[]
    pronounsList=dict_configuration.keys()
    for unit in sentence :
        if unit[2] in pronounsList :
            mentionList.append (unit[2]+"\t"+"PRON\t"+unit[0])
        if re.search("Mention=Yes",unit[-1]) :
            mentionList.append(unit[2]+"\t"+"MENTION\t"+unit[0])
    return mentionList