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