module documentation

This module contains the BabelAudio, BabelSensePhonetic classes and related data.

Class BabelAudio An audio item in BabelNet.
Class BabelSensePhonetics A class modeling audio and transcription of a BabelSense.
Function audio_from_string Transform an audio string into a pair of (language_lemma, audio_item)s.
Function transcription_from_string 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:strAudio string.
Returns
Tuple[str, BabelAudio]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:strTranscription string.
Returns
Tuple[str, str]A pair of (language_lemma, transcription)s.
Raises
RuntimeErrorif the transcription is invalid