def get_meta(doc):
    """
    Get custom metadata added to ``Doc``.

    Args:
        doc (:class:`spacy.tokens.Doc`)

    Returns:
        dict
    """
    return doc.user_data.get("textacy", {}).get("meta", {})