Comments (7)
Agree, a Hash-like structure should a quick and sufficient solution!
from wikibase-dump-filter.
so I wrote the hash implementation in ff1da9f, published in v2.3.1
, and added documentation to parallelize the operations
from wikibase-dump-filter.
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.
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.
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.
could you share the code you're using so that I could try to reproduce the issue?
from wikibase-dump-filter.
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
from wikibase-dump-filter.
Related Issues (20)
- Filter by multiple claims HOT 1
- Document the claim negation feature HOT 1
- Try simdjson to speed up parsing HOT 3
- Add FUNDING file
- Simplified requires arguments? HOT 1
- Invalid comparator: ' failed at [email protected] postinstall: `check-node-version --node '>= 6.4.0'` HOT 1
- Filter formatting HOT 2
- "not"-operator doesn't seem to be working properly HOT 2
- filter all entities that are instances of a subclass of an item HOT 1
- certain entities aren't filtered for unknown reason HOT 1
- filtering items with deprecated claims HOT 2
- Error when using both language filter and omitting sitelinks HOT 1
- Support for multicore systems HOT 2
- Correction under Prefiltering md HOT 1
- Update 'master' branch name to 'main' HOT 1
- Recommendation: Include pre-filtering as direct component of documentation HOT 5
- Filter purely by Q-Number HOT 1
- suggestion: encourage the users to use PAWS/Toolforge HOT 1
- Troubles with old wikidump HOT 2
- Differing item numbers, issue with tool? HOT 2
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 wikibase-dump-filter.