def strip_to_vocab(doc, vocab):
    """ Remove from doc any tokens not in vocab.

    Args:
        doc (list): list of tokens
        vocab (dict): keys overlap with tokens in doc

    Returns:
        list
    """
    return [ tkn for tkn in doc if tkn in vocab ]