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
13
votes
3 answers

How can I handle this datasets to create a datasetDict?

I'm trying to build a datasetDictionary object to train a QA model on PyTorch. I have these two different datasets: test_dataset Dataset({ features: ['answer_text', 'answer_start', 'title', 'context', 'question', 'answers', 'id'], num_rows:…
Peppe95
  • 133
  • 1
  • 1
  • 6
11
votes
1 answer

Huggingface transformer model returns string instead of logits

I am trying to run this example from huggingface website. https://huggingface.co/transformers/task_summary.html. It seems that the model returns two strings instead of logits! and that leads to an error thrown by torch.argmax() from transformers…
11
votes
1 answer

Extracting (subject,predicate,object) from dependency tree

I'm interested in extracting triples (subject,predicate,object) from questions. For example, I would like to transform the following question : Who is the wife of the president of the USA? to : (x,isWifeOf,y) ∧ (y,isPresidentof,USA) x…
10
votes
5 answers

Is there a search engine that will give a direct answer?

I've been wondering about this for a while and I can't see why Google haven't tried it yet - or maybe they have and I just don't know about it. Is there a search engine that you can type a question into which will give you a single answer rather…
6
votes
1 answer

Sliding window for long text in BERT for Question Answering

I've read post which explains how the sliding window works but I cannot find any information on how it is actually implemented. From what I understand if the input are too long, sliding window can be used to process the text. Please correct me if I…
6
votes
0 answers

Translate Natural English into Gremlin Graph Traversal Language

I am doing some research on how to translate user's input in plain English into Graph Traversal Language, especially Gremlin. However, I cannot find any research papers or source code related with that. Can someone provide me some research papers or…
6
votes
4 answers

Natural Language Understanding API

I am unaware if such an API or service exists currently so this is a vague question, my apologies. I have a PHP script that works with Freebase and I was wondering if I can enable it so a user can ask a question on my site which will be…
6
votes
3 answers

How to implement Knowledge graph

I'm looking forward to implement something like google direct answers which uses knowledge graph, is there any useful resource can I read ? also Where can I find data for that?
Lisa
  • 3,121
  • 15
  • 53
  • 85
5
votes
1 answer

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…
5
votes
1 answer

what does it mean by "debug = require('debug')('api:server')"

I was reading some code of a project to learn node.js then I found this line (debug = require('debug')('api:server')) which is enclosed in brackets. As I'm new to programming and when I don't know something I just search it on the web, but I…
5
votes
1 answer

Train neural network with sentences of different length in a QA system

I'm trying to implement a QA system following the instructions showed on this paper. I've correctly imported some datasets and converted the words in vectors with the word2vec method. After the word embedding there is the need to insert the…
Luca Di Liello
  • 1,486
  • 2
  • 17
  • 34
4
votes
1 answer

How to resolve the error related to frame used in zstandard which requires too much memory for decoding

To download the data related to questions and answers, I am following the script on facebook/ELI5. There it says to run the command: python download_reddit_qalist.py -Q. On running this command, I get an error on line number 70 in python file…
akshit bhatia
  • 573
  • 6
  • 22
4
votes
1 answer

NLP/Quest. Answering - Retrieving information from DB

I've been doing a bit of reading up on NLP recently, and so far I've got a (very) basic idea of how everything works, ranging from sentence splitting to POS-tagging, and also knowledge representation. I understand that there's a wide diversity of…
matt
  • 2,857
  • 7
  • 33
  • 58
3
votes
2 answers

knowledge based Q-A system not giving most appropriate answer

I am working on a project which is basically a knowledge based question answering system. My system takes query from the user, download the relevant documents from Wikipedia, strips all the html tags and extracts the plain text. After this, it…
batman
  • 703
  • 1
  • 9
  • 27
3
votes
2 answers

Deploying (and hosting) a LangChain code on StreamLit throws PydanticUserError

I built a pdf document question-answering using LangChain, OpenAI (embeddings and LLM) and Chroma (for storing the vector embeddings) and UI with StreamLit. I am trying to deploy and host the webapp using StreamLit cloud services. And on installing…
1
2 3
16 17