Datasets:
Tasks:
Token Classification
Sub-tasks:
named-entity-recognition
Languages:
English
Size:
1K<n<10K
License:
Update indian_names.py
Browse files28 unmodified lines293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211332333430 unmodified lines6566671501516869701 unmodified line727374159160757677781651667980817 unmodified lines899091180181929328 unmodified lines { "id": datasets.Value("string"), "tokens": datasets.Sequence(datasets.Value("string")), "pos_tags": datasets.Sequence( datasets.features.ClassLabel( names=[ '"', "''", "#", "$", "(", ")", ",", ".", ":", "``", "CC", "CD", "DT", "EX", "FW", "IN", "JJ", "JJR", "JJS", "LS", "MD", "NN", "NNP", "NNPS", "NNS", "NN|SYM", "PDT", "POS", "PRP", "PRP$", "RB", "RBR", "RBS", "RP", "SYM", "TO", "UH", "VB", "VBD", "VBG", "VBN", "VBP", "VBZ", "WDT", "WP", "WP$", "WRB", ] ) ), "chunk_tags": datasets.Sequence( datasets.features.ClassLabel( names=[ "O", "B-ADJP", "I-ADJP", "B-ADVP", "I-ADVP", "B-CONJP", "I-CONJP", "B-INTJ", "I-INTJ", "B-LST", "I-LST", "B-NP", "I-NP", "B-PP", "I-PP", "B-PRT", "I-PRT", "B-SBAR", "I-SBAR", "B-UCP", "I-UCP", "B-VP", "I-VP", ] ) ), "ner_tags": datasets.Sequence( datasets.features.ClassLabel( names=[30 unmodified lines with open(filepath, encoding="utf-8") as f: guid = 0 tokens = [] pos_tags = [] chunk_tags = [] ner_tags = [] for line in f: if line.startswith("-DOCSTART-") or line == "" or line == "\n":1 unmodified line yield guid, { "id": str(guid), "tokens": tokens, "pos_tags": pos_tags, "chunk_tags": chunk_tags, "ner_tags": ner_tags, } guid += 1 tokens = [] pos_tags = [] chunk_tags = [] ner_tags = [] else: # conll2003 tokens are space separated7 unmodified lines yield guid, { "id": str(guid), "tokens": tokens, "pos_tags": pos_tags, "chunk_tags": chunk_tags, "ner_tags": ner_tags, }indian_names.py-90