BrunoHays's picture
Upload config.yml with huggingface_hub
719bf1e
logging: !import logging.yml
licit_chars: !import:licit_french_chars_no_spelling utils/lists_dicts_etc/licit_characters.yml
mappings: !import:taxonomy_to_large_taxonomy utils/lists_dicts_etc/taxonomy_mappings.yml
regex_to_replace: !import:default_regex_to_replace utils/lists_dicts_etc/regexes_to_replace.yml
chars_to_ignore: !import:default_char_to_ignore_no_dash utils/lists_dicts_etc/characters_to_ignore.yml
dataset:
(): preprocess_dataset.my_datasets.ProcessedDataset
name: "common_voice_11_0_processed"
origin_dataset_loader:
(): preprocess_dataset.dataset_loaders.HuggingfaceHubLoader
dataset_repo_id: "mozilla-foundation/common_voice_11_0"
config_name: "fr"
dataset_savers:
- (): preprocess_dataset.dataset_savers.SaveToHuggingFaceHub
processing_chain:
(): preprocess_dataset.dataset_processors.ProcessingChain
processors:
- (): preprocess_dataset.dataset_processors.dataset_shape_preprocessors.mergers.ConcatenateTwoSplits
first_split: "train"
other_split: "validation"
- (): preprocess_dataset.dataset_processors.dataset_shape_preprocessors.removers.SplitsToKeep
splits_to_keep: ["train", "test"]
- (): preprocess_dataset.dataset_processors.misc_preprocessors.Shuffle
- (): preprocess_dataset.dataset_processors.misc_preprocessors.LambdaMap
lambda_func_str: 'lambda batch: {"user": "-".join([batch["accent"], batch["gender"], batch["age"]]),
"taxonomy": "common_voice",
"taxonomy_large": "common_voice"}'
- (): preprocess_dataset.dataset_processors.dataset_shape_preprocessors.removers.ColumnsToKeep
columns_to_keep: ["sentence", "audio", "path", "taxonomy", "taxonomy_large"]
- (): preprocess_dataset.dataset_processors.dataset_shape_preprocessors.duplicators.DuplicateColumn
origin_column_name: "sentence"
new_column_name: "sentence_processed"
- (): preprocess_dataset.dataset_processors.text_preprocessors.TextPreProcessingChain
column: "sentence_processed"
processors:
- (): preprocess_dataset.dataset_processors.text_preprocessors.preprocessors.Normalize
- (): preprocess_dataset.dataset_processors.text_preprocessors.preprocessors.ReplaceRegexProcessor
regex_to_replace: !cfg regex_to_replace
- (): preprocess_dataset.dataset_processors.text_preprocessors.preprocessors.RemoveSpecialCharsProcessor
chars_to_ignore: !cfg chars_to_ignore
- (): preprocess_dataset.dataset_processors.text_preprocessors.preprocessors.LowerCaseProcessor
do_not_lowercase_spellings: false
- (): preprocess_dataset.dataset_processors.dataset_shape_preprocessors.filters.Filter
print_report: true
filter:
(): preprocess_dataset.dataset_processors.dataset_shape_preprocessors.filters.LicitCharactersFilter
licit_chars: !cfg licit_chars
column_name: "sentence_processed"
- (): preprocess_dataset.dataset_processors.audio_preprocessors.CastAudioColumn
- (): preprocess_dataset.dataset_processors.audio_preprocessors.ForceResampling