def ignore_token_weights(paired_tokens, stopwords):
    """
    Set attention weights of certain tokens to 0 given a list of stopwords
    :param paired_tokens: A list of tuple with the form (token, attention_weight)
    :param stopwords: A list of words whose attention weight we want to set to 0
    :return: paired_tokens with the some weights set to 0 based on stopwords
    """
    new_paired_tokens = []
    for token, weight in paired_tokens:
        weight = 0 if token in stopwords else weight
        new_paired_tokens.append((token, weight))

    return new_paired_tokens