Datasets:
Tasks:
Token Classification
Sub-tasks:
named-entity-recognition
Languages:
English
Size:
1K<n<10K
License:
Update ner.py
Browse files1 unmodified line2345678567826 unmodified lines35363741424344454638484950394041425 unmodified lines48495062636451525354555670715758591 unmodified line
logger = datasets.logging.get_logger(__name__)
_URL = "https://raw.githubusercontent.com/Kriyansparsana/demorepo/main/"_TRAINING_FILE = "Indian_dataset_wnut_train.conll"# _DEV_FILE = "indian_dataset.conll"_TEST_FILE = "emerging.test.annotated"_URL = "https://raw.githubusercontent.com/Kriyansparsana/demorepo/main/train.txt"
class indian_namesConfig(datasets.BuilderConfig): """The WNUT 17 Emerging Entities Dataset."""26 unmodified lines "O", "B-corporation", "I-corporation", "B-creative-work", "I-creative-work", "B-group", "I-group", "B-location", "I-location", "B-person", "I-person", "B-product", "I-product", "I-person" ] ) ),5 unmodified lines def _split_generators(self, dl_manager): """Returns SplitGenerators.""" urls_to_download = { "train": f"{_URL}{_TRAINING_FILE}", # "dev": f"{_URL}{_DEV_FILE}", "test": f"{_URL}{_TEST_FILE}", "train": f"{_URL}", } downloaded_files = dl_manager.download_and_extract(urls_to_download)
return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}), # datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": downloaded_files["dev"]}), datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": downloaded_files["test"]}), ] def _generate_examples(self, filepath):ner.py+3-18