In HF Chapter 5, “Time to slice and dice”: The 🤗 Datasets library - Hugging Face Course 1
I observe
new_drug_dataset = drug_dataset.map(
      lambda x: {"review": html.unescape(x["review"])},
      batched=True)

to work slightly better than the used
new_drug_dataset = drug_dataset.map(
      lambda x: {"review": [html.unescape(o) for o in x["review"]]},
      batched=True
)

Results:

image789×397 15.8 KB