def load_textcat_data(limit=<NUM_LIT:0>):
<EOL>train_data, eval_data = thinc.extra.datasets.imdb()<EOL>random.shuffle(train_data)<EOL>train_data = train_data[-limit:]<EOL>texts, labels = zip(*train_data)<EOL>eval_texts, eval_labels = zip(*eval_data)<EOL>cats = [{"<STR_LIT>": bool(y), "<STR_LIT>": not bool(y)} for y in labels]<EOL>eval_cats = [{"<STR_LIT>": bool(y), "<STR_LIT>": not bool(y)} for y in eval_labels]<EOL>return (texts, cats), (eval_texts, eval_cats)<EOL>
Load data from the IMDB dataset.