
Traceback (most recent call last):



 "<stdin>", line 1, in <module>



 "<snip>/numpy/linalg/linalg.py", line 445, in inv


return wrap(solve(a, identity(a.shape[0], dtype=a.dtype)))

IndexError: tuple index out of range


Traceback (most recent call last):



 "main.py", line 51, in <module>


train_model(parameters, args.dataset)



 "/home/nmt-keras/nmt_keras/training.py", line 166, in train_model


nmt_model.trainNet(dataset, training_params)



 "/home/miniconda3/envs/textsum/lib/python3.6/site-packages/keras_wrapper/cnn_model.py", line 923, in trainNet

self.__train(ds, params)



 "/home/miniconda3/envs/textsum/lib/python3.6/site-packages/keras_wrapper/cnn_model.py", line 1152, in __train

initial_epoch=params['epoch_offset'])



 "/home/nmt-keras/src/keras/keras/legacy/interfaces.py", line 91, in wrapper


return func(*args, **kwargs)



 "/home/nmt-keras/src/keras/keras/engine/training.py", line 1709, in fit_generator

initial_epoch=initial_epoch)



 "/home/nmt-keras/src/keras/keras/engine/training_generator.py", line 221, in fit_generator

callbacks._call_batch_hook('train', 'end', batch_index, batch_logs)



 "/home/nmt-keras/src/keras/keras/callbacks.py", line 85, in _call_batch_hook


batch_hook(batch, logs)



 "/home/nmt-keras/src/keras/keras/callbacks.py", line 366, in on_train_batch_end

self.on_batch_end(batch, logs=logs)



 "/home/miniconda3/envs/textsum/lib/python3.6/site-packages/keras_wrapper/extra/callbacks.py", line 762, in on_batch_end

params_prediction)



 "/home/miniconda3/envs/textsum/lib/python3.6/site-packages/keras_wrapper/cnn_model.py", line 1695, in predictBeamSearchNet

data = next(data_gen)



 "/home/miniconda3/envs/textsum/lib/python3.6/site-packages/keras_wrapper/dataset.py", line 445, in generator

da_enhance_list=self.params['da_enhance_list'])



 "/home/miniconda3/envs/textsum/lib/python3.6/site-packages/keras_wrapper/dataset.py", line 4417, in getXY_FromIndices

label_smoothing=self.label_smoothing[id_out][set_name])



 "/home/miniconda3/envs/textsum/lib/python3.6/site-packages/keras_wrapper/dataset.py", line 2450, in loadTextFeaturesOneHot

y = self.loadTextFeatures(X, max_len, pad_on_batch, offset)



 "/home/miniconda3/envs/textsum/lib/python3.6/site-packages/keras_wrapper/dataset.py", line 2421, in loadTextFeatures

X_mask = np.hstack((np.ones((X_mask.shape[0], 1)), X_mask[:, :-1]))

IndexError: tuple index out of range

