Neural Network Models For Tasks In Open-Domain And Closed-Domain Question Answering