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