示例#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)