senti_rules
Value: string
Description:
Specifies a newline-escaped string that contains the sentiment rules to use. This option enables you to augment the default sentiment rules that are used. Rules specified with the senti_rules
tag are applied after any rules in the files identified by the senti_list
tag.
A sentiment rule consists of a positive or negative symbol followed by the target phrase. For example, the following is a very minimal sentiment rule list:
- absolute idiot + absolutely free
When supplying this rule as an argument to the senti_rules
option, the newline-escaped version would look like the following:
"- absolute idiot\n+ absolutely free"
Note
The \n
notation shown in the example above is for typographic purposes only. It is used as a placeholder to indicate where you need to place a newline character.