Scénario de test & Cas d'usage
Creation of a rule table containing Japanese characters for Network and Hardware issues.
| 1 | |
| 2 | DATA mycas.jp_support_rules; |
| 3 | LENGTH config $200; |
| 4 | INFILE DATALINES dsd; |
| 5 | INPUT config $; |
| 6 | DATALINES; |
| 7 | "CATEGORY:Network,(OR, 'ネットワーク', '接続', '遅延')" "CATEGORY:Hardware,(OR, 'ハードウェア', '故障', '画面')" ; |
| 8 | |
| 9 | RUN; |
| 10 |
| 1 | |
| 2 | PROC CAS; |
| 3 | TABLE.loadTable / path='jp_support_rules.sashdat' caslib='casuser' casout={name='jp_support_rules', replace=true}; |
| 4 | |
| 5 | RUN; |
| 6 |
| 1 | |
| 2 | PROC CAS; |
| 3 | textRuleDevelop.compileCategory / TABLE={name='jp_support_rules'} config='config' language='Japanese' tokenizer='BASIC' casOut={name='jp_support_model', replace=true}; |
| 4 | |
| 5 | RUN; |
| 6 |
The action must compile the Japanese rules without encoding errors. The resulting 'jp_support_model' should be optimized for CJK text processing due to the 'BASIC' tokenizer setting.