Comments (7)
@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.
from deduplicate-text-datasets.
@cakiki we might be able to resolve this issue on the text-dedup side: ChenghaoMou/text-dedup#5
from deduplicate-text-datasets.
This repository does require that the dataset itself fit in memory. Closing because I've now merged #6.
from deduplicate-text-datasets.
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?
from deduplicate-text-datasets.
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 embedder.embed_bash(my_hf_dataset["text"])
from deduplicate-text-datasets.
@TristanThrush This only works on datasets that fit in memory though, right? I think my_hf_dataset["text"]
loads the entire column into a list. I'm also trying to solve this for a larger-than-memory dataset, have you had any luck with this?
from deduplicate-text-datasets.
@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?
from deduplicate-text-datasets.
Related Issues (20)
- [Paper Question] Why use w-shingles over k-shingles? HOT 1
- How to restore the result data after deduplication (remove invisible characters) HOT 1
- cargo build error.Could you upload cargo.lock file? HOT 2
- what is the input dataset format for custom dataset? HOT 1
- Retain one instance per duplicate HOT 2
- Adjust TensorFlow version to fix cuDNN, cuFFT, cuBLAS errors. HOT 4
- Incomplete Sentences HOT 1
- remove_ex in finish_dedup_wiki40b HOT 1
- [Question] An error with the same repo guideline HOT 5
- customized dataset deduplication HOT 1
- when i use tokenizer , I obtained many patterns that span across the data, which is quite strange. HOT 4
- where the data is? HOT 1
- question about wstring_equal function HOT 2
- 是否可以提供一个纯python版本的,相信很多研究者在服务器上没有权限安装gcc HOT 1
- Count_occurrence does not work with tokenizer? HOT 2
- Question: Upper Bound HOT 1
- [Bug] Out of range error when counting occurrences on a custom suffix array HOT 1
- does this tool can process Chinese? HOT 1
- does finish_dedup_wiki40b.py has some wrong?
- Distributed running
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deduplicate-text-datasets.