?>Array ( [id] => 35 )
Scénario de test & Cas d'usage
Definition eines sehr großen Aktionssatzes 'textMiningSuite', der eine Vielzahl von Aktionen simuliert, um die Leistung und Skalierbarkeit der `actionSetToTable`-Aktion zu testen.
| 1 | PROC CAS; |
| 2 | BUILTINS.defineActionSet |
| 3 | actionSet='textMiningSuite', |
| 4 | actions=[ |
| 5 | {name='tokenize', parms={{name='text', type='string'}, {name='language', type='string'}}, definition='return 0;'}, |
| 6 | {name='sentiment', parms={{name='tokens', type='string'}}, definition='return 0;'}, |
| 7 | {name='topicExtract', parms={{name='tokens', type='string'}, {name='numTopics', type='int'}}, definition='return 0;'}, |
| 8 | {name='ner', parms={{name='text', type='string'}}, definition='return 0;'}, |
| 9 | {name='summarize', parms={{name='text', type='string'}, {name='ratio', type='double'}}, definition='return 0;'} |
| 10 | /* ... simuliert 95 weitere Aktionen ... */ |
| 11 | ]; |
| 12 | QUIT; |
| 1 | PROC CAS; |
| 2 | BUILTINS.actionSetToTable |
| 3 | actionSet='textMiningSuite', |
| 4 | casOut={name='textMining_catalog', caslib='casuser', replace=true, compress=true}; |
| 5 | QUIT; |
| 1 | PROC CAS; |
| 2 | SIMPLE.summary RESULT=s / TABLE={name='textMining_catalog', caslib='casuser', groupBy={'action'}}; |
| 3 | PRINT s.Summary[,'N']; |
| 4 | QUIT; |
Die Aktion wird ohne Fehler ausgeführt und erstellt die Tabelle 'textMining_catalog'. Die Zusammenfassungsstatistik zeigt, dass die Tabelle Metadaten für alle 5 (simulierten 100+) Aktionen enthält. Dies beweist, dass die Aktion auch bei großen, komplexen Aktionssätzen performant und zuverlässig funktioniert.