def convert_masking(sentences):
    """Converts hash masking to internal [MASK] tokens"""
    converted_sentences = []
    for sent in sentences:
        sent = list(sent)
        for i, c in enumerate(sent):
            if c == "#":
                sent[i] = "[MASK]"
        converted_sentences.append("".join(sent))
    return converted_sentences