Datasets:
Tasks:
Token Classification
Sub-tasks:
named-entity-recognition
Languages:
English
Size:
1K<n<10K
License:
Update indian_names.py
Browse files63 unmodified lines646566676869707172737463 unmodified linescurrent_labels = []sentence_counter = 0for row in f:row = row.rstrip()if row:token, label = row.split("\t")current_tokens.append(token)current_labels.append(label)else:# New sentenceif not current_tokens:63 unmodified lines646566676869707172737463 unmodified linescurrent_labels = []sentence_counter = 0for row in f:parts = row.split("\t")if len(parts) >= 2:token, label = parts[:2] # Take the first two partscurrent_tokens.append(token)current_labels.append(label)else:# New sentenceif not current_tokens:
indian_names.py+5-5