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

Running instructions to Recreate WNED-CWEB and ACQUAINT results #2

Open
danishebadulla326 opened this issue Dec 4, 2023 · 4 comments

Comments

@danishebadulla326
Copy link

I am trying to recreate the results from the paper. I was able to get all the ZESHEL experiment results but I was not able to find any code to get the WNED-CWEB and ACQUAINT results. Could you please give the steps to be followed to recreate these results?

@wutaiqiang
Copy link
Owner

DATA

In the data folder, we provide the datasets in "benchmark", you need to change the corresponding args to run.

The data processing would take a while as the document is huge. [process via load_entity_description function in data_loader.py ]

MODEL

Following BLINK, for Wikipedia-based datasets, we pre-train the BERT-large on 9M paired Wikipedia samples. Hence, the results for baseline and GER are high. To get the pre-trained BERT-large, please download the ckpt via download_blink_models.sh in https://github.com/facebookresearch/BLINK and convert it into GER format.

@danishebadulla326
Copy link
Author

What are the recommended split sizes for the two datasets in data_loader.py? Currently the WORLDS dictionary only has information about zeshel dataset

WORLDS = { 'train': [("american_football", 31929), ("doctor_who", 40281), ("fallout", 16992), ("final_fantasy", 14044), ("military", 104520), ("pro_wrestling", 10133), ("starwars", 87056), ("world_of_warcraft", 27677)], 'valid': [("coronation_street", 17809), ("muppets", 21344), ("ice_hockey", 28684), ("elder_scrolls", 21712)], 'test': [("forgotten_realms", 15603), ("lego", 10076), ("star_trek", 34430), ("yugioh", 10031)] }

I understand that in the paper the pretrained model used was the BERT-large from BLINK, but can I run the experiments with bert-base-uncased as well without any additional changes?

@wutaiqiang
Copy link
Owner

Following BLINK, we train on AIDA train set and test on WNED and AQUAINT.
image

@wutaiqiang
Copy link
Owner

I understand that in the paper the pretrained model used was the BERT-large from BLINK, but can I run the experiments with bert-base-uncased as well without any additional changes?

you can change the backbone to bert-base-uncased by changing the args and no need to change the code.

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