Giter Site home page Giter Site logo

Comments (7)

hsaif avatar hsaif commented on June 4, 2024

Agree, a Hash-like structure should a quick and sufficient solution!

from wikibase-dump-filter.

maxlath avatar maxlath commented on June 4, 2024

so I wrote the hash implementation in ff1da9f, published in v2.3.1, and added documentation to parallelize the operations

from wikibase-dump-filter.

hsaif avatar hsaif commented on June 4, 2024

Thanks Max,

I ran few tests with the hashed claims. The code run very fast in the beginning, but it gets significantly slower after processing the first 1M entities

I tried to run the process with parallelism as you described, but it didn't run for some reason. I'll try to debug and gets back to you

from wikibase-dump-filter.

maxlath avatar maxlath commented on June 4, 2024

I think the parallelization is just a boost to get things done faster but if it doesn't work with a single process, that's there is something wrong already, putting several CPU at it won't help

from wikibase-dump-filter.

hsaif avatar hsaif commented on June 4, 2024

Looks like I wasn't clear enough in my previous comment. Apologies for that.

Basically, I first ran the process without parallelisation, and that's where the performance slowed down after processing the first ~1M entities

In another test, I ran process with parallelism, but it didn't work.

Hope it's clear now :)

from wikibase-dump-filter.

maxlath avatar maxlath commented on June 4, 2024

could you share the code you're using so that I could try to reproduce the issue?

from wikibase-dump-filter.

hsaif avatar hsaif commented on June 4, 2024

cat latest-all.json.gz | gzip -d | wdfilter --claim ./claims_interest.txt > entity_filtered.json

With parallelism:

nice -n+19 pigz -d < latest-all.json.gz | nice -n+19 load-balance-lines wdfilter --claim ./claims_interest.txt > entity_pra_filtered.json

Attached the claims_interest.txt

claims_interest.txt

from wikibase-dump-filter.

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.