Modified text_data_experiment to work with new RBM