Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
asr-benchmarks
Manage
Activity
Members
Labels
Plan
Issues
8
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marcin Wątroba
asr-benchmarks
Commits
3329cb6d
Commit
3329cb6d
authored
2 years ago
by
Marcin Wątroba
Browse files
Options
Downloads
Patches
Plain Diff
Add new experiment processing
parent
46860cf8
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
new_experiment/pipeline/import_datasets.py
+1
-1
1 addition, 1 deletion
new_experiment/pipeline/import_datasets.py
new_experiment/utils/hf_dataset_importer.py
+4
-0
4 additions, 0 deletions
new_experiment/utils/hf_dataset_importer.py
with
5 additions
and
1 deletion
new_experiment/pipeline/import_datasets.py
+
1
−
1
View file @
3329cb6d
...
...
@@ -16,7 +16,7 @@ def import_fleurs_dataset(dataset_lang: str, experiment_dataset_name: str):
get_experiment_repository
(
experiment_dataset_name
),
get_minio_audio_record_repository
(),
experiment_dataset_name
,
),
load_dataset
(
'
google/fleurs
'
,
dataset_lang
))
),
load_dataset
(
'
google/fleurs
'
,
dataset_lang
)
[
'
test
'
]
)
def
import_minds14_dataset
(
dataset_lang
:
str
,
experiment_dataset_name
:
str
):
...
...
This diff is collapsed.
Click to expand it.
new_experiment/utils/hf_dataset_importer.py
+
4
−
0
View file @
3329cb6d
import
datetime
from
abc
import
ABC
,
abstractmethod
from
hashlib
import
sha1
from
pathlib
import
Path
...
...
@@ -41,8 +42,11 @@ class HfDatasetImporter(ABC):
pass
def
process_dataset
(
self
,
dataset
:
Dataset
):
counter
=
1
for
it
in
dataset
:
print
(
datetime
.
datetime
.
now
().
isoformat
(),
f
'
process_dataset item
{
counter
}
{
it
}
'
)
self
.
process_record
(
it
)
counter
+=
1
def
process_record
(
self
,
record
:
Dict
[
str
,
Any
]):
record_id
=
self
.
get_record_id
(
record
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment