Datasets:
metadata
configs:
- config_name: default
data_files:
- split: train
path: data/train-*
dataset_info:
features:
- name: url
dtype: string
- name: text
dtype: string
- name: date
dtype: string
- name: metadata
dtype: string
splits:
- name: train
num_bytes: 4467051029
num_examples: 1820241
download_size: 1772035124
dataset_size: 4467051029
Dataset Card for "open-web-math-minhash"
making of
On a high-RAM colab TPU (40 cores)
from pathlib import Path
from tqdm.auto import tqdm
data_split = 'train'
text_column = 'text'
out_dir = Path(f"output/minhash/{ds_short_name}/{data_split}")
!mkdir -p $out_dir
ds_name = "open-web-math/open-web-math"
dataset_config = str(dataset_config)
!python -m text_dedup.minhash \
--path $ds_name \
--name $dataset_config \
--split $data_split \
--cache_dir "./cache" \
--output $out_dir \
--column $text_column \
--ngram 5 --threshold 0.5 \
--hash_func xxh3 --hash_bits 16 --num_perm 64 \
--batch_size 10000
print(f"output dir is:\n\t{out_dir}")
!ls $out_dir