Comments (3)
Hi @clintoncheang, we did not compute f1 so you would need to implement that yourself. For other metrics, look at code here https://github.com/facebookresearch/BLINK/blob/main/blink/main_dense.py#L476 (and in similar places for cross-encoder).
from blink.
Hi @clintoncheang, we did not compute f1 so you would need to implement that yourself. For other metrics, look at code here https://github.com/facebookresearch/BLINK/blob/main/blink/main_dense.py#L476 (and in similar places for cross-encoder).
Thank you so much for the reply. I looked at the code but I am not very sure how BLINK computes the recall and accuracy. Is it based on the output from the BLINK model (Predictions for the entity, which is in string format) and compare it to the correct entities from the corresponding Test dataset (I am assuming the correct entity from the jsonl file will be the wiki_title field?) Correct me if I am wrong. Thank you so much!
from blink.
@clintoncheang: Have you looked at eval_biencoder.py
script?
from blink.
Related Issues (20)
- Use a smaller model to speed up the prediction time HOT 3
- How to generate embeddings for new candidates? HOT 6
- Slightly different scores when using a quantized model
- Poor recall using non-dense FAISS indexes HOT 2
- Biencoder with GPU RuntimeError: Expected object of device type cuda but got device type cpu for argument #3 'index' in call to _th_index_select HOT 3
- python: symbol lookup error:
- KeyError HOT 7
- A short tutorial on how to train a smaller biencoder model on custom dataset HOT 1
- Entity linking in Wikidata? HOT 3
- Missing `add_special_tokens` in biencoder? HOT 1
- Average length of words in a Wikipedia Entity HOT 1
- AttributeError: 'KeyedVectors' object has no attribute 'key_to_index' HOT 1
- Add truncation for data_process.get_context_representation
- Tutorial on how to train a Crossencoder HOT 1
- Python 3.7 no longer supported by conda HOT 2
- How to get entity type?
- ValueError in faiss_indexer.py Due to Mismatched Tensor Shapes During ELQ Training
- ELQ Wikipedia-trained biencoder checkpoints
- Can Support Chinese?
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 blink.