PrashantRanjan09 / Improved-Word-Embeddings

Improving Word Embeddings by combining word embeddings with their POS (Part Of Speech) tag.
18 stars 7 forks source link

Embedding dropout #4

Open peterjmayhew opened 3 years ago

peterjmayhew commented 3 years ago

The following code pos_function.py, line 64 embed_seq_pos = Embedding(self.pos_output_dim,self.pos_input_dim,input_length=self.max_len, dropout=0.2,trainable=self.pos_trainable_param)(input_seq_pos)

Produces the following error message TypeError: ('Keyword argument not understood:', 'dropout')

Keras API https://keras.io/api/layers/core_layers/embedding/ does not include dropout as an argument.

Please confirm, thanks. Peter

irinaguseva commented 10 months ago

Unfortunately, I have also obtained such an error. The probable way to avoid the error is to omit a dropout argument completely, but I seriously doubt whether it's okay for model training.