Script

Script classifiers are most often used to classify numeric data such as credit card numbers and Social Security numbers. Because the scripts are optimized for this purpose, script classifiers are more accurate than regular expression classifiers. Scripts analyze both content and context using statistical analysis or decision trees.

Scripts can also be used to classify software design documents, source code (C, C++, C#, and Java), SPICE, Verilog (Verilog hardware design source code), and VHDL (VHDL and VHDL AMS hardware design source code).

You cannot generate your own scripts, but you can edit an existing script, change its parameters, and save it under a new name.

Complete the following steps to edit a Script.

Steps

  1. Navigate to Policy > Policy Elements > Classifiers > Pattern and Phrases.
  2. Select a specific Script from the classifier list. Opens the script editor. See Script classifiers for details about the selected script classifier.
  3. If required, update the script Name and Description.
  4. Add a new value for each parameter as desired.
  5. Use Exclude field to exclude certain values from the classifier, select one of the following:
    • None
    • Pattern to exclude to define the regular expression pattern to exclude. Type the list of valid values in the column.
    • List of phrases to exclude and search or type a phrase. Click Add to list option to add them to the list.

      These phrases will be excluded from matching under this script classifier.

      Click Remove from list to remove selected strings from the list.

  6. Click the Save button. The new classifier will be saved in the classifiers list.