Docs menu
Question Types / Japanese Basic

Japanese Sentence Evaluation Question Type

View Markdown
  • This document is for developing the Japanese sentence evaluation question type.

Applicable Scenarios

  • Display a sentence to the test taker and shave them read it aloud.
  • Score Japanese sentences, supporting Hiragana, Katakana, and loanwords.
  • Evaluate overall pronunciation accuracy, fluency, completeness, word-level accuracy, and phoneme-level accuracy.
  • When the comparison feature is enabled, assess the correlation between the test taker's pronunciation and the standard audio in terms of volume, intonation, and speech rate.
  • The option to enable real-time result return can be set in the evaluation parameters.

Question Type Restrictions

  • Audio submissions should not exceed 400 seconds, and the reference text should not exceed 10,000 characters.

Question Type Parameters

FieldTypeRequiredDefaultDescription
modestringYes"sentence" indicates the Japanese sentence evaluation type
refTextstringYesReference text for scoring, supports one or multiple sentences
phonemesbooleanNofalseWhether to return phoneme information, default is not to return, set to true to return phoneme information
realtime_fullbooleanNofalseWhether to return full real-time results, needs to be used with the public parameter 'realtime'
pronunciationlist<dict>NoNoneConfiguration for specifying pronunciation of characters and symbols
├─ textstringNoNoneSpecified character, word, or symbol for pronunciation
├─ phonemesstringNoNonePronunciation of specified characters or words. Supports the p and t tags; see Japanese Special Annotation Format.

Example:

{
  "mode":"sentence",
  "refText":"こんにちは、お会いできて嬉しいです",
  "phonemes":true
}

Evaluation Results

FieldTypeDescription
taskIdstringTask ID
timestampintegerTask timestamp
audioUrlstringAudio URL (returned only when audioUrl=true in question type parameters)

Note:
Audio is retained for 30 days by default. For permanent storage, download to your own server.
paramsdictConnection and request parameter object
audioInfodictAudio quality information object
refTextstringReference text
hypothesisstringActual text read
overalldouble/integerOverall score (range determined by scoring system)
accuracydouble/integerAccuracy score (range determined by scoring system)
wpmintegerWords per minute
fluencydictFluency Score Object
├─ overalldouble/integerFluency score (range determined by scoring system)
├─ pauseintegerNumber of pauses
├─ speedintegerSpeaking speed (0: slow, 1: normal, 2: fast)
integritydouble/integerCompleteness score (range determined by scoring system)
tone [New]double/integerOverall pitch accent score
waveTimeintegerActual recording duration (ms)
startTimeintegerStart position in a recording segment (ms)
endTimeintegerStop position in a recording segment (ms)
characterslist<dict>Word Information Object Array (see below)

characters (Word Information) Fields

FieldTypeDescription
refTextstringReference text
hypothesisstringActual text read
overalldouble/integerTotal score for the word (range determined by scoring system)
fluencydouble/integerWord fluency score (range determined by scoring system)
accuracydouble/integerWord accuracy score (range determined by scoring system)
integritydouble/integerWord completeness score (range determined by scoring system)
typestringPhoneme Pronunciation Types:
① Normal Reading: normal
② Skipped Reading: delete
③ Repeated Reading: repeat
④ Out-of-vocabulary: oov
startTimeintegerStart time (ms)
endTimeintegerEnd time (ms)
startIndexintegerIndex of the first character in refText, starting from 0
endIndexintegerIndex of the last character in refText, starting from 0
ref_tonestringPitch accent from the dictionary, can be empty or ◎, ①, ②, ③, ④, ⑤, ⑥; represented by "", "0", "1", "2", "3", "4", "5", "6", or combinations like "0/1". Empty means no matching pitch accent found in the dictionary
tone_score [New]double/integerWord-level pitch accent score
phonemeslist<dict>Array of phoneme information objects, returned only if phonemes are enabled (set to true). Returns an empty array when type is oov
├─ phonemestringPhoneme information (Hiragana display)
├─ pronstringPhoneme information (Katakana display)
├─ toneintegerReference pitch, 0: low pitch, 1: high pitch
├─hypothesisstringActual phoneme read
├─ scoredouble/integerPhoneme score (range determined by scoring system)
├─ startTimeintegerStart time (ms)
├─ endTimeintegerEnd time (ms)

Real-time Results

FieldTypeDescription
taskIdstringTask ID
timestampintegerTask timestamp
hypothesisstringText content already read
wordInfolistWord Information Objects
├─ indexintegerCorresponding word number in params.refText
├─startIndexintegerIndex of the first character in refText, starting from 0
├─endIndexintegerIndex of the last character in refText, starting from 0
├─ refTextstringReference text
├─ scoredouble/integerWord score
├─ typestringPhoneme Pronunciation Types:
① Normal Reading: normal
② Skipped Reading: delete
③ Repeated Reading: repeat
④ Out-of-vocabulary: oov