12f8fb89877344a669f8ee37c19edef05b7d1676,language/nql/nql/dataset_test.py,TestTFDataset,test_handle_unk_entity,#TestTFDataset#,157
Before Change
b"c": NP_C + NP_D,
b"d": NP_D + NP_UNK,
}
for (s, a) in instances:
self.assertEqual(type(s), self.tf_string_type)
np.testing.assert_array_equal(a, exp_values[s])
def test_error_recovery(self):
dset = dataset.tuple_dataset(
self.context,
self.noisy_examples, [str, "uc_t"],
After Change
b"c": NP_C + NP_D,
b"d": NP_D + NP_UNK,
}
self.check_instances(instances, exp_values)
def test_error_recovery(self):
dset = dataset.tuple_dataset(
self.context,
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 5
Instances
Project Name: google-research/language
Commit Name: 12f8fb89877344a669f8ee37c19edef05b7d1676
Time: 2020-04-04
Author: kentonl@google.com
File Name: language/nql/nql/dataset_test.py
Class Name: TestTFDataset
Method Name: test_handle_unk_entity
Project Name: google-research/language
Commit Name: 12f8fb89877344a669f8ee37c19edef05b7d1676
Time: 2020-04-04
Author: kentonl@google.com
File Name: language/nql/nql/dataset_test.py
Class Name: TestTFDataset
Method Name: test_empty_recovery
Project Name: google-research/language
Commit Name: 12f8fb89877344a669f8ee37c19edef05b7d1676
Time: 2020-04-04
Author: kentonl@google.com
File Name: language/nql/nql/dataset_test.py
Class Name: TestTFDataset
Method Name: test_normalize_empty
Project Name: google-research/language
Commit Name: 12f8fb89877344a669f8ee37c19edef05b7d1676
Time: 2020-04-04
Author: kentonl@google.com
File Name: language/nql/nql/dataset_test.py
Class Name: TestTFDataset
Method Name: test_normalize
Project Name: google-research/language
Commit Name: 12f8fb89877344a669f8ee37c19edef05b7d1676
Time: 2020-04-04
Author: kentonl@google.com
File Name: language/nql/nql/dataset_test.py
Class Name: TestTFDataset
Method Name: test_lookup
Project Name: google-research/language
Commit Name: 12f8fb89877344a669f8ee37c19edef05b7d1676
Time: 2020-04-04
Author: kentonl@google.com
File Name: language/nql/nql/dataset_test.py
Class Name: TestTFDataset
Method Name: test_error_recovery