jzbjyb / lpaqa Goto Github PK
View Code? Open in Web Editor NEWLanguage model Prompt And Query Archive
Language model Prompt And Query Archive
Hi, neither in the paper nor in the readme, is it specified, corresponding to which LM were those weights trained on. By that I mean, do I have to use those weights with the BERT-base or BERT-large? Moreover are they cased on uncased models?
I am interested in the code to mine prompts automatically, can you share them? Or recommend some others' code do this insteadly? thanks
if this error occur, just install the right overrides version:
pip install overrides==3.1.0
This works.
Hi, thanks for sharing the code!
I can see templates by manual_paraphrase, but I'm don't know which one is manual or paraphrased. Could you also share the manual templates only?
Thanks
from knowledge_bert import BertTokenizer, BertForMaskedLM, BasicTokenizer
from knowledge_bert.tokenization import whitespace_tokenize_ent
"knowledge_bert" is not in the https://github.com/facebookresearch/LAMA/tree/main/lama/modules. How can I get them?
Thanks!
I'm trying to run the experiments (run_exp.sh) and I'm running into a problem with the rel_file. I assume it's one of the mine/paraphrase prompt files so for the --rel_file parameter I put something like "prompts/mine/P19.jsonl" but then I get an error saying the key 'relation' is expected. Do I need to add a relations key like in get_test_phrase_parameters
?
i.e. relations = [{"relation": "P108", "template": ["[X] works for [Y] .", "[Y] commentator [X] ."]}]
More specifically, how do I recreate the micro/macro averaged accuracies of Table 2 and 3 in the paper?
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.