コード例 #1
0
ファイル: evaluation.py プロジェクト: danielhers/ucca
 def __init__(self, verbose, constructions, units, fscore, errors):
     """
     :param verbose: whether to print the scores
     :param constructions: names of construction types to include in the evaluation
     :param units: whether to calculate and print the mutual and exclusive units in the passages
     :param fscore: whether to find and return the scores
     :param errors: whether to calculate and print the confusion matrix of errors
     """
     self.verbose = verbose
     self.constructions = list(DEFAULT.values()) + [c for c in get_by_names(constructions)
                                                    if c not in DEFAULT.values()]
     self.units = units
     self.fscore = fscore
     self.errors = errors
コード例 #2
0
ファイル: evaluation.py プロジェクト: cicl2018/ucca
 def __init__(self, verbose, constructions, units, fscore, errors):
     """
     :param verbose: whether to print the scores
     :param constructions: names of construction types to include in the evaluation
     :param units: whether to calculate and print the mutual and exclusive units in the passages
     :param fscore: whether to find and return the scores
     :param errors: whether to calculate and print the confusion matrix of errors
     """
     self.verbose = verbose
     self.constructions = list(DEFAULT.values()) + [c for c in get_by_names(constructions)
                                                    if c not in DEFAULT.values()]
     self.units = units
     self.fscore = fscore
     self.errors = errors