We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a18d332 commit 77995b6Copy full SHA for 77995b6
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