From 3c130b080099f27ee10898d4c65d8e7b7ca19380 Mon Sep 17 00:00:00 2001 From: naelsondouglas Date: Tue, 2 Nov 2021 19:50:48 -0300 Subject: [PATCH] removed a pitfall where a built-in name was being shadowed --- a08_predict_ensemble.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/a08_predict_ensemble.py b/a08_predict_ensemble.py index 24506ab..ce7818d 100644 --- a/a08_predict_ensemble.py +++ b/a08_predict_ensemble.py @@ -75,8 +75,8 @@ def main(_): test= load_data_predict(vocabulary_word2index,vocabulary_word2index_label,questionid_question_lists) testX=[] question_id_list=[] - for tuple in test: - question_id,question_string_list=tuple + for data in test: + question_id,question_string_list=data question_id_list.append(question_id) testX.append(question_string_list) # 2.Data preprocessing: Sequence padding