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
0
votes
1 answer

ValueError: expected dense_22 to have shape (None, 37) but got array with shape (1000, 2)

I am currently working on a question answering system. I create a synthetic dataset that contains multiple words in the answers. But, the answers are not a span of the given context. Initially, I am planning to test it using a deep learning-based…
0
votes
1 answer

Discord.net - Status details

I have a question with the Discord.net´s Game(string name, ActivityType type, ActivityProperties flags, string details) what is the string "details" what does it? I tried to change it something but nothing changed. Yeah not the most "important"…
Just4Gamer
  • 36
  • 5
0
votes
1 answer

How to improve Allen NLP question answering performance

I am trying out Allen NLP pre-trained models for Q&A. The online demo is here : https://demo.allennlp.org/reading-comprehension I have created a python script to try out various models. python script script output Here is the benchmark summary on…
Sujee Maniyam
  • 1,093
  • 1
  • 9
  • 15
0
votes
1 answer

Split string in groups of n consecutive sentences or in small paragraph to iterate a function over it

I need to run a function over a large set of string which consists of more than 500 sentences. I would like to iterate the function after every 20 sentences. I tried many different ways but couldn't get the expected result. For example: text =…
sargupta
  • 953
  • 13
  • 25
0
votes
2 answers

While Loop of multiple user-inputted integers

The homework problem is to write a while loop that prompts the user to enter as many integers as they want and to type "q" when done, then print the sum of those integers and the number of entries. This is what I have so far... It doesn't work if…
0
votes
1 answer

My checkpoint albert files does not change when training

I train Albert model for question answering task. I have 200 thousand question-answer pairs and I use a saved checkpoint file with 2gb. I trained it on my GPU GeForce 2070 RTX with 1000 steps each time to save checkpoint, during training the…
0
votes
1 answer

(TF-IDF)How to return the five related article after calculating cosine similarity

I get a dataframe sample_df(4 columns: paper_id,title,abstract,body_text). I extracted the abstract column(~1000 words per abstract) and apply the text cleaning process. Here's my question: After finished calculating the cosine similarity between…
0
votes
1 answer

Develop Question Answer System using BERT

i'm currently developing a Question-Answer system (in Indonesian language) using BERT for my thesis. The dataset and the questions given are in Indonesian. The problem is, i'm still not clear on how the step-to-step process to develop the…
0
votes
1 answer

Combine two tensors of same dimension to get a final output tensor using trainable weights

While working on a problem related to question-answering(MRC), I have implemented two different architectures that independently give two tensors (probability distribution over the tokens). Both the tensors are of dimension (batch_size,512). I wish…
0
votes
1 answer

Low accuracy when fine-tuning BERT for question answering

I'm trying to fine-tune CamemBERT (french version of Roberta) for question answering. At the first I'm using CamemBERT model to generate the input embedding of question and text and a output linear layer to output the start and end logits that…
0
votes
2 answers

How to add custom question survey on my web

I want to add a custom questionnaire of my web for survey i am using Wix, can you suggest any particular way, My requirements are i want to add to add 20 questions and user just go through the survey and click on the right answer and submit it, then…
0
votes
1 answer

Confidence score of answer extracted using ELMo BiDAF model and AllenNLP

I'm working on a Deep Learning project where I use a bidirectional attention flow model (allennlp pretrained model)to make a question answering system.It uses squad dataset.The bidaf model extracts the answer span from paragraph.Is there any way to…
Linu Bajy
  • 1
  • 1
0
votes
1 answer

RASA Response Selectors: How to reply multiline texts?

I would like to use RASA Response Selectors for a QnA system where answers are multiline texts, not just single lines. Say a FAQ system allowing answers are paragraphs of documents. Take this Q/A example, where question is one-line: How to follow…
Giorgio Robino
  • 2,148
  • 6
  • 38
  • 59
0
votes
1 answer

The error the module 'numpy' has no attribute 'arrange' keeps on that message

I've tried but the error message keeps being: "error the module 'numpy' has no attribute 'arrange'" What is problem?
user13436954
0
votes
1 answer

KeyError: 'answers' error when using BioASQ dataset using Huggingface Transformers

I am using run_squad.py https://github.com/huggingface/transformers/blob/master/examples/run_squad.py from Huggingface Transformers for fine-tuning on BioASQ Question Answering dataset. I have converted the tensorflow weights provided by the authors…