Kriyans commited on
Commit
f2a7261
1 Parent(s): 89be2df

Update indian_names.py

Browse files
Files changed (1) hide show
  1. indian_names.py +6 -6
indian_names.py CHANGED
@@ -4,20 +4,20 @@ csv_file_path = "/home/p21-0144/Downloads/indian-name-org.csv"
4
 
5
  class indian_namesConfig(datasets.BuilderConfig):
6
  def __init__(self, **kwargs):
7
- super(YourCustomConfig, self).__init__(**kwargs)
8
 
9
  class indian_names(datasets.GeneratorBasedBuilder):
10
  BUILDER_CONFIGS = [
11
- YourCustomConfig(
12
- name="your_custom_dataset",
13
  version=datasets.Version("1.0.0"),
14
- description="Your Custom Dataset",
15
  ),
16
  ]
17
 
18
  def _info(self):
19
  return datasets.DatasetInfo(
20
- description="Your custom dataset description",
21
  features=datasets.Features(
22
  {
23
  "id": datasets.Value("string"),
@@ -77,4 +77,4 @@ class indian_names(datasets.GeneratorBasedBuilder):
77
  "id": str(sentence_counter),
78
  "tokens": current_tokens,
79
  "ner_tags": current_labels,
80
- }
 
4
 
5
  class indian_namesConfig(datasets.BuilderConfig):
6
  def __init__(self, **kwargs):
7
+ super(indian_namesConfig, self).__init__(**kwargs)
8
 
9
  class indian_names(datasets.GeneratorBasedBuilder):
10
  BUILDER_CONFIGS = [
11
+ indian_namesConfig(
12
+ name="indian_names_dataset",
13
  version=datasets.Version("1.0.0"),
14
+ description="Indian Names Dataset",
15
  ),
16
  ]
17
 
18
  def _info(self):
19
  return datasets.DatasetInfo(
20
+ description="Indian Names dataset",
21
  features=datasets.Features(
22
  {
23
  "id": datasets.Value("string"),
 
77
  "id": str(sentence_counter),
78
  "tokens": current_tokens,
79
  "ner_tags": current_labels,
80
+ }