2e4134c8317d51ac4e5d848ca51bf9787abffcfb,app/api/views.py,AutoLabelingAnnotation,extract,#AutoLabelingAnnotation#,613

Before Change


            template=config.template
        )
        post_processor = PostProcessor(config.label_mapping)
        labels = pipeline(
            text=doc.text,
            request_model=model,
            mapping_template=template,
            post_processing=post_processor
        )
        return labels.dict()

    def transform(self, labels):
        project = get_object_or_404(Project, pk=self.kwargs["project_id"])

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,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: pytorch/text
Commit Name: ee177fefcfc038e7148497018cec1c9a8c944383
Time: 2020-09-02
Author: 6156351+zhangguanheng66@users.noreply.github.com
File Name: examples/data_pipeline/pipelines.py
Class Name:
Method Name: run_benchmark_lookup


Project Name: tensorflow/models
Commit Name: 61a619024a39e104d35911a541182de0eb182bde
Time: 2020-04-20
Author: gardener@tensorflow.org
File Name: official/vision/image_classification/dataset_factory.py
Class Name: DatasetBuilder
Method Name: build