История страницы
...
The action classifies the text according to the given indexes and defines its class
Action icon
Parameters
Input parameters
Context - uses the result of the "Open classifier" action, which includes the path to the folder with the classifier.
Text - string value to be classified.
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.
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
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
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).Confident result:
If "Multiclass classification" = false and "Confidence threshold" is not filled, then "Confident result" = false
If "Multiclass classification" = true, then "Confident result" = false
...
Parameters and their settings
Property | Description | Type | Filling example | Mandatory field |
---|---|---|---|---|
Parameters | ||||
Context | Classifier context for the operation of the action | Context | Open classifier.Classifier | Yes |
Text | Text that needs to be classified | String | 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 classification | If "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 belong | Boolean | True | No |
Confidence threshold | A 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 | Numeric | 80 | No |
Number of classes | The 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 classes | Numeric | 5 | No |
Results | ||||
Classes | A 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 result | If "true", the classification result is sufficiently accurate. If "false", the classification result may be inaccurate | Boolean |
Classifier operation description
...