1207689fa1e6ff2d321ccc182be13825b4e2575e,pytext/data/test/tensorizers_test.py,TensorizersTest,test_initialize_label_tensorizer,#TensorizersTest#,207
Before Change
def test_initialize_label_tensorizer(self):
tensorizer = LabelTensorizer(label_column="label")
init = tensorizer.initialize()
init.send(None) // kick
for row in self.data.train:
init.send(row)
init.close()
self.assertEqual(7, len(tensorizer.vocab))
def test_create_label_tensors(self):
tensorizer = LabelTensorizer(label_column="label")
After Change
def test_initialize_label_tensorizer(self):
tensorizer = LabelTensorizer(label_column="label")
self._initialize_tensorizer(tensorizer)
self.assertEqual(7, len(tensorizer.vocab))
def test_create_label_tensors(self):
tensorizer = LabelTensorizer(label_column="label")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 10
Instances
Project Name: facebookresearch/pytext
Commit Name: 1207689fa1e6ff2d321ccc182be13825b4e2575e
Time: 2019-07-12
Author: mikaell@fb.com
File Name: pytext/data/test/tensorizers_test.py
Class Name: TensorizersTest
Method Name: test_initialize_label_tensorizer
Project Name: facebookresearch/pytext
Commit Name: 1207689fa1e6ff2d321ccc182be13825b4e2575e
Time: 2019-07-12
Author: mikaell@fb.com
File Name: pytext/data/test/tensorizers_test.py
Class Name: TensorizersTest
Method Name: test_create_word_tensors
Project Name: facebookresearch/pytext
Commit Name: 1207689fa1e6ff2d321ccc182be13825b4e2575e
Time: 2019-07-12
Author: mikaell@fb.com
File Name: pytext/data/test/tensorizers_test.py
Class Name: TensorizersTest
Method Name: test_create_label_tensors