Testing text predictions with batch tests
Before you deploy your text prediction to a production environment, you can test the prediction against a batch of sample sentences that you upload in a CSV format. Next, you can use the results of the analysis to improve the configuration of your text prediction.
For example, you can create additional topics and entities or add more training data or keywords for topics and entities.
- Open the text prediction:
- In the navigation pane of App Studio, click Channels.
- In the Current channel interfaces section, click the icon that represents a channel for which you want to configure the text prediction.
- On the channel configuration page, click the Behavior tab, and then click Open text prediction.
- In the header of the prediction workspace, click the arrow to the right of the Test button, and then click Batch test.
- If you do not have an input file ready, create an input file by using the
template:
- In the Batch test prediction dialog box, in the Input file template field, click Download to download the template.
- In the template, enter sample content for batch testing of your text
prediction.An input file contains the following columns:
- ID (mandatory)
- Content (mandatory)
- Tag1, Tag2, Tag3, and Tag4 (optional)
Tags 1-4 can contain pass-through values that are included in the test results. You can use these columns to annotate individual content items, and then use the tags to search or filter the test results.
- In the Batch test prediction dialog box, click Choose File.
- Select the CSV file with the sample content, and then click Open.
- Click Test.
- Click Download to save a CSV file with the test results.
- Optional: To see the details of the data flow run that the system completed to perform the batch test, click Click to see more details.
Previous topic Testing text predictions Next topic Managing models in text predictions