{
  "id": 116325,
  "title": "How accurate are the annotations of answers in the training data?",
  "url": "/competitions/tensorflow2-question-answering/discussion/116325",
  "author_name": "",
  "post_date": "2019-11-08T12:14:59.318665400Z",
  "votes": 1,
  "comment_count": 3,
  "views": 0,
  "content": "<p>If you see the answers based on the annotations, I quite dont understand its accuracy.</p>\n\n<p>I used this kernel to load the jsonline file to dataframe, : <a href=\"https://www.kaggle.com/xhlulu/tf-qa-jsonl-to-dataframe\">https://www.kaggle.com/xhlulu/tf-qa-jsonl-to-dataframe</a></p>\n\n<p>Code to extract the answers from document_text: \n<code>\nfor i,j in zip(train['question_text'],train.apply(lambda x : x['document_text'][x['long_answer_start']:x['long_answer_end']],1)):\n    if j =='':\n        continue\n    print('Q:'+i,'A:'+j,sep='\\n')\n</code></p>\n\n<p>I don't understand the answers, they dont make sense to me. Am I missing something here ?</p>\n\n<p>```\nQ:who is deputy cm of j and k\nA: r of Jammu and Kashmir - Wikipedia </p><h1> Deputy chief Minister <p></p>\n\n<p>Q:when did the nba 3 second rule start\nA: ve - second rule of food hygiene , or th</p>\n\n<p>Q:where does the phrase bob's your uncle come from\nA: H1&gt; Bob 's your uncle </p></h1> Jump to : navigation , search For other uses , se<p></p>\n\n<p>Q:what year did the movie deuces come out\nA: Directed by   Jamal Hill    </p>\n\n<p>Q:who played the bank robber in dirty harry\nA: ited States &lt;</p>\n\n<p>Q:where is the best farming soil in the us and where did all the dirt come from\nA: Black Dirt Region is located in southern Orange County , New </p>\n\n<p>Q:who sings with jackson brown on the load out\nA: nning on Empty     A-side   `` Stay ''     Released   D</p>\n\n<p>```</p>",
  "messages": [
    {
      "id": "668420",
      "postDate": "11/08/2019 12:14:59",
      "content": "<p>If you see the answers based on the annotations, I quite dont understand its accuracy.</p>\n\n<p>I used this kernel to load the jsonline file to dataframe, : <a href=\"https://www.kaggle.com/xhlulu/tf-qa-jsonl-to-dataframe\">https://www.kaggle.com/xhlulu/tf-qa-jsonl-to-dataframe</a></p>\n\n<p>Code to extract the answers from document_text: \n<code>\nfor i,j in zip(train['question_text'],train.apply(lambda x : x['document_text'][x['long_answer_start']:x['long_answer_end']],1)):\n    if j =='':\n        continue\n    print('Q:'+i,'A:'+j,sep='\\n')\n</code></p>\n\n<p>I don't understand the answers, they dont make sense to me. Am I missing something here ?</p>\n\n<p>```\nQ:who is deputy cm of j and k\nA: r of Jammu and Kashmir - Wikipedia </p><h1> Deputy chief Minister <p></p>\n\n<p>Q:when did the nba 3 second rule start\nA: ve - second rule of food hygiene , or th</p>\n\n<p>Q:where does the phrase bob's your uncle come from\nA: H1&gt; Bob 's your uncle </p></h1> Jump to : navigation , search For other uses , se<p></p>\n\n<p>Q:what year did the movie deuces come out\nA: Directed by   Jamal Hill    </p>\n\n<p>Q:who played the bank robber in dirty harry\nA: ited States &lt;</p>\n\n<p>Q:where is the best farming soil in the us and where did all the dirt come from\nA: Black Dirt Region is located in southern Orange County , New </p>\n\n<p>Q:who sings with jackson brown on the load out\nA: nning on Empty     A-side   `` Stay ''     Released   D</p>\n\n<p>```</p>",
      "rawMarkdown": "If you see the answers based on the annotations, I quite dont understand its accuracy.\n\nI used this kernel to load the jsonline file to dataframe, : https://www.kaggle.com/xhlulu/tf-qa-jsonl-to-dataframe\n\nCode to extract the answers from document_text: \n```\nfor i,j in zip(train['question_text'],train.apply(lambda x : x['document_text'][x['long_answer_start']:x['long_answer_end']],1)):\n    if j =='':\n        continue\n    print('Q:'+i,'A:'+j,sep='\\n')\n```\n\nI don't understand the answers, they dont make sense to me. Am I missing something here ?\n \n```\nQ:who is deputy cm of j and k\nA: r of Jammu and Kashmir - Wikipedia <h1> Deputy chief Minister \n\nQ:when did the nba 3 second rule start\nA: ve - second rule of food hygiene , or th\n\nQ:where does the phrase bob's your uncle come from\nA: H1&gt; Bob 's your uncle </h1> Jump to : navigation , search For other uses , se\n\nQ:what year did the movie deuces come out\nA: Directed by   Jamal Hill    \n\nQ:who played the bank robber in dirty harry\nA: ited States &lt;\n\nQ:where is the best farming soil in the us and where did all the dirt come from\nA: Black Dirt Region is located in southern Orange County , New \n\nQ:who sings with jackson brown on the load out\nA: nning on Empty     A-side   `` Stay ''     Released   D\n\n```",
      "votes": null
    },
    {
      "id": "668652",
      "postDate": "11/08/2019 17:11:19",
      "content": "<p>I'm not sure what's going on for you, but this is my approach:</p>\n\n<p><code>document_text.split(' ')[answer_start:answer_end]</code></p>\n\n<p>I get these:\nwho had the most wins in the nfl ['tom', 'brady']\nhow i.met your mother who is the mother ['tracy', 'mcconnell']</p>",
      "rawMarkdown": "I'm not sure what's going on for you, but this is my approach:\n\n`document_text.split(' ')[answer_start:answer_end]`\n\nI get these:\nwho had the most wins in the nfl ['tom', 'brady']\nhow i.met your mother who is the mother ['tracy', 'mcconnell']",
      "votes": null
    },
    {
      "id": "668889",
      "postDate": "11/09/2019 02:56:08",
      "content": "<p>Sorry, I thought the annotation was character level 😅 . </p>",
      "rawMarkdown": "Sorry, I thought the annotation was character level 😅 .",
      "votes": null
    },
    {
      "id": "680526",
      "postDate": "11/24/2019 20:18:53",
      "content": "<p>Why are some long_answer_start - long_answer_end larger than the number of total number of tokens?? Is the data correct? </p>",
      "rawMarkdown": "Why are some long_answer_start - long_answer_end larger than the number of total number of tokens?? Is the data correct?",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 668652,
      "author_name": "afederation",
      "author_url": "",
      "post_date": "11/08/2019 17:11:19",
      "content": "<p>I'm not sure what's going on for you, but this is my approach:</p>\n\n<p><code>document_text.split(' ')[answer_start:answer_end]</code></p>\n\n<p>I get these:\nwho had the most wins in the nfl ['tom', 'brady']\nhow i.met your mother who is the mother ['tracy', 'mcconnell']</p>",
      "votes": null,
      "replies": [
        {
          "id": 668889,
          "author_name": "messdupfreak",
          "author_url": "",
          "post_date": "11/09/2019 02:56:08",
          "content": "<p>Sorry, I thought the annotation was character level 😅 . </p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 680526,
      "author_name": "nectario",
      "author_url": "",
      "post_date": "11/24/2019 20:18:53",
      "content": "<p>Why are some long_answer_start - long_answer_end larger than the number of total number of tokens?? Is the data correct? </p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "668420": "If you see the answers based on the annotations, I quite dont understand its accuracy.\n\nI used this kernel to load the jsonline file to dataframe, : https://www.kaggle.com/xhlulu/tf-qa-jsonl-to-dataframe\n\nCode to extract the answers from document_text: \n```\nfor i,j in zip(train['question_text'],train.apply(lambda x : x['document_text'][x['long_answer_start']:x['long_answer_end']],1)):\n    if j =='':\n        continue\n    print('Q:'+i,'A:'+j,sep='\\n')\n```\n\nI don't understand the answers, they dont make sense to me. Am I missing something here ?\n \n```\nQ:who is deputy cm of j and k\nA: r of Jammu and Kashmir - Wikipedia <h1> Deputy chief Minister \n\nQ:when did the nba 3 second rule start\nA: ve - second rule of food hygiene , or th\n\nQ:where does the phrase bob's your uncle come from\nA: H1&gt; Bob 's your uncle </h1> Jump to : navigation , search For other uses , se\n\nQ:what year did the movie deuces come out\nA: Directed by   Jamal Hill    \n\nQ:who played the bank robber in dirty harry\nA: ited States &lt;\n\nQ:where is the best farming soil in the us and where did all the dirt come from\nA: Black Dirt Region is located in southern Orange County , New \n\nQ:who sings with jackson brown on the load out\nA: nning on Empty     A-side   `` Stay ''     Released   D\n\n```",
    "668652": "I'm not sure what's going on for you, but this is my approach:\n\n`document_text.split(' ')[answer_start:answer_end]`\n\nI get these:\nwho had the most wins in the nfl ['tom', 'brady']\nhow i.met your mother who is the mother ['tracy', 'mcconnell']",
    "668889": "Sorry, I thought the annotation was character level 😅 .",
    "680526": "Why are some long_answer_start - long_answer_end larger than the number of total number of tokens?? Is the data correct?"
  },
  "source": "meta"
}