Sentiment Analysis Action Set: Syntax
Provides actions for the SAS Sentiment Analysis Application in CAS
applySent Action
Computes the document level sentiment polarity (positive, negative, neutral) and sentiment score for the input textual data. The applySent action has been deprecated beginning with the 2025.12 release. Use the applySentimentConcepts action instead of the applySent action.
| See: | About the applySent Action |
|---|---|
| Examples: | Generate Sentiment Results from Input Documents |
| Generate Sentiment Results, Match String, and Features from Input Documents |
Summary: Input and Output Tables
If a row includes a subparameter, you can specify the name, caslib, and so on in the subparameter. Otherwise, you can specify the name, caslib, and so on in the parameter.
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
— |
specifies the path to the user defined Sentiment Analysis Model. If not specified, the base model is used. | |
|
— |
specifies an input CAS table that contains the input documents to parse. The table must have two variables-- one that contains the document ID and a second that contains the document. The text and docId variables must be defined. If the table does not exist, an error message is displayed. |
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
— |
specifies the output CAS table that contains the sentiment result information. If not specified, the system will use the session ID as name of the table. If a single input text is to be processed, then no CAS output table will be generated. | |
|
— |
specifies the output CAS table that contains the product and feature match result information. | |
|
— |
specifies the output CAS table that contains the rule matched string result information. |
Parameter Descriptions
casOut={casouttable}
specifies the output CAS table that contains the sentiment result information. If not specified, the system will use the session ID as name of the table. If a single input text is to be processed, then no CAS output table will be generated.
For more information about specifying the casOut parameter, see the common casouttable parameter.
| Aliases | docOut |
|---|---|
| outsent |
docId="string"
specifies the CAS table variable name that contains the document IDs. This parameter is required. If the variable does not exist, an error message is displayed. If a single input text is to be processed, the parameter is not required.
| Alias | docIdVar |
|---|
featureOut={casouttable}
specifies the output CAS table that contains the product and feature match result information.
For more information about specifying the featureOut parameter, see the common casouttable parameter.
language="string"
specifies the language that is used in the input table. The English language is used in default. This value is specified as one of the supported languages ("Arabic" | "Chinese" | "Danish" | "Dutch" | "English" | "Farsi" | "French" | "German" | "Italian" | "Japanese" | "Korean" | "Norwegian" | "Portuguese" | "Spanish" | "Swedish" | "Turkish"). If the specified value for the language property is invalid, an error message is displayed. You can specify the language ISO 639-1 code for a language instead of its name.
| Default | "ENGLISH" |
|---|
matchOut={casouttable}
specifies the output CAS table that contains the rule matched string result information.
For more information about specifying the matchOut parameter, see the common casouttable parameter.
model={castable}
specifies the path to the user defined Sentiment Analysis Model. If not specified, the base model is used.
For more information about specifying the model parameter, see the common castable (Form 1) parameter.
| Alias | sam |
|---|
table={castable}
specifies an input CAS table that contains the input documents to parse. The table must have two variables-- one that contains the document ID and a second that contains the document. The text and docId variables must be defined. If the table does not exist, an error message is displayed.
For more information about specifying the table parameter, see the common castable (Form 1) parameter.
text="string"
specifies the CAS table variable name that contains the text to be processed. This parameter is required. If the variable does not exist or the variable is not text, an error message is displayed. If a single input text is to be processed, the parameter is not required.
| Alias | textVar |
|---|
applySent Action
Computes the document level sentiment polarity (positive, negative, neutral) and sentiment score for the input textual data. The applySent action has been deprecated beginning with the 2025.12 release. Use the applySentimentConcepts action instead of the applySent action.
| See: | About the applySent Action |
|---|---|
| Examples: | Generate Sentiment Results from Input Documents |
| Generate Sentiment Results, Match String, and Features from Input Documents |
Summary: Input and Output Tables
If a row includes a subparameter, you can specify the name, caslib, and so on in the subparameter. Otherwise, you can specify the name, caslib, and so on in the parameter.
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
— |
specifies the path to the user defined Sentiment Analysis Model. If not specified, the base model is used. | |
|
— |
specifies an input CAS table that contains the input documents to parse. The table must have two variables-- one that contains the document ID and a second that contains the document. The text and docId variables must be defined. If the table does not exist, an error message is displayed. |
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
— |
specifies the output CAS table that contains the sentiment result information. If not specified, the system will use the session ID as name of the table. If a single input text is to be processed, then no CAS output table will be generated. | |
|
— |
specifies the output CAS table that contains the product and feature match result information. | |
|
— |
specifies the output CAS table that contains the rule matched string result information. |
Parameter Descriptions
casOut={casouttable}
specifies the output CAS table that contains the sentiment result information. If not specified, the system will use the session ID as name of the table. If a single input text is to be processed, then no CAS output table will be generated.
For more information about specifying the casOut parameter, see the common casouttable parameter.
| Aliases | docOut |
|---|---|
| outsent |
docId="string"
specifies the CAS table variable name that contains the document IDs. This parameter is required. If the variable does not exist, an error message is displayed. If a single input text is to be processed, the parameter is not required.
| Alias | docIdVar |
|---|
featureOut={casouttable}
specifies the output CAS table that contains the product and feature match result information.
For more information about specifying the featureOut parameter, see the common casouttable parameter.
language="string"
specifies the language that is used in the input table. The English language is used in default. This value is specified as one of the supported languages ("Arabic" | "Chinese" | "Danish" | "Dutch" | "English" | "Farsi" | "French" | "German" | "Italian" | "Japanese" | "Korean" | "Norwegian" | "Portuguese" | "Spanish" | "Swedish" | "Turkish"). If the specified value for the language property is invalid, an error message is displayed. You can specify the language ISO 639-1 code for a language instead of its name.
| Default | "ENGLISH" |
|---|
matchOut={casouttable}
specifies the output CAS table that contains the rule matched string result information.
For more information about specifying the matchOut parameter, see the common casouttable parameter.
model={castable}
specifies the path to the user defined Sentiment Analysis Model. If not specified, the base model is used.
For more information about specifying the model parameter, see the common castable (Form 1) parameter.
| Alias | sam |
|---|
table={castable}
specifies an input CAS table that contains the input documents to parse. The table must have two variables-- one that contains the document ID and a second that contains the document. The text and docId variables must be defined. If the table does not exist, an error message is displayed.
For more information about specifying the table parameter, see the common castable (Form 1) parameter.
text="string"
specifies the CAS table variable name that contains the text to be processed. This parameter is required. If the variable does not exist or the variable is not text, an error message is displayed. If a single input text is to be processed, the parameter is not required.
| Alias | textVar |
|---|
applySent Action
Computes the document level sentiment polarity (positive, negative, neutral) and sentiment score for the input textual data. The applySent action has been deprecated beginning with the 2025.12 release. Use the applySentimentConcepts action instead of the applySent action.
| See: | About the applySent Action |
|---|---|
| Examples: | Generate Sentiment Results from Input Documents |
| Generate Sentiment Results, Match String, and Features from Input Documents |
Summary: Input and Output Tables
If a row includes a subparameter, you can specify the name, caslib, and so on in the subparameter. Otherwise, you can specify the name, caslib, and so on in the parameter.
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
— |
specifies the path to the user defined Sentiment Analysis Model. If not specified, the base model is used. | |
|
— |
specifies an input CAS table that contains the input documents to parse. The table must have two variables-- one that contains the document ID and a second that contains the document. The text and docId variables must be defined. If the table does not exist, an error message is displayed. |
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
— |
specifies the output CAS table that contains the sentiment result information. If not specified, the system will use the session ID as name of the table. If a single input text is to be processed, then no CAS output table will be generated. | |
|
— |
specifies the output CAS table that contains the product and feature match result information. | |
|
— |
specifies the output CAS table that contains the rule matched string result information. |
Parameter Descriptions
casOut={casouttable}
specifies the output CAS table that contains the sentiment result information. If not specified, the system will use the session ID as name of the table. If a single input text is to be processed, then no CAS output table will be generated.
For more information about specifying the casOut parameter, see the common casouttable parameter.
| Aliases | docOut |
|---|---|
| outsent |
docId="string"
specifies the CAS table variable name that contains the document IDs. This parameter is required. If the variable does not exist, an error message is displayed. If a single input text is to be processed, the parameter is not required.
| Alias | docIdVar |
|---|
featureOut={casouttable}
specifies the output CAS table that contains the product and feature match result information.
For more information about specifying the featureOut parameter, see the common casouttable parameter.
language="string"
specifies the language that is used in the input table. The English language is used in default. This value is specified as one of the supported languages ("Arabic" | "Chinese" | "Danish" | "Dutch" | "English" | "Farsi" | "French" | "German" | "Italian" | "Japanese" | "Korean" | "Norwegian" | "Portuguese" | "Spanish" | "Swedish" | "Turkish"). If the specified value for the language property is invalid, an error message is displayed. You can specify the language ISO 639-1 code for a language instead of its name.
| Default | "ENGLISH" |
|---|
matchOut={casouttable}
specifies the output CAS table that contains the rule matched string result information.
For more information about specifying the matchOut parameter, see the common casouttable parameter.
model={castable}
specifies the path to the user defined Sentiment Analysis Model. If not specified, the base model is used.
For more information about specifying the model parameter, see the common castable (Form 1) parameter.
| Alias | sam |
|---|
table={castable}
specifies an input CAS table that contains the input documents to parse. The table must have two variables-- one that contains the document ID and a second that contains the document. The text and docId variables must be defined. If the table does not exist, an error message is displayed.
For more information about specifying the table parameter, see the common castable (Form 1) parameter.
text="string"
specifies the CAS table variable name that contains the text to be processed. This parameter is required. If the variable does not exist or the variable is not text, an error message is displayed. If a single input text is to be processed, the parameter is not required.
| Alias | textVar |
|---|
applySent Action
Computes the document level sentiment polarity (positive, negative, neutral) and sentiment score for the input textual data. The applySent action has been deprecated beginning with the 2025.12 release. Use the applySentimentConcepts action instead of the applySent action.
| See: | About the applySent Action |
|---|---|
| Examples: | Generate Sentiment Results from Input Documents |
| Generate Sentiment Results, Match String, and Features from Input Documents |
Summary: Input and Output Tables
If a row includes a subparameter, you can specify the name, caslib, and so on in the subparameter. Otherwise, you can specify the name, caslib, and so on in the parameter.
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
— |
specifies the path to the user defined Sentiment Analysis Model. If not specified, the base model is used. | |
|
— |
specifies an input CAS table that contains the input documents to parse. The table must have two variables-- one that contains the document ID and a second that contains the document. The text and docId variables must be defined. If the table does not exist, an error message is displayed. |
|
Parameter |
Subparameter |
Description |
|---|---|---|
|
— |
specifies the output CAS table that contains the sentiment result information. If not specified, the system will use the session ID as name of the table. If a single input text is to be processed, then no CAS output table will be generated. | |
|
— |
specifies the output CAS table that contains the product and feature match result information. | |
|
— |
specifies the output CAS table that contains the rule matched string result information. |
Parameter Descriptions
casOut=list(casouttable)
specifies the output CAS table that contains the sentiment result information. If not specified, the system will use the session ID as name of the table. If a single input text is to be processed, then no CAS output table will be generated.
For more information about specifying the casOut parameter, see the common casouttable parameter.
| Aliases | docOut |
|---|---|
| outsent |
docId="string"
specifies the CAS table variable name that contains the document IDs. This parameter is required. If the variable does not exist, an error message is displayed. If a single input text is to be processed, the parameter is not required.
| Alias | docIdVar |
|---|
featureOut=list(casouttable)
specifies the output CAS table that contains the product and feature match result information.
For more information about specifying the featureOut parameter, see the common casouttable parameter.
language="string"
specifies the language that is used in the input table. The English language is used in default. This value is specified as one of the supported languages ("Arabic" | "Chinese" | "Danish" | "Dutch" | "English" | "Farsi" | "French" | "German" | "Italian" | "Japanese" | "Korean" | "Norwegian" | "Portuguese" | "Spanish" | "Swedish" | "Turkish"). If the specified value for the language property is invalid, an error message is displayed. You can specify the language ISO 639-1 code for a language instead of its name.
| Default | "ENGLISH" |
|---|
matchOut=list(casouttable)
specifies the output CAS table that contains the rule matched string result information.
For more information about specifying the matchOut parameter, see the common casouttable parameter.
model=list(castable)
specifies the path to the user defined Sentiment Analysis Model. If not specified, the base model is used.
For more information about specifying the model parameter, see the common castable (Form 1) parameter.
| Alias | sam |
|---|
table=list(castable)
specifies an input CAS table that contains the input documents to parse. The table must have two variables-- one that contains the document ID and a second that contains the document. The text and docId variables must be defined. If the table does not exist, an error message is displayed.
For more information about specifying the table parameter, see the common castable (Form 1) parameter.
text="string"
specifies the CAS table variable name that contains the text to be processed. This parameter is required. If the variable does not exist or the variable is not text, an error message is displayed. If a single input text is to be processed, the parameter is not required.
| Alias | textVar |
|---|