def extract_all_chars(batch):
    """Extract all unique characters from a text"""
    all_text = " ".join(batch["text"])
    vocab = list(set(all_text))
    return {"vocab": [vocab], "all_text": [all_text]}