facebookresearch / BLINK

Entity Linker solution
MIT License
1.17k stars 231 forks source link

Entity linking in Wikidata? #117

Open xu1998hz opened 2 years ago

xu1998hz commented 2 years ago

This is a great work! I was wondering if this project can be used for entity linking in Wikidata?

abhinavkulkarni commented 2 years ago

Hey @xu1998hz,

Yes, this project can certainly be used to entity link into Wikidata. The default model files link into Wikipedia pages, many of whom have a corresponding Wikidata entry. Basically you just need to link the Wikipedia title with corresponding Wikidata Q-id.

AmirLayegh commented 1 year ago

Hi, Can we use entity_encoding (all_entities_large.t7) to fetch the WikiData Q-ID for corresponding predictions? or they only have local IDs?

dukesun99 commented 1 year ago

@AmirLayegh Entity.jsonl gives you a mapping from the internal entity ID (which is the line number) to Wikipedia page ID. You can then fetch the corresponding Wikidata QID with a dump or the API.