(mention)
return "fine_type", mention_fine_type
Compute fine-grained type of a mention.

    Args:
        mention (Mention): A mention.

    Returns:
        The tuple ('fine_type', TYPE), where where TYPE is one of 'NAM', 'DEF',
        'INDEF', 'DEM', 'VRB', 'i', 'you', 'he', 'she', 'it', 'we', 'they'
        and 'NONE'.
Compute fine-grained type of a mention.
Compute fine - grained type of a mention .
def fine_type(mention):
    """ Compute fine-grained type of a mention.

    Args:
        mention (Mention): A mention.

    Returns:
        The tuple ('fine_type', TYPE), where where TYPE is one of 'NAM', 'DEF',
        'INDEF', 'DEM', 'VRB', 'i', 'you', 'he', 'she', 'it', 'we', 'they'
        and 'NONE'.
    """
    if mention.attributes["type"] == "NOM":
        mention_fine_type = mention.attributes["fine_type"]
    elif mention.attributes["type"] == "PRO":
        mention_fine_type = mention.attributes["citation_form"]
    else:
        mention_fine_type = mention.attributes["type"]

    if not mention_fine_type:
        mention_fine_type = "NONE"

    return "fine_type", mention_fine_type
def fine_type ( mention ) : if mention . attributes [ "type" ] == "NOM" : mention_fine_type = mention . attributes [ "fine_type" ] elif mention . attributes [ "type" ] == "PRO" : mention_fine_type = mention . attributes [ "citation_form" ] else : mention_fine_type = mention . attributes [ "type" ] if not mention_fine_type : mention_fine_type = "NONE" return "fine_type" , mention_fine_type