-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix bugs for huggingface dataset loading; add sample config
- Loading branch information
1 parent
acccc01
commit 1823cd6
Showing
3 changed files
with
54 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Process config example for dataset | ||
|
||
# global parameters | ||
project_name: 'demo-process' | ||
dataset: | ||
configs: | ||
- type: 'remote' | ||
source: 'huggingface' | ||
path: 'hugfaceguy0001/retarded_bar' | ||
name: 'question' | ||
split: 'train' | ||
|
||
np: 4 # number of subprocess to process your dataset | ||
|
||
export_path: './outputs/demo-process/demo-processed.jsonl' | ||
|
||
# process schedule | ||
# a list of several process operators with their arguments | ||
process: | ||
- language_id_score_filter: | ||
lang: 'zh' | ||
min_score: 0.8 |
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