3a8d76d784ca0f80cb720c6336f79cdbc9b03861,finetune/utils.py,,indico_to_finetune_sequence,#Any#Any#Any#Any#Any#,210
Before Change
doc_labels.append(none_value)
all_subseqs.append(doc_subseqs)
all_labels.append(doc_labels)
return all_subseqs, all_labels
After Change
end = annotation["end"]
label = annotation["label"]
annotation_text = annotation.get("text")
if "association" in annotation:
association_idx = annotation["association"]["index"]
association_type = annotation["association"]["relationship"]
else:
association_idx = -1
association_type = none_value
if annotation_text is not None and text[start:end] != annotation_text:
raise ValueError(
"Annotation text does not match text specified by `start` and `end` indexes. "
"Text provided: `{}`. Text extracted: `{}`.".format(
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 7
Instances
Project Name: IndicoDataSolutions/finetune
Commit Name: 3a8d76d784ca0f80cb720c6336f79cdbc9b03861
Time: 2019-01-07
Author: benlt@hotmail.co.uk
File Name: finetune/utils.py
Class Name:
Method Name: indico_to_finetune_sequence
Project Name: tensorflow/tpu
Commit Name: 92ffc8a4626b7b3f0420e24fc001d17007860b95
Time: 2019-10-01
Author: gardener@tensorflow.org
File Name: models/official/detection/evaluation/coco_utils.py
Class Name:
Method Name: convert_predictions_to_coco_annotations
Project Name: tensorflow/models
Commit Name: 1ec383c8988d15b6c47c9565c8e3935574c14f86
Time: 2020-03-23
Author: gardener@tensorflow.org
File Name: official/nlp/bert/run_squad.py
Class Name:
Method Name: main
Project Name: AlexsLemonade/refinebio
Commit Name: 9c8304b9f70bc58317f012dd7c9d17e1fb16845c
Time: 2018-06-13
Author: kurt.wheeler91@gmail.com
File Name: foreman/data_refinery_foreman/surveyor/array_express.py
Class Name: ArrayExpressSurveyor
Method Name: create_experiment_from_api