To create or add to an NLU test set, you can upload a file
of test utterances matched with correct intents. Use the test set to assess the performance
of your model.
始める前に
Ensure that the NLU Workbench - Core plugin, NLU Workbench
plugin, NLU Workbench - Advanced Features plugin and Predictive Intelligence
plugin are all installed and activated
You can use test sets with NLU models for Virtual Agent and AI Search.
Role required: nlu_editor, nlu_admin, or admin. The editor must be assigned to the model.
このタスクについて
Your CSV or XLSX (Excel Workbook) file should contain a table that pairs your test
utterances with the intents that you expect for them. Your file can contain up to
10,000 utterances. Ensure that the file has columns titled "Utterance" and "Expected
intent".
注:
For test sets in languages other than English, you must add the
glide.import.csv.charset system property with the value UTF-8. See Import sets
properties.
For the most accurate test results, include utterances that the model is likely to
encounter from your users. Ensure that you have test utterances covering all the
intents in your model.
Aim to include about 10% of test utterances with no expected intents. Including
utterances with no expected intent helps assess your model's ability to detect
irrelevant utterances that should not have any intent predicted.
注:
To indicate that a
test utterance in your file has no expected intent,
the value for "Expected intent" should be empty.
表 : 1. Example test set table
Utterance
Expected intent
Let me have a burger
Order
I want to pay
Payment
Get me something sweet
Order
Is the restaurant open
Something wrong with my payment
Order, Payment
Total cost
Payment
手順
Navigate to All > NLU Workbench > NLU Advanced Features > Multi-model Batch Testing.
Click Test sets
Click Create test set.
Choose a name for the test set.
Choose a language.
Click Select file and choose a CSV or XLSX (Excel
Workbook) file.
After you have created a test set, you can add more utterances to it. When viewing a
test set, click Import utterances.図 : 1. Test set page with import utterances button
Select a CSV or XLSX (Excel Workbook) file with your additional utterances to import.
図 : 2. Import utterances window
Click Import. The system adds your utterances to the test set.
After importing, rerun any tests that use the test set.