Data Prep Sheet

Action Principale : applyCategory

Preparation Code

Script awaiting validation
Copied!
1PROC CAS;
2 datastep.runCode(code='data mycas.reviews;
3 length text $200;
4 infile datalines delimiter="|";
5 input docId $ text $;
6 datalines;
7 1|This is a great product, I love it!
8 2|The service was terrible and the food was cold.
9 3|I am not sure how I feel about this.
10 ;
11 run;
12 
13 datastep.runCode(code="DATA mycas.category_model_table; LENGTH _mco_ long; _mco_ = 12345; RUN;");
14QUIT;
Actions using this script
  • textRuleScore applyCategory En cours
  • No other action uses this exact script.