module documentation
This module contains the BabelAudio, BabelSensePhonetic classes and related data.
Class |
|
An audio item in BabelNet. |
Class |
|
A class modeling audio and transcription of a BabelSense. |
Function | audio |
Transform an audio string into a pair of (language_lemma, audio_item)s. |
Function | transcription |
Transform a transcription string into a pair of (language_lemma, transcription)s. |
def audio_from_string(value):
Transform an audio string into a pair of (language_lemma, audio_item)s.
Parameters | |
value:str | Audio string. |
Returns | |
Tuple[ | a pair of (language_lemma, audio_item). |
Raises | |
RuntimeError |
def transcription_from_string(value):
Transform a transcription string into a pair of (language_lemma, transcription)s.
Parameters | |
value:str | Transcription string. |
Returns | |
Tuple[ | A pair of (language_lemma, transcription)s. |
Raises | |
RuntimeError | if the transcription is invalid |