class documentation

class BabelImageSource(Enum):

View In Hierarchy

Sources for BabelNet images, sorted by priority.

Class Method get_license Return the license for a given image source.
Method __init__ init method
Constant BABELNET BabelNet image.
Constant BABELPIC_GOLD BabelPic gold image.
Constant BABELPIC_SILVER BabelPic silver image
Constant IMAGENET ImageNet image.
Constant OMWIKI OmegaWiki image.
Constant WIKI Wikipedia image.
Constant WIKIDATA Wikidata image.
Instance Variable ordinal the ordinal
Method __repr__ Undocumented
Method __str__ Undocumented
@classmethod
def get_license(cls, source):

Return the license for a given image source.

Parameters
source:BabelImageSourceImage source.
Returns
BabelLicenseThe BabelLicense for the image source.
def __init__(self, ordinal):

init method

Parameters
ordinal:intthe ordinal
BABELNET: BabelImageSource =

BabelNet image.

Value
0
BABELPIC_GOLD: BabelImageSource =

BabelPic gold image.

Value
5
BABELPIC_SILVER: BabelImageSource =

BabelPic silver image

Value
6
IMAGENET: BabelImageSource =

ImageNet image.

Value
3
OMWIKI: BabelImageSource =

OmegaWiki image.

Value
1

Wikipedia image.

Value
2
WIKIDATA: BabelImageSource =

Wikidata image.

Value
4
ordinal: int =

the ordinal

def __repr__(self):

Undocumented

def __str__(self):

Undocumented