/docs
en.sent.rec
Kernel Description
Pass multiple text branches to the kernel, and the kernal feeds back the text branches read by the user, and gives each word score.
- Applicable question types: situational response, information acquisition, etc.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| coreType | String | true | en.sent.rec means Limited Branching Kernel. |
| refText | String | true | The answer branch list, multiple branch options are separated by |, The recommended number of branches is 2-10. Each branch supports the entire sentence, with punctuation marks, and the recommended number of words is 2-15. e.g.:"Yes, please. | No, thanks." See more details, please refer to Symbols Supported in English Sentence Core in Text Symbol Description. |
| result | object | false | |
| - use_details | number | false | Set to 1 means that each word score will be displayed. |
Sample Code
{
"coreType": "en.sent.rec",
"refText": "Today is Friday.|It is Monday.|It is a sunny day.",
"result": {
"use_details": 1
}
}
Example of Returned Results
- The results are returned using the JSON structure,Example
Introduction to Returned Results
| Key | Type | Description | Recommendations |
|---|---|---|---|
| tokenId | string | Unique identification of evaluation data | For reference |
| result | object | Scoring result | |
| - wavetime | number | Audio duration (Unit:milliseconds) | For reference |
| - rec | string | Recognized text branch. | Suggest to display |
| - conf | number | Confidence score. The matching degree between the recognized reading content and an answer branch in the text passed to the kernel.The threshold is set by the application layer to determine whether the result is correct (generally 75, which can be adjusted up and down according to the difficulty of the question). |
Suggest to display |
| - starttime | number | The start time of the pronunciation in the audio(Unit:milliseconds). | For reference |
| - endtime | number | The end time of the pronunciation in the audio(Unit:milliseconds). | For reference |
| - details | array | ||
| - - char | string | word text | Suggest to display |
| - - score | number | each word score | Suggest to display |
| - - start | number | The start time of the word in audio (Unit:milliseconds). | Suggest to display |
| - - end | number | The end time of the word in audio (Unit: milliseconds). | Suggest to display |
Note: The other returned parameters that are not shown above are internal ones, which you don't need to pay much atttention to.
Suggestions for handling scoring results
Firstly, it is judged whether the value of the conf field exceeds the set threshold. If it exceeds, the content of the rec field is extracted, that is, the branch text read by the user is recognized this time. Otherwise, the user is prompted to try to read aloud again or not hear your pronunciation clearly.
