# How to analyze ROCstories with \`BertForQuestionAnswering\`?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-analyze-rocstories-with-bertforquestionanswering%2F1719%3E%5C
**Category:** 🤗Transformers\
**Created:** [October 23, 2020, 10:01pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-analyze-rocstories-with-bertforquestionanswering%2F1719 "2020-10-23T22:01:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![h56cho](https://avatars.discourse-cdn.com/v4/letter/h/c2a13f/32.png) [@h56cho](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fh56cho)%5C
**Post date:** [October 23, 2020, 10:01pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-analyze-rocstories-with-bertforquestionanswering%2F1719%2F1 "2020-10-23T22:01:09Z")

</div>

Hello,  
I looked at the HuggingFace documentation for the `BertForQuestionAnswering` model, and realized that the model gives out two logit outputs - start\_logits and end\_logits. How can I determine what the actual predicted answer is based on this two logits? Thank you,

---

<div class="post-metadata">

**Author:** ![Jung](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/jung/32/21989_2.png) [@Jung](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJung)%5C
**Post date:** [November 5, 2020, 3:06am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-analyze-rocstories-with-bertforquestionanswering%2F1719%2F2 "2020-11-05T03:06:39Z")

</div>

Hi, the `start_logits` indicates the (most probable) starting token , while the `end_logits` indicates the ending token. So combining start and end tokens (and every token in between), you will have the “acutal predicted answer”, which is a string in this case.
