marekrei / sequence-labeler

Neural network sequence labeling model
252 stars 74 forks source link

theano.function() #6

Open ttslr opened 6 years ago

ttslr commented 6 years ago

I want try to change the code from line 116 in "sequence_labeler.py", from: input_vars_train = [word_ids, char_ids, char_mask, label_ids, learningrate] to input_vars_train = [word_ids, char_ids, # myowntag_ids, char_mask, # myowntag_mask, label_ids, learningrate]

and then I got this error: ValueError: dimension mismatch in args to gemm

I don't know why is this happen, can you help me to explain why is this happen?

Thank you very much! Best Regards!

marekrei commented 6 years ago

Difficult to say. What line triggers the error? Make sure you are passing the correct number of arguments to the updated train() function in sequence_labeling_experiment.py:130