Datasets:
Tasks:
Token Classification
Sub-tasks:
named-entity-recognition
Languages:
English
Size:
1K<n<10K
License:
Update indian_names.py
Browse files- indian_names.py +8 -8
indian_names.py
CHANGED
|
@@ -35,15 +35,15 @@ class indian_names(datasets.GeneratorBasedBuilder):
|
|
| 35 |
supervised_keys=None,
|
| 36 |
)
|
| 37 |
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
|
| 48 |
def _generate_examples(self, filepath):
|
| 49 |
with open(filepath, encoding="utf-8") as f:
|
|
|
|
| 35 |
supervised_keys=None,
|
| 36 |
)
|
| 37 |
|
| 38 |
+
def _split_generators(self, dl_manager):
|
| 39 |
+
urls_to_download = {
|
| 40 |
+
"train": f"file://{csv_file_path}",
|
| 41 |
+
}
|
| 42 |
+
downloaded_files = dl_manager.download_and_extract(urls_to_download)
|
| 43 |
|
| 44 |
+
return [
|
| 45 |
+
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
|
| 46 |
+
]
|
| 47 |
|
| 48 |
def _generate_examples(self, filepath):
|
| 49 |
with open(filepath, encoding="utf-8") as f:
|