Questions tagged [nlp-question-answering]

Question Answering is the computer task of mechanically answering questions posed in natural language. (Please do not use this tag to indicate that you have a question and want an answer. That's already implied.)

For more information, see: https://en.wikipedia.org/wiki/Question_answering

243 questions
2
votes
1 answer

Custom query with Deepstackai haystack

I am exploring deepset haystack and found it very interesting for multiple use cases like a chatbot, search engine, document search, etc But have not found any reference where I can create multiple indexes for different documents and search based on…
Varun
  • 5,001
  • 12
  • 54
  • 85
2
votes
1 answer

Input/output format for Fine Tuning Huggingface RobertaForQuestionAnswering

I'm trying to fine-tune "RobertaForQuestionAnswering" on my custom dataset and I'm confused about the input params it takes. Here's the sample code. >>> from transformers import RobertaTokenizer, RobertaForQuestionAnswering >>> import torch >>>…
2
votes
0 answers

Transformation of tabular data into natural language for indexing for a search engine

How to transform tabular data that has various columns / rows as shown below into a more readable (natural language) so that it can be indexed for the downstream tasks of a search engine. I am aware that we have TAPAS (TAPAS: Weakly Supervised Table…
2
votes
3 answers

My program not returning the value of months

What do I have to use to store months as a variable? When I run the code it says "warning character constant too long for its type". I have created a program to check how many days are in the given month so I take a value from the user and put it…
2
votes
2 answers

How to Sort Everything in an Array Except Special Chars - Ruby

I am trying to sort an array of letters alphabetically, but keep the special character in the same spot, in ruby. For example, word = ["f", "a", "s", "t", "-", "c", "a", "r", "s"] How can I sort the whole thing alphabetically, but keep the "-" where…
2
votes
2 answers

AttributeError: module 'transformers.modeling_bert' has no attribute 'gelu'

import pandas as pd from ast import literal_eval from cdqa.utils.filters import filter_paragraphs from cdqa.utils.download import download_model, download_bnpp_data from cdqa.pipeline.cdqa_sklearn import QAPipeline # Download data and…
2
votes
1 answer

C++ deleteting object in constructor?

i want to make class which has one string atributte. But if string has length more then 50 characters i dont want create object. What should i do? { if (paSlovo.length() <= DLZKA_SLOVA) aSlovo = paSlovo; else delete this; …
2
votes
1 answer

Passage Length Limit for AllenNLP Question Answering

I'm pretty new to AllenNLP and I'm currently using its pre-trained question answering model. I wonder if it has a passage length limit to ensure its performance? I know BERT will have a maximum length of 512 and will truncate longer passages. I have…
mattstack
  • 21
  • 3
2
votes
2 answers

Is there any NLP question answering dataset with multiple answers?

I'm building a QA machine. I have a problem that one question maybe have multiple answers, and the answers are located in different position in context. For example: Question: What does Chris have to do? Context: ....Chris have to wash…
2
votes
1 answer

cannot import name 'DISTILBERT_PRETRAINED_MODEL_ARCHIVE_MAP' from 'transformers.modeling_distilbert'

I am trying to train the distil BERT model for Question Answering purpose. I have installed simple transformers and everything but when I try to run the following command: model = QuestionAnsweringModel('distilbert', …
2
votes
1 answer

What does BERT's special characters appearance in SQuAD's QA answers mean?

I'm running a fine-tuned model of BERT and ALBERT for Questing Answering. And, I'm evaluating the performance of these models on a subset of questions from SQuAD v2.0. I use SQuAD's official evaluation script for evaluation. I use Huggingface…
2
votes
1 answer

Questions generation in question answering +NLP

I have a dataset (around 3K to 4K) excel files, each of them has around more or less 12K records which are combinations of FAQs, Email Conversations, comments from the blogs, chats etc. Best part is, it has 2 columns one for Questions and another…
Laxmikant
  • 2,046
  • 3
  • 30
  • 44
2
votes
1 answer

How to build input to predict with saved model for BERT SQuAD2.0 with tensorflow

I am trying to build the input for the saved model from BERT-SQuAD given that I have got all the elements for the input. I fine-tuned a question answering model by running of run_squad.py in Google bert, then I exported the model with…
2
votes
1 answer

Solr: how to type questions search?

I'm new to solr and I'm trying to build up a Question Answering system. I have indexed some Wikipedia pages, for example Nikola Tesla. https://en.wikipedia.org/wiki/Nikola_Tesla My question is: It is possible and how to type a query as a question in…
Giorgio
  • 23
  • 5
2
votes
0 answers

algorithm to google questions with three answers

I'm currently working on a little project where I get one question and three answers and one of them is correct. I need to find this one. Right now I make a request to google and search in the source code of the results for each answer.…
Michi Gruber
  • 254
  • 3
  • 18
1 2
3
16 17