'See parent class.'

def _get_samples(self, model, length=30, temp=1, *inps):

    if (not hasattr(model, 'word_indxs_src')):
        model.word_indxs_src = model.word_indxs
    character_level = False
    if hasattr(model, 'character_level'):
        character_level = model.character_level
    if model.del_noise:
        model.del_noise()
    [values, probs] = model.sample_fn(length, temp, *inps)
    if (values.ndim > 1):
        for d in xrange(2):
            print ('%d-th    sentence' % d)
            print 'Input:    ',
            if character_level:
                sen = []
                for k in xrange(inps[0].shape[0]):
                    if (model.word_indxs_src[inps[0][k][d]] == '<eol>'):
                        break
                    sen.append(model.word_indxs_src[inps[0][k][d]])
                print ''.join(sen),
            else:
                for k in xrange(inps[0].shape[0]):
                    print model.word_indxs_src[inps[0][k][d]],
                    if (model.word_indxs_src[inps[0][k][d]] == '<eol>'):
                        break
            print ''
            print 'Output:    ',
            if character_level:
                sen = []
                for k in xrange(values.shape[0]):
                    if (model.word_indxs[values[k][d]] == '<eol>'):
                        break
                    sen.append(model.word_indxs[values[k][d]])
                print ''.join(sen),
            else:
                for k in xrange(values.shape[0]):
                    print model.word_indxs[values[k][d]],
                    if (model.word_indxs[values[k][d]] == '<eol>'):
                        break
            print
            print
    else:
        print 'Input:        ',
        if character_level:
            sen = []
            for k in xrange(inps[0].shape[0]):
                if (model.word_indxs_src[inps[0][k]] == '<eol>'):
                    break
                sen.append(model.word_indxs_src[inps[0][k]])
            print ''.join(sen),
        else:
            for k in xrange(inps[0].shape[0]):
                print model.word_indxs_src[inps[0][k]],
                if (model.word_indxs_src[inps[0][k]] == '<eol>'):
                    break
        print ''
        print 'Output:    ',
        if character_level:
            sen = []
            for k in xrange(values.shape[0]):
                if (model.word_indxs[values[k]] == '<eol>'):
                    break
                sen.append(model.word_indxs[values[k]])
            print ''.join(sen),
        else:
            for k in xrange(values.shape[0]):
                print model.word_indxs[values[k]],
                if (model.word_indxs[values[k]] == '<eol>'):
                    break
        print
        print
