Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

In this step we create our first model. You can either use promptranker to help you find the best labels and hypothesis or skip this step with your preferred setting.

  1. Select Action: CREATE

  2. Select your dataset from the dropdown

  3. Choose a model type

    1. symanto_fast (for demonstration purposes, live demo, etc.)

    2. symanto (for actual model training with a purpose)

  4. Select or unselect the multi_label option (select it if the text classification task allows prediction of multiple labels per text instance. Otherwise, the task is considered as multi-class (or binary if only 2 labels are categorized). 

  5. Select the language of the text

  6. Choose an embedding model

    • Choose symanto_brain_multilingual only if there is no specific language model for your selected langauge

  7. Select the number of labels for your analysis

As a brief reminder, when defining the text classification task, we need to associate a label text with the label name that we are intending to categorize. This label text, also referred sometimes as hypothesis or prompt, provides a semantic context to the model. 

If you want to continue without using Promptranker:

  1. Provide label names, e.g. POSITIVE , NEGATIVE and a label texts, e.g. GREAT , BAD. You can include your hypothesis in the label text too, such as THE TEXT IS GREAT or THE TEXT IS BAD

  2. Enable “Inspect typical examples” to see how your model performs

    1. Use the slider to select up to 10 examples.

    2. Change the label dropdown to see examples for every of your labels.

  3. Click create

If you want to continue using Promptranker

This will run an unsupervised statistical Bayesian process that will end up outputting a reliability score of the best combination from the provided ones. It is recommended to use that combination for your model, both at zero and few-shot level.

  1. Enable “Rank label texts”

  2. Provide label names, e.g. POSITIVE , NEGATIVE

    1. For each label name, provide a list of alternative descriptions. For example, for positive, you can provide GREAT WONDERFUL POSITIVE and for negative, BAD TERRIBLE NEGATIVE

  3. Provide hypothesis variations, e.g. use an empty one and add several different variations such as THIS TEXT IS {} , THE AUTHOR EXPRESSES A {} SENTIMENT , …

  4. Click “Rank”

  5. The result is a table where each variation is ranked according to a calculated score. The higher the score, the more likely the given labels and hypothesis yield good results in a real scenario.

  6. Enable “Inspect typical examples” to see how your model performs

    1. Use the slider to select up to 10 examples.

    2. Change the label dropdown to see examples for every of your labels.

  7. Click create. The model is automatically being created with the prompts (labels and hypothesis) that scored top.

  • No labels