tf . reset_default_graph () x_raw_pos = [ "sensitive ensemble performances and good period reconstruction add up to a moving tragedy with some buoyant human moments ." ] x_raw_neg = [ "fails to convince the audience that these brats will ever be anything more than losers . " ] vocab_path = "test/data/sequence/vocab" vocab_processor = learn . preprocessing . VocabularyProcessor . restore ( vocab_path ) x_test_batch_pos = np . array ( list ( vocab_processor . transform ( x_raw_pos ))) x_test_batch_neg = np . array ( list ( vocab_processor . transform ( x_raw_neg ))) y_test_batch = [[ 1.0 , 0.0 ]]