# Question answeriung model, unanswerable question answer formatformat

**URL:** <https://discuss.huggingface.co/t/question-answeriung-model-unanswerable-question-answer-formatformat/64093>\
**Category:** 🤗Datasets\
**Created:** [November 30, 2023, 7:52am UTC](https://discuss.huggingface.co/t/question-answeriung-model-unanswerable-question-answer-formatformat/64093 "2023-11-30T07:52:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nevermetyou](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/nevermetyou/32/21618_2.png) [@Nevermetyou](https://discuss.huggingface.co/u/Nevermetyou)\
**Post date:** [November 30, 2023, 7:52am UTC](https://discuss.huggingface.co/t/question-answeriung-model-unanswerable-question-answer-formatformat/64093/1 "2023-11-30T07:52:56Z")

</div>

Hello, I am working with question answering model right now and I am new to this kind of task.

If I have a question that can not be answered using the provided context, what is the format of answer?  
For examples in squad dataset

```auto
question: To whom did the Virgin Mary allegedly appear in 1858 in Lourdes France?
answer: { "text": ["Saint Bernadette Soubirous"], "answer_start": [515] }

```

but what if this question can not be answer, how should I prepare answer: … ?  
Should it be something like `answer: { "text": [], "answer_start": [-1] }` ??

---

<div class="post-metadata">

**Author:** ![tantb](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tantb](https://discuss.huggingface.co/u/tantb)\
**Post date:** [May 7, 2024, 7:02pm UTC](https://discuss.huggingface.co/t/question-answeriung-model-unanswerable-question-answer-formatformat/64093/2 "2024-05-07T19:02:53Z")

</div>

Do you have the answer to this problem?

---

<div class="post-metadata">

**Author:** ![Nevermetyou](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/nevermetyou/32/21618_2.png) [@Nevermetyou](https://discuss.huggingface.co/u/Nevermetyou)\
**Post date:** [May 8, 2024, 1:08am UTC](https://discuss.huggingface.co/t/question-answeriung-model-unanswerable-question-answer-formatformat/64093/3 "2024-05-08T01:08:10Z")

</div>

Yes, I found this dataset.

> **[rajpurkar/squad\_v2 · Datasets at Hugging Face](https://huggingface.co/datasets/rajpurkar/squad_v2)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

There are some questions that have no answer. You can see the format.

---

<div class="post-metadata">

**Author:** ![tantb](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tantb](https://discuss.huggingface.co/u/tantb)\
**Post date:** [May 8, 2024, 2:43am UTC](https://discuss.huggingface.co/t/question-answeriung-model-unanswerable-question-answer-formatformat/64093/4 "2024-05-08T02:43:55Z")

</div>

I see, thank you 😍
