예제 #1
0
파일: __init__.py 프로젝트: fnl/bceval
def container_factory(evaluation_type):
    if evaluation_type == Evaluate.ACT:
        return class_loader("ArticleDataDict")
    else:
        return class_loader("ProteinDataDict")
예제 #2
0
파일: __init__.py 프로젝트: fnl/bceval
def gold_standard_reader_factory(evaluation_type):
    "Return the appropriate reader for the gold standard."
    return class_loader("Gold%sReader" % evaluation_type)
예제 #3
0
파일: __init__.py 프로젝트: fnl/bceval
def controller_factory(evaluation_type):
    if evaluation_type == Evaluate.ACT:
        return class_loader("ArticleEvaluator")
    else:
        return class_loader("ProteinEvaluator")
예제 #4
0
파일: __init__.py 프로젝트: fnl/bceval
def result_reader_factory(evaluation_type):
    "Return the appropriate reader for results."
    return class_loader("Result%sReader" % evaluation_type)