We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent68b7b13 commitdedbda3Copy full SHA for dedbda3
python/dnlp/core/re_cnn.py
@@ -132,9 +132,9 @@ def fit(self, epochs=50, interval=5):
132
new_start=self.batch_size-self.data_count+start
133
indices=list(range(start,self.data_count))+list(range(0,new_start))
134
start=new_start
135
-words,primary,secondary,labels=sess.run([self.input_words,self.input_primary,self.input_secondary,
136
-self.input_labels],feed_dict={self.input_indices:indices})
137
-#words, primary, secondary, labels = self.load_batch()
+#words, primary, secondary, labels = sess.run([self.input_words,self.input_primary,self.input_secondary,
+# self.input_labels],feed_dict={self.input_indices:indices})
+words,primary,secondary,labels=self.load_batch()
138
character_embeds,primary_embeds=sess.run([self.character_lookup,self.position_lookup],
139
feed_dict={self.input_characters:words,
140
self.input_position:primary})