def _process_task(self, data): task = TestTask() task.set_input(0, '\n'.join([' '.join([str(e) for e in line]) for line in data]) + '\n') task.outputs.setsize(3) rule = rules.segment_without_label_bias(self.weights) rule.fun(task) return task
def _process_task(self, data): task = SegmentLibsvmTask(data, len(self.weights)) rule = rules.segment_without_label_bias(self.weights) rule.fun(task) return task