Datasets:

Modalities:
Text
Formats:
parquet
Languages:
English
Libraries:
Datasets
pandas
License:
fgrezes commited on
Commit
07beb35
1 Parent(s): 2446fa8
scoring_scripts/score_focal_seqeval.py CHANGED
@@ -10,7 +10,7 @@ tokenizer = nlp.tokenizer
10
  def evaluate_FOCAL_seqeval(references_jsonl, predictions_jsonl, print_reports=False):
11
  '''
12
  Computes SEQEVAL scores.
13
- 1. convert the text into 'word' tokens using defaut spaCy tokenizer
14
  2. turn the references and the predictions into IOB2 style labels (one label per token, 'O' by default)
15
  3. compute f1-scores using SEQEVAL
16
 
 
10
  def evaluate_FOCAL_seqeval(references_jsonl, predictions_jsonl, print_reports=False):
11
  '''
12
  Computes SEQEVAL scores.
13
+ 1. convert the text into 'word' tokens using default spaCy tokenizer
14
  2. turn the references and the predictions into IOB2 style labels (one label per token, 'O' by default)
15
  3. compute f1-scores using SEQEVAL
16