bug fixed in _load_metric to re-load the dataset for F1score
@@ -320,7 +320,7 @@ class Optimizer:
metric_parameters = dict_extra_metric_parameters[name]
if 'Coherence' in name:
metric_parameters.update({'texts': dataset.get_corpus()})
- if self.name_optimized_metric.startswith('F1Score'):
+ if 'F1Score' in name:
metric_parameters.update({'dataset': dataset})
metric = select_metric(metric_parameters, name[2:])
