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

How to run 'run_squad.py' on google colab? It gives 'invalid syntax' error

I downloaded the file first using: !curl -L -O https://github.com/huggingface/transformers/blob/master/examples/legacy/question-answering/run_squad.py Then used following code: !python run_squad.py \ --model_type bert \ …
0
votes
1 answer

How to SELECT record from a table where column is equal to a value but shouldn't be equal to another value?

I have listed two different solutions to the given problem. is there any better approach to solve these types of problems? Q: GIVEN EMPLOYEE TABLE below, SELECT name whose id = 1 but not = 3 -- ID NAME -- 1 ram -- 2 shayam -- 1 mohan -- 7…
0
votes
0 answers

How to use pre-trained BERT question-answering model for text extraction in Python?

So, let's say I have a following csv dataset. I have to use pre-trained BERT question-answering model to train , predict and finally evaluate. As, I am new to this it would be helpful to see similar project to understand and work myself on my…
0
votes
1 answer

Bert using transformer's pipeline and encode_plus function

when I use: modelname = 'deepset/bert-base-cased-squad2' model = BertForQuestionAnswering.from_pretrained(modelname) tokenizer = AutoTokenizer.from_pretrained(modelname) nlp = pipeline('question-answering', model=model, tokenizer=tokenizer) result…
0
votes
1 answer

Passage limit for Reading comprehension by using Transformer QA pretrained model in allennlp

What is the max passage limit or hardware limit to use transformer-qa model for reading comprehension in allennlp: Predictor.from_path('https://storage.googleapis.com/allennlp-public-models/transformer-qa-2020-10-03.tar.gz').predict(passage=passage,…
0
votes
1 answer

I'm using bert pre-trained model for question and answering. It's returning correct result but with lot of spaces between the text

I'm using bert pre-trained model for question and answering. It's returning correct result but with lot of spaces between the text The code is below : def get_answer_using_bert(question, reference_text): bert_model =…
0
votes
2 answers

optimal data structure for storing contacts in android phone efficiently

How would you store the contacts in an android phone if the “contact searching while typing” has to be fast and a contact can have multiple phone numbers.
0
votes
0 answers

I need a static domain like ngrok but static

I'm creating a reverse shell in c# and i don't want to put my IP on the reverse shell, even it is encrypted or something on wire shark the IP pops up (obs:i don't realy want to use it in the bad away I'm ethical just like to learn new stuff) if…
0
votes
0 answers

AttributeError: 'dict' object has no attribute '_keras_mask'

I am writing a Few shots Q&A model using Triple layer loss. I am able to train my model but when I try to predict I get the above error. I have given below experts of my code for reference. I have tried by checking the data types and other factors…
0
votes
1 answer

AttributeError: 'str' object has no attribute 'to' while training QuestionAnsweringModel from simpletransformers

I'm trying to train QuestionAnsweringModel bert-base-multilingual-uncased from simpletransformers and faced next problem: AttributeError Traceback (most recent call last) in () ---->…
0
votes
1 answer

LOCF imputation and how to fill missing entries

I'm working on the following dataset and I'm trying to fill the missing entries of the VISUAL52 variables, imputing data by LOCF method (Last Observation Carried…
12666727b9
  • 1,133
  • 1
  • 8
  • 22
0
votes
1 answer

Scratch project: To check if any word in a list is contained in an answer

I have the following Scratch project which has a "kind list" of words like: "good", "kind", "love", "come" etc. A user should be able to enter any sentence containing any of these words, and the happy face would show. Currently if the user types…
Compoot
  • 2,227
  • 6
  • 31
  • 63
0
votes
1 answer

Do Prolog coroutines have a notion of solution and therefore determinism?

@false posed an interesting challenge here in the comment section concerning determinism. He not only questions whether there is a difference between solution and answer. A distinction which might affect the notion of determinism. But also whether…
user502187
0
votes
1 answer

De-construct multiline function

I am trying to implement one of user "layzybear" indicator into a strategy. The indicator is Elder Impuls System "EIS_lb", which I have coded to v4. The goal is to set (green backgound = OK to Buy) and (red backgound = OK to Sell) and (blue…
0
votes
1 answer

How we can add numerical questions from html form to php database

I am creating one Exam system in which I want to add numerical questions from html form to mysql database , how can I achieve this , I tried with some editors but did not work attaching sample image of questions !Thanks