freesunshine0316 / nary-grn

Code regarding to our paper "N-ary Relation Extraction using Graph State LSTM"
96 stars 27 forks source link

no attribute 'dag_hidden_dim' #9

Open wt123u opened 5 years ago

wt123u commented 5 years ago

Hi @freesunshine0316 , Thanks for sharing ! I encountered an error while running the code, as follows:

nary-grn-master/bidir_dag_lstm/dag_encoder_utils.py", line 160, in init w_trans = tf.get_variable("w_trans", [input_dim + edge_dim, options.dag_hidden_dim], dtype=tf.float32) AttributeError: 'Bunch' object has no attribute 'dag_hidden_dim'

Looking forward for your reply.

freesunshine0316 commented 5 years ago

Hi, thank you for your interest. It can be easily fixed by changing "options.dag_hidden_dim" to "options.neighbor_vector_dim". I'm a little bit busy right now, and will fix and update shortly.