Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

The action classifies the text according to the given indexes and defines its class

Action icon

Image Removed

Parameters

Input parameters

  1. Context - uses the result of the "Open classifier" action, which includes the path to the folder with the classifier.

  2. Text - string value to be classified.

  3. Multiclass classification - used to select how many classes will be obtained as a result.

    If the value is "false", the class with the highest percentage of probability will be determined for the text. If "true", then multiple classes will be defined to which the text may belong.

  4. Confidence threshold - allows you to set the difference between the first two headings (topics), at which the system can confidently attribute the text to a single heading. The parameter is taken into account if "Multiclass classification" = false, otherwise the parameter is ignored. 

    • If the percentage of occurrences ≥ confidence threshold, then "Confident result" = true

    • If the percentage of occurrences < confidence threshold, then "Confident result" = false

  5. Number of classes - the maximum number of classes that will be output to the resulting dictionary.

    The parameter is considered if "Multiclass classification" = true, otherwise the parameter is ignored. 

    • If there are more classes in the resulting sample in the class dictionary than in "Number of classes", then the number of classes specified in the parameter is displayed

    • If the number of classes in the resulting sample in the class dictionary is less than in "Number of classes", the number of classes is output as many as were received.

Output parameters

  1. Classes - a dictionary with the resulting sample of classes, where the key is the class and the value is the probability percentage, i.e. the rank of the class
    (displayed in the same form as in the classifier).

  2. Confident result:

    • If "Multiclass classification" = false and "Confidence threshold" is not filled, then "Confident result" = false

    • If "Multiclass classification" = true, then "Confident result" = false

...

Image Added

Parameters and their settings

Property

Description

Type

Filling example

Mandatory field
Parameters
Context

Classifier context for the operation of the action

ContextOpen classifier.Classifier
Yes
TextText that needs to be classifiedString

When Wehner and colleagues performed a historical data analysis of hurricanes between 1980 and 2021, they found five storms that would fit into a Category 6 that have all occurred in the last nine years. It includes 2015’s Hurricane Patricia, which was the most powerful tropical cyclone that lashed Mexico with winds up to 215 mph. The other storms include Typhoon Haiyan in 2013, Typhoon Meranti in 2016, Typhoon Goni in 2020, and Typhoon Surigae in 2021.

Yes
Multiclass classificationIf "false", then the class with the highest probability percentage will be determined for the text. If "true", then several classes will be defined, to which the text can belongBooleanTrueNo
Confidence thresholdA number from 1 to 100 that determines whether the classification result is accurate enough. It is used if you need to define only one class. The higher the specified number, the greater the difference between the two most likely classes should be. The parameter is taken into account if "Multiclass classification" = false
Numeric80No
Number of classesThe maximum number of classes the action can return. If more classes were defined for the text during classification, the action will return only the specified number of classesNumeric5No
Results
ClassesA dictionary with classes to which the specified text can belong. The key is the class, the key value is the percentage of probability that the text will enter the class
Dictionary


Confident resultIf "true", the classification result is sufficiently accurate. If "false", the classification result may be inaccurateBoolean

Classifier operation description

...