Skip to content

Refine script for Wikidata entity suggester data, supposed to be a temporary workaround till a more robust suggestion algorithm is in place.

License

Notifications You must be signed in to change notification settings

mariushoch/wbs_propertypairs-refine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

refine.py

Refine script for Wikidata entity suggester data. This is a temporary workaround for the problems laid out at phabricator T132839, supposed to be replaced by a more robust suggestion algorithm at some point.

Usage

usage: refine.py [-h] infile outfile

Refine wbs_propertypairs for Wikidata usage. See https://phabricator.wikimedia.org/T132839.

positional arguments:
  infile      Input file
  outfile     Output file

optional arguments:
  -h, --help  show this help message and exit

Can also be used directly with the gzip-ed wbs_propertypairs:

zcat PATH/TO/wbs_propertypairs.csv.gz | python refine.py /dev/stdin out.csv

About

Refine script for Wikidata entity suggester data, supposed to be a temporary workaround till a more robust suggestion algorithm is in place.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published