Code Monkey home page Code Monkey logo

Comments (7)

cakiki avatar cakiki commented on August 29, 2024 1

@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.

TristanThrush avatar TristanThrush commented on August 29, 2024 1

@cakiki we might be able to resolve this issue on the text-dedup side: ChenghaoMou/text-dedup#5

from deduplicate-text-datasets.

carlini avatar carlini commented on August 29, 2024 1

This repository does require that the dataset itself fit in memory. Closing because I've now merged #6.

from deduplicate-text-datasets.

carlini avatar carlini commented on August 29, 2024

A while ago someone sent a PR to do this

#6

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.

TristanThrush avatar TristanThrush commented on August 29, 2024

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.

cakiki avatar cakiki commented on August 29, 2024

@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.

TristanThrush avatar TristanThrush commented on August 29, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.