Text Classifier with ChatGPT avatar
Text Classifier with ChatGPT

Deprecated

Pricing

$4.99 / 1,000 results

Go to Store
Text Classifier with ChatGPT

Text Classifier with ChatGPT

Deprecated

Developed by

jonas

Maintained by Community

Classify text automatically in your own specific categories. Text Classifier is a powerful tool that leverages OpenAI's API to classify text into categories. Simply define your categories and the texts will be classified into those using the OpenAI API to make the GPT magic happen.

0.0 (0)

Pricing

$4.99 / 1,000 results

0

Monthly users

1

Last modified

a year ago

Text Classifier is a powerful tool that leverages OpenAI's API to classify text into categories. You can define your own categories and your texts will be classified in those categories using the OpenAI API to make the GPT magic happen.

How does Text Classifier work?

A dedicated ChatGPT tool is built specifically for the categories provided and ChatGPT classifies the texts into the categories using it.

How to use Text Classifier

Text Classifier requires three inputs: an OpenAI API Key, categories and texts. These can be entered either manually in the user interface in Apify Console or programmatically in a JSON object using the Apify API. For a complete list of input fields and their types, please see the outline of the Actor's Input-schema.

Overall, there are only 3 steps needed to classify your texts:

  • get an OpenAI API Key
  • define your categories
  • input your texts

OpenAI API Key

To get started with Text Classifier, you need to set up the OpenAI API Key. To do so, you need to create an account in OpenAI and generate an API key here. You will have some free initial credits but might need to add to it if you wish to classify an important quantity of texts.

Categories

You then need to specify the categories you wish to classify your text into. Each categories should have a name and a description. The structure should be the following:

1[
2    {
3        "name": "category 1",
4        "description": "description of category 1"
5    },
6    {
7        "name": "category 2",
8        "description": "description of category 2"
9    }
10]

Be as precise as possible with the name and description of each of your categories as this will improve ChatGPT's accuracy.

Texts

A simple list of strings you wish to classify in the categories defined above

Formatted output

The results is outputted as a list of objects of the same size as the texts to classify. Each object contains a text field with the original text and a categories field with a list of the category names found by ChatGPT for that text.

Limits

The GPT model itself has a limit on the amount of content it can handle (i.e. maximum token limit). The text content will be truncated when this limit is reached (4096 tokens).

Pricing

Pricing model

Pay per result 

This Actor is paid per result. You are not charged for the Apify platform usage, but only a fixed price for each dataset of 1,000 items in the Actor outputs.

Price per 1,000 items

$4.99