def embed(tokenizer, text):
    """
    Embeds a text sequence using BERT tokenizer
    :param text: text to be embedded
    :return: embedded sequence (text -> tokens -> ids)
    """
    return tokenizer.convert_tokens_to_ids(tokenizer.tokenize(text))