Skip to content

Code of EMNLP 2023 paper "Revisiting Sparse Retrieval for Few-shot Entity Linking".

Notifications You must be signed in to change notification settings

HITsz-TMG/Sparse-Retrieval-Fewshot-EL

Repository files navigation

plm-augmented-sparse-retrieval

Usage

Environment

conda activate -n sparse python=3.9
conda activate sparse
pip install -r requirements.txt

Data and Checkpoints

Please see the README.md file in zeshel directory to download the processed data.

Train the retriever

python run_model_keyword.py \
--model retriever_model/keyword_model.pt \
--pretrained_model google/electra-base-discriminator/ \
--data zeshel/data/[forgotten_realms.json | lego.json | yugioh.json | star_trek.json] \
--kb zeshel/kb/[forgotten_realms.json | lego.json | yugioh.json | star_trek.json]

About

Code of EMNLP 2023 paper "Revisiting Sparse Retrieval for Few-shot Entity Linking".

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages