Mispronunciation
airtable_apply_annotations.mispronunciation
detect_mispronunciation(ground_truth, transcript, homophones=None)
Detects if the pair of ground truth and transcript is considered as a mispronunciation.
We define a mispronunciation to be either an addition (A) / substitution (S).
Ignores deletion (D), 100% match (M) and single-word GT (X), returning None
.
Also handles homophones given a pre-defined list.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ground_truth |
List[str]
|
List of ground truth words. |
required |
transcript |
List[str]
|
List of transcript words. |
required |
homophones |
List[Set[str]]
|
List of homophone families. Defaults to |
None
|
Returns:
Name | Type | Description |
---|---|---|
str |
str
|
Type of mispronunciation present. Otherwise, None. |