a148669f672f4237a89bb25b98b1ed0a88eef81f,anago/utils.py,,load_data_and_labels,#Any#,28
Before Change
words, tags = [], []
for line in f:
line = line.rstrip()
if len(line) == 0 or line.startswith("-DOCSTART-") :
if len(words) != 0:
sents.append(words)
labels.append(tags)
After Change
labels.append(tags)
words, tags = [], []
return sents , labels
def batch_iter(data, labels, batch_size=1, shuffle=True, preprocessor=None):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances Project Name: Hironsan/anago
Commit Name: a148669f672f4237a89bb25b98b1ed0a88eef81f
Time: 2018-05-28
Author: hiroki.nakayama.py@gmail.com
File Name: anago/utils.py
Class Name:
Method Name: load_data_and_labels
Project Name: deeppomf/DeepCreamPy
Commit Name: 569305e77b02632e215ef9df99de87dc6da8879b
Time: 2019-04-22
Author: 46418312+ccppoo@users.noreply.github.com
File Name: decensor.py
Class Name: Decensor
Method Name: decensor_all_images_in_folder
Project Name: OpenNMT/OpenNMT-py
Commit Name: aaa220b753c9749ac1a0d86a32e4c1fdcb4faa7a
Time: 2019-06-13
Author: francois.hernandez.fh@gmail.com
File Name: onmt/utils/optimizers.py
Class Name:
Method Name: build_torch_optimizer