(mention)
return "length", str(len(mention.attributes["tokens"]))
Compute length of a mention in tokens.

    Args:
        mention (Mention): A mention.

    Returns:
        The tuple ('length' LENGTH), where LENGTH is the length of the
        mention in tokens. The length is stored as a string.
Compute length of a mention in tokens.
Compute length of a mention in tokens .
def length(mention):
    """ Compute length of a mention in tokens.

    Args:
        mention (Mention): A mention.

    Returns:
        The tuple ('length' LENGTH), where LENGTH is the length of the
        mention in tokens. The length is stored as a string.
    """
    return "length", str(len(mention.attributes["tokens"]))
def length ( mention ) : return "length" , str ( len ( mention . attributes [ "tokens" ] ) )