class documentation
class BabelAudio:
An audio item in BabelNet.
| Static Method | get |
Get the response code for an input URL string. |
| Method | __init__ |
init method |
| Instance Variable | filename |
Audio filename associated. |
| Instance Variable | language |
Lemma language. |
| Instance Variable | lemma |
Lemma pronounced. |
| Property | url |
The full URL of this BabelAudio. |
| Property | validated |
A valid URL for the audio file. |
| Class Method | _test |
Check whether a given URL exists, namely whether it does return a 404 error code. |
| Method | __eq__ |
Undocumented |
| Method | __hash__ |
Undocumented |
| Method | __repr__ |
Undocumented |
| Method | __str__ |
Undocumented |
| Method | _create |
Create a full-fledged URL. |
| Method | _retrieve |
Retrieve an url |
| Constant | _HTTP |
HTTP prefix (str). |
| Constant | _REG |
Regular expression (str). |
| Constant | _URL |
Wikimedia Commons URL (str). |
| Constant | _URL |
The default audio URL (str). |
| Instance Variable | _url |
the url |
| Instance Variable | _url |
the validated url |