{
  "id": 2249,
  "title": "Doubt in the data of training-disambiguated-product-mentions.csv",
  "url": "/competitions/cprod1/discussion/2249",
  "author_name": "",
  "post_date": "2012-07-23T19:30:23.227Z",
  "votes": null,
  "comment_count": 1,
  "views": 1724,
  "content": "<p>@ADMIN- please reply to this..what does these in the file&nbsp;training-disambiguated-product-mentions.csv mean:-</p>\r\n<p>7b465aa355535d76323c0f89dfbec8b5:9-11,0</p>\r\n<p>7b465aa355535d76323c0f89dfbec8b5:14-16,0</p>\r\n<p>7b465aa355535d76323c0f89dfbec8b5:129-131,0</p>\r\n<p>These three document id are same, so whay are they listed so many times with different line numbers.</p>",
  "messages": [
    {
      "id": "12676",
      "postDate": "07/23/2012 19:30:23",
      "content": "<p>@ADMIN- please reply to this..what does these in the file&nbsp;training-disambiguated-product-mentions.csv mean:-</p>\r\n<p>7b465aa355535d76323c0f89dfbec8b5:9-11,0</p>\r\n<p>7b465aa355535d76323c0f89dfbec8b5:14-16,0</p>\r\n<p>7b465aa355535d76323c0f89dfbec8b5:129-131,0</p>\r\n<p>These three document id are same, so whay are they listed so many times with different line numbers.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "12688",
      "postDate": "07/24/2012 03:12:33",
      "content": "<p>The three records that you list are three distinct &quot;disambiguated product mentions&quot; - they are three distinct token spans in the training data each with an associated product list. For these three records:</p>\r\n<p>1) the product list is simply &quot;0&quot; which means that the product was not found in the product catalog,<br>\r\n2) the spans are three tokens long: 9-11; 14-16; and 129-131.<br>\r\n3) the spans are to three different product terms: &quot;DirecTiVo HD HR10-250s&quot;, &quot;DirecTV HD HR20-700s&quot;, and &quot;Panny VHS/DVD Recorder&quot; respectively (see the FYI below for a script to extract the &quot;terms&quot;).</p>\r\n<p>The CPROD1 Team</p>\r\n<p>FYI, below is a one-liner perl script that can extract the span of text for a disambiguated product mention piped into STanDard INput. It assumes that you have installed the JSON package from CPAN, and that the json file being queried is training-annotated-text.json.\r\n The script is applied to the three records that you provide.</p>\r\n<p>bash$ echo &quot;7b465aa355535d76323c0f89dfbec8b5:9-11,0&quot; | perl -e 'use JSON qw(decode<em>json) ; open $fh, &quot;../training-annotated-text.json&quot; or die; $jtext; {local $/; $jtext = &lt;$fh&gt;} $json=decode</em>json($jtext); while () { ($tiid, $stok, $etok, $prodList)\r\n = split/[\\:-\\,]/; foreach my $tokenId ($stok .. $etok) {$token=@{$json-&gt;{TextItem}-&gt;{$tiid}}[$tokenId] ; print &quot;$token &quot;}}'</p>\r\n<p>DirecTiVo HD HR10-250s</p>\r\n<p>bash$ echo &quot;7b465aa355535d76323c0f89dfbec8b5:14-16,0&quot; | perl -e 'use JSON qw(decode<em>json) ; open $fh, &quot;../training-annotated-text.json&quot; or die; $jtext; {local $/; $jtext = &lt;$fh&gt;} $json=decode</em>json($jtext); while () { ($tiid, $stok, $etok, $prodList)\r\n = split/[\\:-\\,]/; foreach my $tokenId ($stok .. $etok) {$token=@{$json-&gt;{TextItem}-&gt;{$tiid}}[$tokenId] ; print &quot;$token &quot;}}'</p>\r\n<p>DirecTV HD HR20-700s</p>\r\n<p>bash$ echo &quot;7b465aa355535d76323c0f89dfbec8b5:129-131,0&quot; | perl -e 'use JSON qw(decode<em>json) ; open $fh, &quot;training-annotated-text.json&quot; or die; $jtext; {local $/; $jtext = &lt;$fh&gt;} $json=decode</em>json($jtext); while () { ($tiid, $stok, $etok, $prodList)\r\n = split/[\\:-\\,]/; foreach my $tokenId ($stok .. $etok) {$token=@{$json-&gt;{TextItem}-&gt;{$tiid}}[$tokenId] ; print &quot;$token &quot;}}'</p>\r\n<p>Panny VHS/DVD Recorder</p>",
      "rawMarkdown": "",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 12688,
      "author_name": "cprod1",
      "author_url": "",
      "post_date": "07/24/2012 03:12:33",
      "content": "<p>The three records that you list are three distinct &quot;disambiguated product mentions&quot; - they are three distinct token spans in the training data each with an associated product list. For these three records:</p>\r\n<p>1) the product list is simply &quot;0&quot; which means that the product was not found in the product catalog,<br>\r\n2) the spans are three tokens long: 9-11; 14-16; and 129-131.<br>\r\n3) the spans are to three different product terms: &quot;DirecTiVo HD HR10-250s&quot;, &quot;DirecTV HD HR20-700s&quot;, and &quot;Panny VHS/DVD Recorder&quot; respectively (see the FYI below for a script to extract the &quot;terms&quot;).</p>\r\n<p>The CPROD1 Team</p>\r\n<p>FYI, below is a one-liner perl script that can extract the span of text for a disambiguated product mention piped into STanDard INput. It assumes that you have installed the JSON package from CPAN, and that the json file being queried is training-annotated-text.json.\r\n The script is applied to the three records that you provide.</p>\r\n<p>bash$ echo &quot;7b465aa355535d76323c0f89dfbec8b5:9-11,0&quot; | perl -e 'use JSON qw(decode<em>json) ; open $fh, &quot;../training-annotated-text.json&quot; or die; $jtext; {local $/; $jtext = &lt;$fh&gt;} $json=decode</em>json($jtext); while () { ($tiid, $stok, $etok, $prodList)\r\n = split/[\\:-\\,]/; foreach my $tokenId ($stok .. $etok) {$token=@{$json-&gt;{TextItem}-&gt;{$tiid}}[$tokenId] ; print &quot;$token &quot;}}'</p>\r\n<p>DirecTiVo HD HR10-250s</p>\r\n<p>bash$ echo &quot;7b465aa355535d76323c0f89dfbec8b5:14-16,0&quot; | perl -e 'use JSON qw(decode<em>json) ; open $fh, &quot;../training-annotated-text.json&quot; or die; $jtext; {local $/; $jtext = &lt;$fh&gt;} $json=decode</em>json($jtext); while () { ($tiid, $stok, $etok, $prodList)\r\n = split/[\\:-\\,]/; foreach my $tokenId ($stok .. $etok) {$token=@{$json-&gt;{TextItem}-&gt;{$tiid}}[$tokenId] ; print &quot;$token &quot;}}'</p>\r\n<p>DirecTV HD HR20-700s</p>\r\n<p>bash$ echo &quot;7b465aa355535d76323c0f89dfbec8b5:129-131,0&quot; | perl -e 'use JSON qw(decode<em>json) ; open $fh, &quot;training-annotated-text.json&quot; or die; $jtext; {local $/; $jtext = &lt;$fh&gt;} $json=decode</em>json($jtext); while () { ($tiid, $stok, $etok, $prodList)\r\n = split/[\\:-\\,]/; foreach my $tokenId ($stok .. $etok) {$token=@{$json-&gt;{TextItem}-&gt;{$tiid}}[$tokenId] ; print &quot;$token &quot;}}'</p>\r\n<p>Panny VHS/DVD Recorder</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "12676": "",
    "12688": ""
  },
  "source": "meta"
}