eduagarcia commited on
Commit
5d3fb60
1 Parent(s): 08d39bb

fix2: Filter for ulysses data

Browse files
Files changed (1) hide show
  1. portuguese_benchmark.py +3 -0
portuguese_benchmark.py CHANGED
@@ -367,6 +367,9 @@ def _conll_ner_generator(file_path: str, config: PTBenchmarkConfig):
367
  if tokens:
368
  # Filter for Ulysses empty data
369
  if len(tokens) == 1 and tokens[0] == '.':
 
 
 
370
  continue
371
  yield guid, {
372
  "idx": guid,
 
367
  if tokens:
368
  # Filter for Ulysses empty data
369
  if len(tokens) == 1 and tokens[0] == '.':
370
+ guid += 1
371
+ tokens = []
372
+ ner_tags = []
373
  continue
374
  yield guid, {
375
  "idx": guid,