yanaiela / pararel Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Thanks for releasing the code and data. This work is really amazing.
I'm trying to get identical results with Table 3 in the paper (https://arxiv.org/pdf/2102.01017.pdf). I run run_lm_consistent.py
with --baseline
or Roberta-base models, then average the "lama_acc", "consistency", "lama_group_acc" metrics over relations, the results are:
reproduce with roberta-base
reproduce | average over 38 relations | average over 31 N-1 relations | in paper | roberta-base | |
---|---|---|---|---|---|
lama_acc | 0.356008 | 0.387121 | accuracy | 39 | |
lama_group_acc | 0.152222 | 0.164011 | accuracy&consistency | 16.4 | |
consistency | 0.506783 | 0.520455 | consistency | 52.1 |
reproduce with --baseline
reproduce | average over 38 relations | average over 31 N-1 relations | in paper | majority | |
---|---|---|---|---|---|
lama_acc | 0.24693 | 0.227869 | accuracy | 23.1 | |
lama_group_acc | 0.24693 | 0.227869 | accuracy&consistency | 23.1 | |
consistency | 1 | 1 | consistency | 100 |
I place the reproduction results on the left side and the result from the paper on the right side.
I got almost the same "consistency" with Table 3 by averaging over 31 relations. But the "accuracy" metrics are slightly different.
How can I get the same probing results with the paper for the baseline models? Do I miss something in the procedure? Thanks for your help.
Hello! Thanks for releasing the code and data.
When I tried to reproduce the results, I found there are 39 relations here [https://github.com/yanaiela/pararel/tree/main/data/pattern_ data/graphs_json.] while in the article they should be 38.
I wonder if I have miss anything to filter the data and a little confused about which one should be removed.
Meanwhile, I tried to reproduce the results in table 2 and 3. So after filtering, I run run_lm_consistent.py
with bert-base-cased as language model. However, the results are slightly different.
Here are the comparison of my result and the original ones represented in your paper.
metrics | results | original |
---|---|---|
Consistency | 58.72402028656049+-23.441761447607665 | 58.5+-24.2 |
Accuracy | 43.5833928562685+-26.147602234172046 | 45.8+-26.1 |
Unk-Const | 48.17776229348506+-22.316262495803235 | 46.5+-21.7 |
known-Const | 62.54802072504408+-24.32609269135139 | 63.8+-24.5 |
Do you have any idea about what I may miss in the procedure and what can I do to get the same result?
Thanks for your kindly help.
For example:
{"pattern": "[X] originated from [Y].", "lemma": "originate", "extended_lemma": "originate-from", "tense": "past"}
What's the meaning of each keyword?
Hi~
I'm wondering if the code of Figure 3, t-SNE could be added into the repository?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.