January 2019
Intermediate to advanced
342 pages
9h 17m
English
The trained sequence-to-sequence model generated some relevant tweets in response to some input tweets. The sample inference command is shown in the following command. The data_path argument contains the location of the test input tweets:
python chatbot.py --max_vocab_size 50000 --max_seq_len 30 --embedding_dim 100 --hidden_state_dim 100 --data_path /home/santanu/chatbot/data/test.csv --outpath /home/santanu/chatbot/ --dropout 0.3 --mode inference --version v1 --load_model_from /home/santanu/chatbot/s2s_model_v1_.h5 --vocabulary_path /home/santanu/chatbot/vocabulary.pkl --reverse_vocabulary_path /home/santanu/chatbot/reverse_vocabulary.pkl --count_vectorizer_path /home/santanu/chatbot/count_vectorizer.pkl ...
Read now
Unlock full access