-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(corprep): add save_dataset pipe
refactor(corprep): rename save_raw_dataset function to load_raw_dataset refactor(corprep): split dataset saving into new pipe chore(corprep): rename save_raw_dataset to load_raw_dataset in yaml configs
- Loading branch information
1 parent
ffe0c12
commit b7a3dff
Showing
4 changed files
with
14 additions
and
8 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
src/corprep/conf/pipe/save_raw_dataset.yaml → src/corprep/conf/pipe/load_raw_dataset.yaml
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
defaults: | ||
- __general_external_funcs__ | ||
|
||
run: corprep.datasets.raw.save_raw_dataset | ||
run: corprep.datasets.raw.load_raw_dataset | ||
use_pipe_obj: false |
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,6 @@ | ||
defaults: | ||
- __general_instance_methods__ | ||
|
||
run: save_to_disk | ||
run_with: | ||
dataset_path: |
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 |
---|---|---|
@@ -1,12 +1,16 @@ | ||
defaults: | ||
- __init__ | ||
- /pipe@pipe1: save_raw_dataset | ||
- /pipe@pipe1: load_raw_dataset | ||
- /pipe@pipe2: save_dataset | ||
|
||
use_task_as_initial_object: true | ||
steps: | ||
- uses: pipe1 | ||
with: | ||
raw_dataset_dir: ${__home_path__:}/workspace/datasets/raw/daum_news_20230707 | ||
dataset_path: datasets/processed/daum_news_20230707 | ||
verbose: true | ||
verbose: true | ||
- uses: pipe2 | ||
with: | ||
dataset_path: datasets/processed/daum_news_20230707 | ||
verbose: true |
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