641a742bfb59e230b7cd43420eb09705c4c15078,thinc/tests/layers/test_basic_tagger.py,,ancora,#,10

Before Change


    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):

After Change



@pytest.fixture(scope="module")
def ancora():
    return ml_datasets.ud_ancora_pos_tags()


@pytest.fixture(scope="module")
def train_X(ancora):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: explosion/thinc
Commit Name: 641a742bfb59e230b7cd43420eb09705c4c15078
Time: 2020-01-08
Author: ines@ines.io
File Name: thinc/tests/layers/test_basic_tagger.py
Class Name:
Method Name: ancora


Project Name: explosion/thinc
Commit Name: 7bfe5b57ad2c19ffc5975a377031c93d1e0fd73d
Time: 2017-02-12
Author: honnibal@gmail.com
File Name: thinc/extra/datasets.py
Class Name:
Method Name: read_snli


Project Name: tensorflow/cleverhans
Commit Name: 88fa2d2bf7be83896aad3ad71349f809f363b38d
Time: 2017-07-08
Author: papernot@google.com
File Name: cleverhans/utils.py
Class Name:
Method Name: random_targets