GithubHelp home page GithubHelp logo

How to run the code about autoprompt HOT 3 OPEN

ucinlp avatar ucinlp commented on September 18, 2024
How to run the code

from autoprompt.

Comments (3)

taylorshin avatar taylorshin commented on September 18, 2024

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:

  1. Set up environment
  2. Download the data
  3. Label token selection with autoprompt/label_search.py (only for sentiment analysis and NLI)
  4. Generate prompt with autoprompt/create_trigger.py

from autoprompt.

SupritYoung avatar SupritYoung commented on September 18, 2024

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.

yunimya avatar yunimya commented on September 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.