Datasets:
License:
Download extract_raw_wiki_data_indo.sh from sabilmakbar/indo_wiki: direct link, hf CLI and curl.
- Browser
- Download file 907 Bytes
-
https://huggingface.co/datasets/sabilmakbar/indo_wiki/resolve/main/extract_raw_wiki_data_indo.sh
- Command line
-
hf download hf://datasets/sabilmakbar/indo_wiki/extract_raw_wiki_data_indo.sh
-
curl -L -o extract_raw_wiki_data_indo.sh https://huggingface.co/datasets/sabilmakbar/indo_wiki/resolve/main/extract_raw_wiki_data_indo.sh
907 Bytes
| # all available lang codes in Indonesia local-languages or linguistically-related to Indonesian Language: | |
| # "ace", "ban", "bjn", "bug", "gor", "id", "jv", "map-bms", "min", "ms", "nia", "su", "tet" | |
| #params of executions | |
| date_ver=20230901 | |
| folder_dir_to_save=./indo_wiki_raw | |
| lang_list=(ace ban bjn) | |
| # bug gor id jv map-bms min ms nia su tet) | |
| #main executions | |
| if [ ! -d $folder_dir_to_save ]; then | |
| echo "Dir $folder_dir_to_save not exists! Creating the dir..." | |
| mkdir $folder_dir_to_save | |
| fi | |
| for val in ${!lang_list[@]}; do | |
| lang=${lang_list[$val]} | |
| echo "Executing Extractor on iteration no $((val+1)) of total ${#lang_list[@]} for language $lang and date version of $date_ver" | |
| python extract_raw_wiki_data.py \ | |
| --lang-id $lang \ | |
| --date-ver $date_ver \ | |
| --save-dir-path $folder_dir_to_save | |
| echo "Done Execution" | |
| done | |
| echo "Done Extraction Process" | |