iulik-pisik commited on
Commit
f921f22
1 Parent(s): 6e71e2e

incercarea #23

Browse files
Files changed (1) hide show
  1. horoscop_neti.py +8 -7
horoscop_neti.py CHANGED
@@ -1,4 +1,5 @@
1
- from datasets import GeneratorBasedBuilder, DatasetInfo, SplitGenerator, Split, Features, Value, Audio
 
2
  import csv
3
 
4
  _BASE_URL = "https://huggingface.co/datasets/iulik-pisik/horoscop_neti/resolve/main/"
@@ -36,22 +37,22 @@ class HoroscopNeti(GeneratorBasedBuilder):
36
  downloaded_tsv_files = dl_manager.download(tsv_urls)
37
 
38
  return [
39
- datasets.SplitGenerator(
40
- name=datasets.Split.TRAIN,
41
  gen_kwargs={
42
  "archive_path": downloaded_audio_files["train_audio"],
43
  "tsv_path": downloaded_tsv_files["train_tsv"],
44
  },
45
  ),
46
- datasets.SplitGenerator(
47
- name=datasets.Split.TEST,
48
  gen_kwargs={
49
  "archive_path": downloaded_audio_files["test_audio"],
50
  "tsv_path": downloaded_tsv_files["test_tsv"],
51
  },
52
  ),
53
- datasets.SplitGenerator(
54
- name=datasets.Split.VALIDATION,
55
  gen_kwargs={
56
  "archive_path": downloaded_audio_files["validation_audio"],
57
  "tsv_path": downloaded_tsv_files["validation_tsv"],
 
1
+ from datasets import GeneratorBasedBuilder, DatasetInfo, SplitGenerator, Split, Features, Value, Audio,SplitGenerator, Split
2
+
3
  import csv
4
 
5
  _BASE_URL = "https://huggingface.co/datasets/iulik-pisik/horoscop_neti/resolve/main/"
 
37
  downloaded_tsv_files = dl_manager.download(tsv_urls)
38
 
39
  return [
40
+ SplitGenerator(
41
+ name=Split.TRAIN,
42
  gen_kwargs={
43
  "archive_path": downloaded_audio_files["train_audio"],
44
  "tsv_path": downloaded_tsv_files["train_tsv"],
45
  },
46
  ),
47
+ SplitGenerator(
48
+ name=Split.TEST,
49
  gen_kwargs={
50
  "archive_path": downloaded_audio_files["test_audio"],
51
  "tsv_path": downloaded_tsv_files["test_tsv"],
52
  },
53
  ),
54
+ SplitGenerator(
55
+ name=Split.VALIDATION,
56
  gen_kwargs={
57
  "archive_path": downloaded_audio_files["validation_audio"],
58
  "tsv_path": downloaded_tsv_files["validation_tsv"],