train_X, train_y = zip(*train_data)
dev_X, dev_y = zip(*check_data)
nb_tag = max(max(y) for y in train_y) + 1
train_y = [to_categorical(y, nb_tag) for y in train_y]
dev_y = [to_categorical(y, nb_tag) for y in dev_y]
return (train_X[:100], train_y[:100]), (dev_X, dev_y)
@pytest.fixture(scope="module")
def train_X(ancora):