Datasets:
Tasks:
Token Classification
Sub-tasks:
named-entity-recognition
Languages:
English
Size:
1K<n<10K
License:
Update indian_names.py
Browse files107 unmodified lines108109110111112113114115116117118119111112113114115116117118119120121107 unmodified lines for row in f: row = row.rstrip() if row: # Check if the delimiter ("\t") is present in the 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 differently logger.warning(f"Delimiter missing in row: {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 differently logger.warning(f"Delimiter missing in row: {row}") else: # New sentence if not current_tokens:indian_names.py+8-9