コード例 #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)