Docs menu
Question Types / Japanese Basic

Japanese Paragraph Evaluation Question Type

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

Applicable Scenarios

  • Display a segment of text to the test taker and have them read it aloud.
  • Score Japanese paragraphs, supporting Hiragana, Katakana, and loanwords.
  • Evaluate overall pronunciation accuracy, fluency, completeness, and word-level accuracy scoring.
  • 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"chapter" indicates the Japanese paragraph evaluation type
refTextstringYesReference text for scoring
phonemesbooleanNofalseWhether the results include phoneme information dimension
realtime_fullbooleanNofalseWhether to return full real-time results, needs to be used with the public parameter 'realtime'
clause_signlist<string>No["。","?","!",";",".","?","!",";"]Array of clause markers, if not set, defaults to periods, question marks, exclamation points, and semicolons for clause segmentation. If the business does not require segmentation by these symbols, custom settings can be made;
All supported clause symbols are: ["。","?","!",";",".","?","!",";",",",",","\n","\t"], which includes periods, question marks, exclamation points, semicolons, commas, line breaks, and tabs.

Note: If you only want to segment by line breaks and tabs, you can set it to ["\n","\t"], provided that the evaluation text contains line breaks and tabs.
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":"chapter",
  "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)
wpmintegerWords per minute
fluencydictFluency Score Object (range determined by scoring system)
├─ overalldouble/integerFluency score (range determined by scoring system)
├─ pauseintegerNumber of pauses
├─ speedintegerSpeaking speed (0: slow, 1: normal, 2: fast)
accuracydouble/integerAccuracy score (range determined by scoring system)
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)
sentenceInfolist<dict>Sentence Information Object Array (see below)

sentenceInfo (Sentence Information) Fields

FieldTypeDescription
refTextstringReference text
hypothesisstringActual text read
overalldoubleSentence total score (range determined by scoring system)
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)
startTimeintegerStart time (ms)
endTimeintegerEnd time (ms)
typestringPhoneme Pronunciation Types:
① Normal Reading: normal
② Skipped Reading: delete
③ Repeated Reading: repeat
④ Out-of-vocabulary: oov
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", 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