preprocessing.py
def generate_char_to_int_dictionary(self, data):
        """Creates the mapping of unique characters to unique integers
        """
        # Sets are unordered collections of unique elements
        charSet = set(data)
        # Put the set into a list and sort it
        chars = list(charSet)
        vocab = sorted(chars)
        # FileHelper.save_object_to_file('preprocessingCheckpoints/vocab', vocab)
        FileHelper.save_object_to_file(
            self.config['preprocessing']['checkpoints']['vocabulary_file'], vocab)

        chars_len = len(data)
        vocab_len = len(vocab)
        print('Input data consists of %d Total Characters and a Vocabular of %d Characters' % (
            chars_len, vocab_len))
        return dict((character, index) for index, character in enumerate(vocab))
Creates the mapping of unique characters to unique integers
        
Creates the mapping of unique characters to unique integers
Creates the mapping of unique characters to unique integers
def generate_char_to_int_dictionary(self, data):
        charSet = set(data)
        chars = list(charSet)
        vocab = sorted(chars)
        FileHelper.save_object_to_file(
            self.config['preprocessing']['checkpoints']['vocabulary_file'], vocab)
        chars_len = len(data)
        vocab_len = len(vocab)
        print('Input data consists of %d Total Characters and a Vocabular of %d Characters' % (
            chars_len, vocab_len))
        return dict((character, index) for index, character in enumerate(vocab))
def generate_char_to_int_dictionary ( self , data ) : charSet = set ( data ) chars = list ( charSet ) vocab = sorted ( chars ) FileHelper . save_object_to_file ( self . config [ 'preprocessing' ] [ 'checkpoints' ] [ 'vocabulary_file' ] , vocab ) chars_len = len ( data ) vocab_len = len ( vocab ) print ( 'Input data consists of %d Total Characters and a Vocabular of %d Characters' % ( chars_len , vocab_len ) ) return dict ( ( character , index ) for index , character in enumerate ( vocab ) )
Creates the mapping of unique characters to unique integers
Creates the mapping of unique characters to unique integers
"""Creates the mapping of unique characters to unique integers
        """ # Sets are unordered collections of unique elements # Put the set into a list and sort it # FileHelper.save_object_to_file('preprocessingCheckpoints/vocab', vocab)
self
data