# Text Analysis - Save Variable(s) - Categories

Jump to navigation Jump to search

Save variables to the data set containing the categories. Where there are multiple input variables, multiple sets of variables are added for each.

This QScriptfeature saves the categories from a Insert > Text Analysis > Automatic Categorization > List of Items/Unstructured Text/Entity Extraction or Insert > Text Analysis > Advanced > Setup Text Analysis output as a Pick One or Pick Any - Compact questionNominal or Binary Multi - Compact variable set.

## Technical Details

The variables created from this QScriptfeature may become invalid and need to be deleted and recreated if the output from Insert > Text Analysis > Automatic Categorization > List of Items/Unstructured Text/Entity Extraction or Insert > Text Analysis > Advanced > Setup Text Analysis has changed, either due to the input text variable being modified or the input settings modified.

This QScript requires version 5.5.1 to be executed.

## Code

includeWeb('QScript Functions for Saving Text Analysis Variables');

saveTextAnalysisVariables('Save Variable(s) - Categories');