Questions tagged [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

164 questions
1
vote
0 answers

Does a framework speed in another language worth to learn and use?

In today world we have such a lot Programming language's and frameworks for any job we think but this question focus is on web development frameworks. That we have around hundreds of frameworks and libraries in this filed with vary options and…
Sina
  • 773
  • 2
  • 17
1
vote
0 answers

TypeError: argmax(): argument 'input' (position 1) must be Tensor, not str

My code was working fine and when I tried to run it today without changing anything I got the following error: TypeError: argmax(): argument 'input' (position 1) must be Tensor, not str Would appreciate if help could be provided. below is the code…
1
vote
0 answers

Training a model on an entire dataset by dividing the dataset into chunks & loading the model back again untill all chunks of the dataset are trained

This is my first question on StackOverflow. I am working on the CUAD(Contract Understanding Atticus Dataset) which is a Q&A based dataset. But training 80% of the dataset in one go is impossible due to resource constraints. I am using the…
1
vote
1 answer

How to map token indices from the SQuAD data to tokens from BERT tokenizer?

I am using the SQuaD dataset for answer span selection. After using the BertTokenizer to tokenize the passages, for some samples, the start and end indices of the answer don't match the real answer span position in the passage tokens anymore. How to…
1
vote
0 answers

Natural Language Processing technique for rephrasing question-answer pairs as full sentence?

Is there an NLP technique for rephrasing question-answer pairs as a full and grammatically correct sentence? For example: Question: Where does Joe live? Answer: Joe lives in Los Angeles. I’ve looked into Answer Ellipsis, which is essentially the…
ABCD
  • 43
  • 5
1
vote
0 answers

Treatment asa binary variable

Could anyone may help me to fix this error? Error: The treatment must be a binary variable. Trying keeping on running such following code lines and cannot figure out where the problem is and why this is occurring, although after running the mutate…
1
vote
1 answer

Evaluation metrics for multiple correct answers in QA problem system

I'm building a QA machine and I have my own data for this task. I have a problem that 1 question can have 2 or more answers. For example: Questions: "What does A have to do?" Correct answers: "A have to clean the floor" "A have to hang up the…
Thanh Kiet
  • 41
  • 5
1
vote
0 answers

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…
1
vote
11 answers

How to handle CSV files in this Python script

Using the CSV file of flowers again, fill in the gaps of the contents_of_file function to process the data, without turning it into a dictionary. How do I skip over the header record with the field names? import os import csv # Create a file with…
user12099710
1
vote
1 answer

How to add pooling layer to BERT QA for large text

I'm trying to implement a Question answering system that deal with large input text: so the idea is to split the large input text into subsequences of 510 tokens, after I will generate the representation of each sequence independently and using a…
1
vote
1 answer

Need help debugging "attribute parser"! C++ Question from HackerRank

Attempted to solve one of the medium-level difficulty questions. It's newbie code. I basically tried to code an attribute parser for a madeup markup language, where you're supposed to retrieve the a tag's attribute value by querying it. I tried…
runtimeX
  • 19
  • 3
1
vote
1 answer

Does coding really require logic or some part of it is a copy-paste game?

I am new to programming and I have some doubts about it. I have read hundreds of time that coding is really mind dependent or it is logic game and critical thinking is a must have skill for it, but somehow I wonder if that is really true. For e.g. I…
1
vote
1 answer

Ask dynamic questions for information acquisition

I am developing a chatbot that asks the user the information that is not there in the database. Consider the database has 40 details for every person: Name, Age, Fav food, Fav Restaurant, Fav city, Reason for Fav City, Four the most liked things in…
hawk
  • 110
  • 8
1
vote
1 answer

Value constructors in haskell

I have a question about Haskell. I'm new so I don't understand too well, but if anyone could help me I'd really appreciate. I have this exercise from a book that I bought. Create a type Question with value contructors Sim or Nao. Make a function…
1
vote
0 answers

How to turn off node interface in one simulator

i want to turn off movement and interface of a node, and here i using activeTime=0,1800,25000,42300 settings, the movement inactive but the interface is active. what should i do? is there something missing in the settings section? or how? can you…
1 2
3
10 11