2e4134c8317d51ac4e5d848ca51bf9787abffcfb,app/api/views.py,AutoLabelingAnnotation,extract,#AutoLabelingAnnotation#,613
Before Change
doc = get_object_or_404(Document, pk=self.kwargs["doc_id"])
config = project.auto_labeling_config.first()
task = TaskFactory.create(project.project_type)
model = RequestModelFactory.create(
model_name=config.model_name,
attributes=config.model_attrs
)
template = MappingTemplate(
label_collection=task.label_collection,
template=config.template
)
After Change
project = get_object_or_404(Project, pk=self.kwargs["project_id"])
doc = get_object_or_404(Document, pk=self.kwargs["doc_id"])
config = project.auto_labeling_config.first()
if not config:
raise AutoLabeliingPermissionDenied()
return execute_pipeline(
text=doc.text,
project_type=project.project_type,
model_name=config.model_name,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: chakki-works/doccano
Commit Name: 2e4134c8317d51ac4e5d848ca51bf9787abffcfb
Time: 2021-02-16
Author: light.tree.1.13@gmail.com
File Name: app/api/views.py
Class Name: AutoLabelingAnnotation
Method Name: extract
Project Name: dmlc/dgl
Commit Name: 18a26fcfb1983af7fba69db9bdce7ba5e6a9945f
Time: 2020-06-29
Author: VoVAllen@users.noreply.github.com
File Name: python/dgl/data/graph_serialize.py
Class Name:
Method Name: save_graphs
Project Name: comic/grand-challenge.org
Commit Name: a8eab99a0476060c27ae890071a5e17c01531ee7
Time: 2020-01-27
Author: 57257130+MikeOverkamp-diag@users.noreply.github.com
File Name: app/grandchallenge/reader_studies/models.py
Class Name: ReaderStudy
Method Name: add_ground_truth