Ryan commited on
Commit
5b6f313
1 Parent(s): 255d0c4

fix narrativeqa name

Browse files
Files changed (1) hide show
  1. metrics/longbench.py +1 -1
metrics/longbench.py CHANGED
@@ -70,7 +70,7 @@ Examples:
70
  {'exact_match': 33.3333, 'num_predicted': 3, 'mean_prediction_length_characters': 14.6667, 'longbench_score': 33.3333,
71
  'display_keys': ['exact_match'], 'display': [33.3333]}
72
 
73
- >>> longbench_metric = datasets.load_metric(longbench_metric_path, 'narrative_qa') # 'narrative_qa' or "qasper"
74
  >>> results = longbench_metric.compute(predictions=predictions, references=references)
75
  >>> print(results)
76
  {'f1': 72.2222, 'num_predicted': 3, 'mean_prediction_length_characters': 14.6667, 'longbench_score': 72.2222,
 
70
  {'exact_match': 33.3333, 'num_predicted': 3, 'mean_prediction_length_characters': 14.6667, 'longbench_score': 33.3333,
71
  'display_keys': ['exact_match'], 'display': [33.3333]}
72
 
73
+ >>> longbench_metric = datasets.load_metric(longbench_metric_path, 'narrativeqa') # 'narrativeqa' or "qasper"
74
  >>> results = longbench_metric.compute(predictions=predictions, references=references)
75
  >>> print(results)
76
  {'f1': 72.2222, 'num_predicted': 3, 'mean_prediction_length_characters': 14.6667, 'longbench_score': 72.2222,