def container_factory(evaluation_type): if evaluation_type == Evaluate.ACT: return class_loader("ArticleDataDict") else: return class_loader("ProteinDataDict")
def gold_standard_reader_factory(evaluation_type): "Return the appropriate reader for the gold standard." return class_loader("Gold%sReader" % evaluation_type)
def controller_factory(evaluation_type): if evaluation_type == Evaluate.ACT: return class_loader("ArticleEvaluator") else: return class_loader("ProteinEvaluator")
def result_reader_factory(evaluation_type): "Return the appropriate reader for results." return class_loader("Result%sReader" % evaluation_type)