def token_stats(doc):
    """Display tokenization stats"""
    print("After tokenization, this corpus has {} tokens.".format(len(doc)))
    print("The part-of-speech tags are:", [token.pos_ for token in doc])
    return doc