Skip to content

Commit 77995b6

Browse files
author
lichuang
committed
delete trained_word_vector_dict
1 parent a18d332 commit 77995b6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

chatbotv2/my_seq2seq_v2.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
max_w = 50
1717
float_size = 4
1818
word_vector_dict = {}
19-
trained_word_vector_dict = {}
2019
word_vec_dim = 200
2120
max_seq_len = 8
2221
word_set = {}
@@ -96,11 +95,9 @@ def init_seq(input_file):
9695
for word in line_question.decode('utf-8').split(' '):
9796
if word_vector_dict.has_key(word):
9897
question_seq.append(word_vector_dict[word])
99-
trained_word_vector_dict[word] = word_vector_dict[word]
10098
for word in line_answer.decode('utf-8').split(' '):
10199
if word_vector_dict.has_key(word):
102100
answer_seq.append(word_vector_dict[word])
103-
trained_word_vector_dict[word] = word_vector_dict[word]
104101
else:
105102
break
106103
question_seqs.append(question_seq)

0 commit comments

Comments
 (0)