New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to deduplicate huggingface datasets #21
Comments
A while ago someone sent a PR to do this But I haven't tested it on the latest code -- maybe you could try that and see if it would work for you? |
I just had the same question as you @StephennFernandes, and I found this repo which can be installed with pip: https://github.com/ChenghaoMou/text-dedup. It looks like text-dedup has a more plug-and-play version of this repo? I followed the documentation here and used it on a huggingface dataset with |
@TristanThrush This only works on datasets that fit in memory though, right? I think |
@cakiki possibly. I have a machine with 100's of GB of memory, so it hasn't been a problem for me. I think that both this repo and the alternative repo require a lot of memory? |
@TristanThrush I don't think this repo requires you to load everything into memory though. I'll try running Teven's PR and report back. |
@cakiki we might be able to resolve this issue on the text-dedup side: ChenghaoMou/text-dedup#5 |
This repository does require that the dataset itself fit in memory. Closing because I've now merged #6. |
Hey there, excellent work on this repo and the paper.
I wanted to know on how could i use this to deduplicate my huggingface custom dataset. that i have custom developed and cleaned.
that has been saved as
custom_dataset.save_to_disk("dataset_path")
and can be loaded as
custom_dataset = datasets.load_from_disk("dataset_path")
The text was updated successfully, but these errors were encountered: