Giter Site home page Giter Site logo

Comments (2)

HamedBabaei avatar HamedBabaei commented on May 22, 2024

I used the generation capabilities of ChatGPT in the following manner:

I add this in prompt:

1. [A] has a subclass of [B].
2. [B] is a subclass of [A].

and It generated the following for me (starting the numbering from 3)

3. [A] is the parent class of [B].
4. [B] is a child class of [A].
5. [B] inherits from [A].
6. [A] is the base class for [B].
7. [B] is a derived class of [A].
8. [A] is a more general class than [B].
9. [B] is a more specific class than [A].
10. [A] is a supertype of [B].
11. [B] is a subtype of [A].
12. [A] is the superclass of [B].
13. [B] is a subclass of [A].
14. [A] is an ancestor class of [B].
15. [B] is a descendant class of [A].

Some of these could be a good template for us to extend our dataset for prompt engineering (if we want to do few-shot learning)

from llms4ol.

HamedBabaei avatar HamedBabaei commented on May 22, 2024

designed prompts for Task B:

{"placeholder": "text_a"} is the superclass of {"placeholder": "text_b"}. It is a {"mask"} statement.
{"placeholder": "text_b"} is a subclass of {"placeholder": "text_a"}. It is a {"mask"} statement.
{"placeholder": "text_a"} is the parent class of {"placeholder": "text_b"}. It is a {"mask"} statement.
{"placeholder": "text_b"} is a child class of {"placeholder": "text_a"}. It is a {"mask"} statement.
{"placeholder": "text_a"} is a supertype of {"placeholder": "text_b"}. It is a {"mask"} statement.
{"placeholder": "text_b"} is a subtype of {"placeholder": "text_a"}. It is a {"mask"} statement.
{"placeholder": "text_a"} is an ancestor class of {"placeholder": "text_b"}. It is a {"mask"} statement.
{"placeholder": "text_b"} is a descendant class of {"placeholder": "text_a"}. It is a {"mask"} statement.

This is the use of a prompt for a classification task!

from llms4ol.

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.