Datasets:
Tasks:
Token Classification
Sub-tasks:
named-entity-recognition
Languages:
English
Size:
1K<n<10K
License:
Update indian_names.py
Browse files107 unmodified lines108109110111112113114115116117118119120121122107 unmodified linesfor row in f:row = row.rstrip()if row:# Check if the delimiter ("\t") is present in the rowif "\t" in row:token, label = row.split("\t")current_tokens.append(token)current_labels.append(label)else:# Handle cases where the delimiter is missing# You can choose to skip these rows or handle them differentlylogger.warning(f"Delimiter missing in row: {row}")else:# New sentenceif not current_tokens:107 unmodified lines108109110111112113114115116117118119120121107 unmodified linesfor row in f:row = row.rstrip()if row:if "\t" in row:token, label = row.split("\t")current_tokens.append(token)current_labels.append(label)else:# Handle cases where the delimiter is missing# You can choose to skip these rows or handle them differentlylogger.warning(f"Delimiter missing in row: {row}")else:# New sentenceif not current_tokens:
indian_names.py+8-9