singhranjodh / acl2017-non-factoid-qa

Code for paper "End-to-End Non-Factoid Question Answering with an Interactive Visualization of Neural Attention Weights"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

End-to-End Non-Factoid Question Answering with an Interactive Visualization of Neural Attention Weights

This project contains multiple components that, together, build an end-to-end question answering system. A special emphasis lies on the visualization and interactive comparison of neural attention weights.

Please use the following citation:

@InProceedings{rueckle:2017:ACL,
  title = {End-to-End Non-Factoid Question Answering with an Interactive Visualization of Neural Attention Weights},
  author = {R{\"u}ckl{\'e}, Andreas and Gurevych, Iryna},
  publisher = {Association for Computational Linguistics},
  booktitle = {Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics-System Demonstrations (ACL 2017)},
  pages = {19--24},
  month = aug,
  year = {2017},
  location = {Vancouver, Canada},
  doi = "10.18653/v1/P17-4004",
  url = "http://aclweb.org/anthology/P17-4004"
}

Abstract: Advanced attention mechanisms are an important part of successful neural network approaches for non-factoid answer selection because they allow the models to focus on few important segments within rather long answer texts. Analyzing attention mechanisms is thus crucial for understanding strengths and weaknesses of particular models. We present an extensible, highly modular service architecture that enables the transformation of neural network models for non-factoid answer selection into fully featured end-to-end question answering systems. The primary objective of our system is to enable researchers a way to interactively explore and compare attention-based neural networks for answer selection. Our interactive user interface helps researchers to better understand the capabilities of the different approaches and can aid qualitative analyses.

Contact person: Andreas Rücklé

https://www.ukp.tu-darmstadt.de/

https://www.tu-darmstadt.de/

Don't hesitate to send us an e-mail or report an issue, if something is broken (and it shouldn't be) or if you have further questions.

This repository contains experimental software and is published for the sole purpose of giving additional background details on the respective publication.

Project structure

This repository contains the three sub-projects as described in the related paper:

  • Candidate-Retrieval: Indexes all answers of a data source and allows to find answers with lexical overlap to a question
  • Candidate-Ranking: Contains a framework to train neural network models for answer-selection. Contains a webservice that allows to re-rank answers in regard to their relevance to a given question.
  • QA-Frontend: The webfrontend that allows the user to ask questions and retrieve answers. All results will contain neural attention weights which researchers can view, inspect, and compare.

Each individual project has its own installation instructions in separate readme files. It is also possible to install each service on a separate machine, because the services communicate over HTTP.

To setup the project, it makes sense to first install and run the Candidate-Retrieval application, afterwards setup and train a simple neural network with the Candidate-Ranking, and finally install the QA-Frontend to pull everything together.

API Documentation

QA-Frontend uses the Candidate-Retrieval and Candidate-Ranking services to find and rank relevant answers. Both services provide a public HTTP REST APIs, which are documented in API.md. Researchers can easily substitute individual service implementations with their own approaches.

Screenshots

Answer Ranking

It is possible to query any question text and inspect the resulting neural attention weights in the question as well as the answer.

Screenshot

Side-By-Side Comparison

If multiple candidate ranking instances with different models are running, it is possible to compare the neural attention weights of both approaches side-by-side within the same window.

Screenshot

About

Code for paper "End-to-End Non-Factoid Question Answering with an Interactive Visualization of Neural Attention Weights"

License:Apache License 2.0


Languages

Language:Python 63.2%Language:Scala 17.0%Language:HTML 7.5%Language:TypeScript 6.2%Language:CSS 5.0%Language:JavaScript 1.1%