Self-learning platform FAQ
This topic answers common questions about hotwords, custom language models, and recognition accuracy evaluation on the self-learning platform.
Hotwords
What is the difference between business-specific and category-specific hotwords?
|
Type |
Purpose |
|
Business-specific hotwords |
Add vocabulary relevant to an application, not limited to names of people or places. Entries must meet the length and format requirements. |
|
Category-specific hotwords |
Support names of people and places. Each vocabulary can contain only one category. |
ASR models with an 8 kHz sample rate do not currently support category-specific hotwords.
For entry requirements and instructions, see Create hotwords in the console.
How do I add hotwords in the console?
Prepare a hotword file that meets the requirements, create a vocabulary in the console, and apply it to a project. For instructions, see Create hotwords in the console.
How do I create a hotword vocabulary by using POP API?
Call CreateAsrVocab to create a business-specific hotword vocabulary without configuring it in the console. Use GetAsrVocab to retrieve a vocabulary, UpdateAsrVocab to update it, DeleteAsrVocab to delete it, and ListAsrVocab to list vocabularies. For parameters and examples, see Create business-specific hotwords by using POP API.
How do I set weights for business-specific hotwords?
The console does not support adjusting weights for business-specific hotwords. Use POP API to set the weights. For parameter details, see Create business-specific hotwords by using POP API.
What are the limits on hotwords?
When creating business-specific hotwords by using POP API, each account can create up to 10 vocabularies by default, with up to 500 hotwords per vocabulary.
When creating hotwords in the console, each category supports up to 10 groups, with up to 500 lines per group.
If the number of hotwords exceeds these limits, consider training a custom language model on the self-learning platform. For vocabulary limits, see Create business-specific hotwords by using POP API and Create hotwords in the console.
How do I configure business-specific hotwords in the SDK?
Business-specific hotwords created in the console and applied to a project take effect through the project Appkey. No vocabulary ID is required in code. For a vocabulary created by using POP API, specify its ID in the vocabulary_id parameter of the recognition request.
If vocabulary_id is specified, the request uses that business-specific vocabulary instead of the business-specific hotwords configured for the project in the console.
For instructions for short sentence recognition, real-time speech recognition, and recording file recognition, see Configure business-specific hotwords by using the SDK.
Custom language models
What are the training data and model limits?
Training data must use UTF-8 encoding without a byte order mark (BOM). Each file must not exceed 10 MB, and each line must not exceed 500 characters. Each account can create up to 10 custom language models. For the full requirements, see Customize language models. For limits on models and datasets managed through POP API, see Create custom models by using POP API.
How do I use custom models created in the console or through POP API?
How to use a model depends on how it was created.
|
Creation method |
Use for recognition |
|
Console |
Apply the trained model to a project and use the project Appkey. No model ID is required in code. The base model selected for training must match the speech recognition model configured for the project for the custom model to appear in the project model list. |
|
POP API |
After training completes, specify the model ID in the |
For console instructions, see Customize language models. For SDK configuration for short sentence recognition, real-time speech recognition, and recording file recognition, see Configure custom models by using SDK 2.0.
How can I improve recognition accuracy beyond adding hotwords?
Use language model customization on the self-learning platform to train a model with text relevant to the application, then use the model for speech recognition. For instructions, see Customize language models.
How do I improve the training data for a custom model?
First rule out unclear pronunciation and poor audio quality. Then add text relevant to the application and the recognition errors. For keywords that are difficult to recognize, repeat the keywords or sentences that contain them in the training data. For example, start with 10 repetitions and adjust based on recognition accuracy. Avoid excessive repetition, which may affect recognition of homophones or similar-sounding words. For more suggestions, see Customize language models.
Evaluate recognition accuracy
How do I evaluate recognition accuracy with automated testing?
Upload annotated test audio, upload text for the service to synthesize audio and build a test set, or select an existing test set. Use the same test set to compare recognition results and accuracy across models. For test set requirements and instructions, see Automated testing.