NeuralQA: A Usable Library for Question Answering (Contextual Query Expansion + BERT) on Large Datasets

Victor Dibia
7/30/2020
cs.CLcs.AIcs.HC

Official code: victordibia/neuralqa (235 stars, JavaScript, MIT, last commit 2023-06-07).

Abstract

Existing tools for Question Answering (QA) have challenges that limit their use in practice. They can be complex to set up or integrate with existing infrastructure, do not offer configurable interactive interfaces, and do not cover the full set of subtasks that frequently comprise the QA pipeline (query expansion, retrieval, reading, and explanation/sensemaking).

Show full abstract

To help address these issues, we introduce NeuralQA - a usable library for QA on large datasets. NeuralQA integrates well with existing infrastructure (e.g., ElasticSearch instances and reader models trained with the HuggingFace Transformers API) and offers helpful defaults for QA subtasks. It introduces and implements contextual query expansion (CQE) using a masked language model (MLM) as well as relevant snippets (RelSnip) - a method for condensing large documents into smaller passages that can be speedily processed by a document reader model. Finally, it offers a flexible user interface to support workflows for research explorations (e.g., visualization of gradient-based explanations to support qualitative inspection of model behaviour) and large scale search deployment. Code and documentation for NeuralQA is available as open source on Github (https://github.com/victordibia/neuralqa}{Github).

View on arXivView PDF

Code Implementations(1)

MIT

NeuralQA: A Usable Library for Question Answering on Large Datasets with BERT

23531JavaScript, PythonMay 19, 20203 years agoMIT
bert-modeldeep-learningelastic-searchinformation-retrievalnatural-language-processing

Similar Papers

Cite this paper

@article{dibia2020neuralqa,
  title  = {NeuralQA: A Usable Library for Question Answering (Contextual Query Expansion + BERT) on Large Datasets},
  author = {Victor Dibia},
  year   = {2020},
  eprint = {2007.15211},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2007.15211}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2007.15211.svg)](https://codeofpaper.com/paper/2007.15211)

Discussion