def convert_masks(seq):
    """Converts # masking to the [MASK] symbol used by BERT."""
    seq = list(seq)
    for i, c in enumerate(seq):
        if c == "#":
            seq[i] = "[MASK]"
    return "".join(seq)