Downloads · 30 days
15
0% of all-time downloads
drt/srtk-scorer
srtk-scorer is a fill-mask model from drt. Use it when you need the model to fill a missing word. It is set up for transformers. The card lists the license as mit.
This model is a trained scorer for SRTK. It is used to compare the similarity between a query and the expansion path at the time of subgraph retrieval.
Downloads · 30 days
15
0% of all-time downloads
All-time downloads
8K
Public
Parameters
125M
997 MB on disk
Likes
1
Public
Click a slice to open those files.
.bin499 MB · 50%
How the weights are stored.
F32125M · 100%
From the Hugging Face model README
This model is a trained scorer for SRTK. It is used to compare the similarity between a query and the expansion path at the time of subgraph retrieval.
It is initialized with roberta-base. It is trained jointly on the following datasets:
It achieves an answer coverage rate of 0.9728 on SimpleQuestionsWikidata (depth 1) 0.8501 on WebQSP test set (depth 2) with a beam width of only 2!
First install the package:
pip install srtk
Then you can retrieve subgraphs with the help of this scorer:
srtk retrieve -i data/wikidata-simplequestions/intermediate/scores_test.jsonl \
-o artifacts/subgraphs/wikidata-simple-contrast \
-e http://localhost:1234/api/endpoint/sparql \
--scorer-model-path drt/srtk-scorer \
--scorer --beam-width 2 --max-depth 1 --evaluate
As both SimpleQuestionsWikidata and SimpleDBpediaQA contain only one-hop relations, the model tends to stop at one-hop when you retrieve subgraphs on Wikidata and DBpedia. We will release a updated version of the model that is trained on a more diverse dataset in the future.
MIT