Comments (3)
Could you clarify the problems or errors you are running into?
For example, when you mention executing run.py are you referring to scripts/run_experiments.py
in the Setup LAMA
section of the README? If so, that script is located in our fork of the LAMA repo. Also note that you only need to run this script for the fact retrieval and relation extraction tasks.
The general steps for generating prompts are:
- Set up environment
- Download the data
- Label token selection with
autoprompt/label_search.py
(only for sentiment analysis and NLI) - Generate prompt with
autoprompt/create_trigger.py
from autoprompt.
Dear author. Do u mean that we need to run in the order of label_search.py
-> create_trigger.py
? But how can i code the script to run label_search.py
, I cant find the example😭. such as, how to set the argument of --label-map
, --initial-trigge
and --label-field
? Thank u so much. ❤️
from autoprompt.
Dear author. If we have some examples,how to use label_search.py to automatically generate prompts based on examples
from autoprompt.
Related Issues (20)
- How to run the code --queries HOT 1
- Two arguments missed in label_search.py HOT 1
- where is scripts/run_experiments.py HOT 2
- About accuracy HOT 2
- "Gradient-Based Prompt Search"&" Automating Label Token Selection".which one is the first step? HOT 1
- Label Search of NLI HOT 2
- I got different triggers with the one in fact_retrieval_bert_prompts.jsonl HOT 1
- Query about the function "encode_label" in autoprompt/utils.py HOT 4
- Is there the code for downstream task in this project? HOT 2
- AttributeError: 'str' object has no attribute 'masked_select' HOT 2
- A program error in create_trigger.py for sentiment analysis task HOT 5
- A question for the meaning of letter 'Ġ' HOT 1
- where are the found prompts? HOT 1
- What is the T in your label search algorithm? HOT 2
- Question about code running on SNLI dataset
- Zero value for evaluation_fn in create_trigger.py
- 请问自己生成的的提示在哪里,我运行完prompt的程序也没见到自己生成的提示啊?
- Question about proper settings of prompt extraction attack.
- RuntimeError: CUDA error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autoprompt.