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