Hoja de preparación de datos

Action Principale : applyCategory

Código de preparación

Script en espera de validación
¡Copiado!
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;
Acciones que utilizan este script
  • textRuleScore applyCategory En cours
  • Ninguna otra acción utiliza este script exacto.