update main script
Browse files
gadme.py
CHANGED
@@ -67,7 +67,7 @@ class BirdSetConfig(datasets.BuilderConfig):
|
|
67 |
"low_freq": datasets.Value("int64"),
|
68 |
"high_freq": datasets.Value("int64"),
|
69 |
"ebird_code": datasets.ClassLabel(names=class_list),
|
70 |
-
"
|
71 |
"ebird_code_secondary": datasets.Sequence(datasets.Value("string")),
|
72 |
"call_type": datasets.Value("string"),
|
73 |
"sex": datasets.Value("string"),
|
@@ -415,7 +415,7 @@ class BirdSet(datasets.GeneratorBasedBuilder):
|
|
415 |
"low_freq": row["low_freq"],
|
416 |
"high_freq": row["high_freq"],
|
417 |
"ebird_code": row["ebird_code"] if split != "test_multiclass" else None,
|
418 |
-
"
|
419 |
"ebird_code_secondary": row.get("ebird_code_multiclass", None),
|
420 |
"call_type": row["call_type"],
|
421 |
"sex": row["sex"],
|
|
|
67 |
"low_freq": datasets.Value("int64"),
|
68 |
"high_freq": datasets.Value("int64"),
|
69 |
"ebird_code": datasets.ClassLabel(names=class_list),
|
70 |
+
"ebird_code_multilabel": datasets.Sequence(datasets.ClassLabel(names=["no_call"] + class_list)),
|
71 |
"ebird_code_secondary": datasets.Sequence(datasets.Value("string")),
|
72 |
"call_type": datasets.Value("string"),
|
73 |
"sex": datasets.Value("string"),
|
|
|
415 |
"low_freq": row["low_freq"],
|
416 |
"high_freq": row["high_freq"],
|
417 |
"ebird_code": row["ebird_code"] if split != "test_multiclass" else None,
|
418 |
+
"ebird_code_multilabel": None if split != "test_multiclass" else row.get("ebird_code_multiclass", None),
|
419 |
"ebird_code_secondary": row.get("ebird_code_multiclass", None),
|
420 |
"call_type": row["call_type"],
|
421 |
"sex": row["sex"],
|