Exemplo n.º 1
0
    def __readin_tasks__(self,workflow_id):
        if self.project_id == 245:
            # marking_tasks = {"T2":["image"]}
            marking_tasks = {"T2":["text","image"]}
            # todo - where is T1?
            classification_tasks = {"T3" : True}

            return classification_tasks,marking_tasks
        elif self.project_id == 376:
            marking_tasks = {"T2":["text"]}
            classification_tasks = {}

            return classification_tasks,marking_tasks
        else:
            return AggregationAPI.__readin_tasks__(self,workflow_id)
Exemplo n.º 2
0
    def __readin_tasks__(self, workflow_id):
        tasks = {}

        if self.project_id == 245:
            tasks['marking'] = {"T2": ["text", "image"]}
            # TODO - where is T1?
            tasks['classification'] = {"T0": True, "T3": True}
        elif self.project_id == 376:
            tasks['marking'] = {"T2": ["text"]}
            tasks['classification'] = {"T0": True, "T3": True}
            print(AggregationAPI.__readin_tasks__(self, workflow_id))
        else:
            raise ValueError('project_id must be either 245 or 376')

        return tasks
Exemplo n.º 3
0
    def __readin_tasks__(self, workflow_id):
        tasks = {}

        if self.project_id == 245:
            tasks['marking'] = {"T2":["text","image"]}
            # TODO - where is T1?
            tasks['classification'] = {"T0":True,"T3" : True}
        elif self.project_id == 376:
            tasks['marking'] = {"T2":["text"]}
            tasks['classification'] = {"T0":True,"T3":True}
            print(AggregationAPI.__readin_tasks__(self, workflow_id))
        else:
            raise ValueError('project_id must be either 245 or 376')

        return tasks
Exemplo n.º 4
0
    def __readin_tasks__(self,workflow_id):
        if self.project_id == 245:
            # marking_tasks = {"T2":["image"]}
            marking_tasks = {"T2":["text","image"]}
            # todo - where is T1?
            classification_tasks = {"T0":True,"T3" : True}

            return classification_tasks,marking_tasks,{}
        elif self.project_id == 376:
            marking_tasks = {"T2":["text"]}
            classification_tasks = {"T0":True,"T3":True}

            print(AggregationAPI.__readin_tasks__(self,workflow_id))

            return classification_tasks,marking_tasks,{}
        else:
            assert False
Exemplo n.º 5
0
    def __readin_tasks__(self,workflow_id):
        if self.project_id == 245:
            # marking_tasks = {"T2":["image"]}
            marking_tasks = {"T2":["text","image"]}
            # todo - where is T1?
            classification_tasks = {"T0":True,"T3" : True}

            return classification_tasks,marking_tasks,{}
        elif self.project_id == 376:
            marking_tasks = {"T2":["text"]}
            classification_tasks = {"T0":True,"T3":True}

            print(AggregationAPI.__readin_tasks__(self,workflow_id))

            return classification_tasks,marking_tasks,{}
        else:
            raise ValueError('project_id must be either 245 or 376')