keras-chatbot-web-api icon indicating copy to clipboard operation
keras-chatbot-web-api copied to clipboard

TypeError: __init__() takes at least 2 arguments (1 given)

Open michelecafagna26 opened this issue 7 years ago • 0 comments

Sorry if a try to execute cornell_char_seq2seq_predict.py from console, I get this error from line 34: Traceback (most recent call last): File "cornell_char_seq2seq_predict.py", line 98, in main() File "cornell_char_seq2seq_predict.py", line 94, in main model = CornellCharChatBot() File "cornell_char_seq2seq_predict.py", line 34, in init encoder = LSTM(units=HIDDEN_UNITS, return_state=True, name="encoder_lstm") TypeError: init() takes at least 2 arguments (1 given)

https://github.com/chen0040/keras-chatbot-web-api/blob/4ff4769837f2019220fdc76270ca46723d46133e/chatbot_web/cornell_char_seq2seq_predict.py#L34

michelecafagna26 avatar Aug 11 '18 09:08 michelecafagna26