- This document is for the development of the English Question-Answer evaluation type.
Applicable Scenarios
-
Show a text or play a dialogue to the respondent, pose a question, and then ask the respondent to answer the question semi-openly based on what they have heard or seen.
-
Key words and trap words can be set, with scores awarded for hitting key words and deducted for hitting trap words.
-
The evaluation focuses on the match degree with the reference answer, the hit rate of key words, and the overall pronunciation accuracy, fluency, and completeness scoring.
-
Example:
Reading Material: Surtsey was born in 1963. Scientists saw the birth of this island. It began in the morning. A fishing boat was near Iceland. The boat moved under the captain's feet. He noticed a strange smell. He saw some black smoke. A volcano was breaking out. Question: What is Surtsey? Reference Answers: It's an island. It's an island near Iceland. It's an island not far from Iceland. ……etc.
Question Type Limitations
- The maximum length of the audio sent should not exceed 60 seconds. There is no character limit for the reference text.
Question Type Parameters
| Field | Type | Default Value | Description | |
|---|---|---|---|---|
| mode | string | Required | Indicates the question-answer evaluation type. | |
| stem | dict | None | The stem of the question. | |
| ├─ para | string | None | Chapter content. | |
| ├─ question | string | None | Question content. | |
| answer | list<dict> | Required | Reference answers. | |
| ├─ text | string | Required | Content of the answer. | |
| keyword | list<dict> | None | Keywords that will score points when hit. | |
| ├─ text | string | None | Content of the keyword; hitting any one keyword will score points. | |
| distractor | list<dict> | None | Trap words that will deduct points when hit. | |
| ├─ text | string | None | Content of the trap word; hitting any one trap word will deduct points. | |
| pronunciation | list<dict> | None | Specify word pronunciation. | |
| ├─ ipa | boolean | false | True for KK or DJ(15th edition)/IPA(88) phonetic schemes; false for the DolphinAI phonetic scheme. | |
| ├─ text | string | None | Specified word. | |
| ├─ phonemes | string | None | Pronunciation of specified words; separate multiple pronunciations with a vertical line ` | `. |
Example:
{
"mode": "qa",
"stem": {
"para": "Surtsey was born in 1963. Scientists saw the birth of this island. It began in the morning. A fishing boat was near Iceland. The boat moved under the captain's feet. He noticed a strange smell. He saw some black smoke. A volcano was breaking out.",
"question": "What is Surtsey?"
},
"answer": [
{"text": "It's an island not far from Iceland."},
{"text": "It's an island near Iceland."}
],
"keyword": [
{"text": "island"}
],
"distractor": [
{"text": "volcano"},
{"text": "captain"},
{"text": "boat"}
],
"pronunciation": [
{
"ipa": false,
"text": "not",
"phonemes": "n oo t"
}
]
}Evaluation Results
| Field | Type | Description |
|---|---|---|
| taskId | string | Task ID |
| timestamp | integer | Task timestamp |
| audioUrl | string | Audio address (returned only when audioUrl=true is set).Note: Audio is retained for 30 days by default, it is recommended to download it to your server for long-term preservation. |
| params | dict | Connection and request parameters object |
| audioInfo | dict | Audio quality information object |
| overall | double | Total score (range determined by scoring system) |
| fluency | double | Fluency (range determined by scoring system) |
| accuracy | double | Accuracy (range determined by scoring system) |
| integrity | double | Integrity (range determined by scoring system) |
| wpm | integer | Speed rate, unit: "words per minute" |
| grammar | double/integer | Grammar score (range determined by scoring system) Evaluation of the grammatical structure of the user's actual pronunciation |
| waveTime | integer | Actual recording duration (ms) |
| startTime | integer | The position where the start of the read in a recording (ms) |
| endTime | integer | The position where the end of the read in a recording (ms) |