Validate Labels and Output Flags

Function

Determine whether each label of the input label list appears in the standard list, and output the corresponding Boolean value list.

  • If a label in the original label list appears in the reference label list, its corresponding Boolean result is “True.”

  • Otherwise, the result is “False.”

validate labels and output flags validate labels and output flags schematic

Usage Scenario

This Step is usually followed by the Step Filter, and the Bool list it outputs will be used as the criterion to filter the data array.

Input and Output

validate labels and output flags input and output

Parameter Description

Label File Name

Description: This parameter is used to set the reference label file.

Default setting: labelFilter.json

Data type: strings (without special characters)

Data that does not meet requirements is invalid and cannot be input.

Instructions:

  1. Click Open the editor to open the JSON Editor window.

  2. Click validate labels and output flags icon add, input a reference label name in the pop-up Add Item window, and then click OK. A reference label is added.

If a label includes decimals or special characters, this label cannot be added for conversion, and there will be a hint below the mapping panel suggesting that the user input is invalid.

  1. If multiple reference labels are to be set, please repeat Step 2.

  2. Directory refers to the directory of the current project. Click ... on the right to change the directory of the project according to actual needs.

  3. Name the file in JSON File Name and click Save to save the label in the file.

  4. Click OK to finish the settings.

    If the label file is already renamed beforehand, you can just click the ... in JSON File Name and select the file to read the mapping relation.

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.