We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 368a4d2 + 2b3d2ac commit 7cdada1Copy full SHA for 7cdada1
chatbotv2/my_seq2seq_v2.py
@@ -16,7 +16,6 @@
16
max_w = 50
17
float_size = 4
18
word_vector_dict = {}
19
-trained_word_vector_dict = {}
20
word_vec_dim = 200
21
max_seq_len = 8
22
word_set = {}
@@ -96,11 +95,9 @@ def init_seq(input_file):
96
95
for word in line_question.decode('utf-8').split(' '):
97
if word_vector_dict.has_key(word):
98
question_seq.append(word_vector_dict[word])
99
- trained_word_vector_dict[word] = word_vector_dict[word]
100
for word in line_answer.decode('utf-8').split(' '):
101
102
answer_seq.append(word_vector_dict[word])
103
104
else:
105
break
106
question_seqs.append(question_seq)
0 commit comments