EmojiCluster.py
def __color_mapping(self, ignore=[], verbose=False, **kwargs):
        """
        creates a mapping which maps emoji with defined hair color and skin
        tone into the classic yellow emoji.
        """
        skin_tones = {st for st in self.skin_tones if st not in ignore}

        for e_, desc in self.emoji_desc.items():
            if e_ in ignore:
                continue
            if e_ in self.mapping:
                continue
            for tone in skin_tones:
                if tone in desc:
                    # if it is a color
                    if desc in skin_tones:
                        continue
                    d, tmp = desc.split(":")
                    e = self.rev_emoji_desc[d]
                    self.mapping[e_] = e

        creates a mapping which maps emoji with defined hair color and skin
        tone into the classic yellow emoji.
        
creates a mapping which maps emoji with defined hair color and skin
tone into the classic yellow emoji.
creates a mapping which maps emoji with defined hair color and skin tone into the classic yellow emoji .
def __color_mapping(self, ignore=[], verbose=False, **kwargs):
        skin_tones = {st for st in self.skin_tones if st not in ignore}
        for e_, desc in self.emoji_desc.items():
            if e_ in ignore:
                continue
            if e_ in self.mapping:
                continue
            for tone in skin_tones:
                if tone in desc:
                    if desc in skin_tones:
                        continue
                    d, tmp = desc.split(":")
                    e = self.rev_emoji_desc[d]
                    self.mapping[e_] = e
def __color_mapping ( self , ignore = [ ] , verbose = False , ** kwargs ) : skin_tones = { st for st in self . skin_tones if st not in ignore } for e_ , desc in self . emoji_desc . items ( ) : if e_ in ignore : continue if e_ in self . mapping : continue for tone in skin_tones : if tone in desc : if desc in skin_tones : continue d , tmp = desc . split ( ":" ) e = self . rev_emoji_desc [ d ] self . mapping [ e_ ] = e
creates a mapping which maps emoji with defined hair color and skin
tone into the classic yellow emoji.
creates a mapping which maps emoji with defined hair color and skin tone into the classic yellow emoji .
"""
        creates a mapping which maps emoji with defined hair color and skin
        tone into the classic yellow emoji.
        """ # if it is a color
self
ignore
verbose