Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wikidata-triplets.py - 0 entity found #9

Closed
bastiennes opened this issue May 13, 2023 · 1 comment
Closed

wikidata-triplets.py - 0 entity found #9

bastiennes opened this issue May 13, 2023 · 1 comment

Comments

@bastiennes
Copy link

bastiennes commented May 13, 2023

Hello,

First of all, I want to thank you for sharing this script with the community.
I'm trying to regenerate Rebel dataset.
By using python -m wikiextractor.wikiextractor.WikiExtractor data/$1/$1wiki-latest-pages-articles-multistream.xml.bz2 --links --language $1 --output text/$1 --templates data/$1/templates.txt, I get page articles.
The wikidata entities are described by theirs links (--links), but wikidata-triplets.py use the wikidata ID.

How did you turn the links into IDs?

@LittlePea13
Copy link
Collaborator

Hi there, sorry for the late reply, I didn't see the issue until now. See the Readme:

For ./wikiextractor we use a submodule which is a fork of the original wikiextractor that implements wikimapper to extract the Wikidata entities. You can find the fork here, and clone it to the corresponding folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants