(self)
return 'Vocab(source %d words, target %d words)' % (len(self.src), len(self.tgt))
Representation of Vocab to be used
        when printing the object.
Representation of Vocab to be used
        when printing the object.
Representation of Vocab to be used when printing the object .
def __repr__(self):
        """ Representation of Vocab to be used
        when printing the object.
        """
        return 'Vocab(source %d words, target %d words)' % (len(self.src), len(self.tgt))
def __repr__ ( self ) : return 'Vocab(source %d words, target %d words)' % ( len ( self . src ) , len ( self . tgt ) )