(self, batch_size, seq_len)
return inputs, targets
Gets a batch of sequences for training.

        @param batch_size: The number of sequences in the batch.
        @param seq_len: The number of words in a sequence.

        @return: A tuple of arrays of shape [batch_size, seq_len].
Gets a batch of sequences for training.
Gets a batch of sequences for training .
def get_train_batch(self, batch_size, seq_len):
        """
        Gets a batch of sequences for training.

        @param batch_size: The number of sequences in the batch.
        @param seq_len: The number of words in a sequence.

        @return: A tuple of arrays of shape [batch_size, seq_len].
        """
        inputs = np.empty([batch_size, seq_len], dtype=int)
        targets = np.empty([batch_size, seq_len], dtype=int)

        for i in xrange(batch_size):
            inp, target = self.get_seq(seq_len)
            inputs[i] = inp
            targets[i] = target

        return inputs, targets
def get_train_batch ( self , batch_size , seq_len ) : inputs = np . empty ( [ batch_size , seq_len ] , dtype = int ) targets = np . empty ( [ batch_size , seq_len ] , dtype = int ) for i in xrange ( batch_size ) : inp , target = self . get_seq ( seq_len ) inputs [ i ] = inp targets [ i ] = target return inputs , targets