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)
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
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
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
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')