Data Prep Sheet

Action Principale : applyCategory

Preparation Code

Script awaiting validation
Copied!
1PROC CAS;
2 datastep.runCode / code='data mycas.reviews;
3 length docId $ 50;
4 length text $ 300;
5 infile datalines delimiter="|";
6 input docId $ text $;
7 datalines;
8 doc1|The food was great and the service was excellent.
9 doc2|The room was clean, but the staff was not friendly.
10 doc3|I enjoyed the movie, the plot was amazing.
11 doc4|The product broke after a few days, very poor quality.
12 ;
13 run;';
14QUIT;
Actions using this script
  • textRuleScore applyCategory En cours
  • No other action uses this exact script.