Sales-Choice-Volunteering-Project / EmotionAnalyzerWeka

The program for obtaining emotion data
1 stars 0 forks source link

Getting familiar with CURL calls - GPT-3 prerequisite #41

Open damirsaleschoice opened 3 years ago

damirsaleschoice commented 3 years ago

We will need this to automate GPT-3 calls for sentiment analysis. You may need to install curl (supo apt-get install...) just try running the basic curl command, and Lubuntu will tell you what you need to do and what to install.

  1. Learn how to make basic CURL POST and GET calls. CURL is a command-line tool for making calls. It can get as complicated as we want. For our purposes, we will keep it as simple as possible. Go to: https://www.educative.io/edpresso/how-to-perform-a-post-request-using-curl Try some of their examples, make sure that they work.

  2. Create a CURL bash file with multiple calls. This can be done with nano or some text editor. Simply put several curl calls in one file, one after another (delimited by Enter key). Save it as (lets say) testCurl.sh. Go to a saved directory and execute "sh testCurl.sh" and see the output.

  3. type "sh testCurl.sh > output.txt" and open output.txt with a text editor. See that your responses are in a text file!

Since I have typed this from my head, let me know if something does not work.

Later, we will make the CURL calls to GPT-3 using the .sh file