Kriyans commited on
Commit
7169684
1 Parent(s): 716cd44

Update indian_names.py

Browse files
Files changed (1) hide show
  1. indian_names.py +5 -5
indian_names.py CHANGED
@@ -64,11 +64,11 @@ class WNUT_17(datasets.GeneratorBasedBuilder):
64
  sentence_counter = 0
65
  for row in f:
66
  row = row.rstrip()
67
- # if row:
68
- # token, label = row.split("\t")
69
- # current_tokens.append(token)
70
- # current_labels.append(label)
71
- # else:
72
  # New sentence
73
  if not current_tokens:
74
  # Consecutive empty lines will cause empty sentences
 
64
  sentence_counter = 0
65
  for row in f:
66
  row = row.rstrip()
67
+ if row:
68
+ token, label = row.split("\t")
69
+ current_tokens.append(token)
70
+ current_labels.append(label)
71
+ else:
72
  # New sentence
73
  if not current_tokens:
74
  # Consecutive empty lines will cause empty sentences