-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(datasets): remove template from source data
- Loading branch information
Showing
30 changed files
with
115 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+407 Bytes
(100%)
processed/rwth_phoenix2014_t/gloss_to_text.validation.jsonl.gz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+372 Bytes
(100%)
processed/rwth_phoenix2014_t/text_to_gloss.validation.jsonl.gz
Binary file not shown.
Binary file modified
BIN
+449 Bytes
(100%)
processed/signbank_plus/signwriting_to_text.test.jsonl.gz
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+1.39 KB
(100%)
processed/signbank_plus/signwriting_to_text.validation.jsonl.gz
Binary file not shown.
Binary file modified
BIN
+375 Bytes
(100%)
processed/signbank_plus/text_to_signwriting.test.jsonl.gz
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+1011 Bytes
(100%)
processed/signbank_plus/text_to_signwriting.validation.jsonl.gz
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from copy import deepcopy | ||
|
||
|
||
def format_task(task, params): | ||
task = deepcopy(task) | ||
for key, value in task.items(): | ||
if isinstance(value, str): | ||
task[key] = value.format(**params) | ||
elif isinstance(value, list): | ||
task[key] = [format_task(v, params) for v in value] | ||
elif isinstance(value, dict): | ||
task[key] = format_task(value, params) | ||
return task |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters