Hironsan / anago

Bidirectional LSTM-CRF and ELMo for Named-Entity Recognition, Part-of-Speech Tagging and so on.
https://anago.herokuapp.com/
MIT License
1.48k stars 371 forks source link

model.fit problem in google colab #145

Open Ali-khn opened 2 years ago

Ali-khn commented 2 years ago

System information

Google Colab

Describe the problem

When I tried to do : "%cd "/content/anago" model.fit(x_train, y_train, epochs=15)" this error accured: /content/anago/anago/layers.py in build(self, input_shape) 180 initializer=self.kernel_initializer, 181 regularizer=self.kernel_regularizer, --> 182 constraint=self.kernel_constraint) 183 self.chain_kernel = self.add_weight((self.units, self.units), 184 name='chain_kernel',

TypeError: add_weight() got multiple values for argument 'name'

Source code / logs

I tried to follow the instructions given in the github repository of anago. Any help how to run this repository properly would be appreciated. Thanks