{"action":"created","issue":{"url":"https://api.github.com/repos/jacobandreas/nmn2/issues/11","repository_url":"https://api.github.com/repos/jacobandreas/nmn2","labels_url":"https://api.github.com/repos/jacobandreas/nmn2/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/jacobandreas/nmn2/issues/11/comments","events_url":"https://api.github.com/repos/jacobandreas/nmn2/issues/11/events","html_url":"https://github.com/jacobandreas/nmn2/issues/11","id":184557258,"number":11,"title":"How to use extra/vqa/parse.py?","user":{"login":"jcjohnson","id":2718714,"avatar_url":"https://avatars.githubusercontent.com/u/2718714?v=3","gravatar_id":"","url":"https://api.github.com/users/jcjohnson","html_url":"https://github.com/jcjohnson","followers_url":"https://api.github.com/users/jcjohnson/followers","following_url":"https://api.github.com/users/jcjohnson/following{/other_user}","gists_url":"https://api.github.com/users/jcjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/jcjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcjohnson/subscriptions","organizations_url":"https://api.github.com/users/jcjohnson/orgs","repos_url":"https://api.github.com/users/jcjohnson/repos","events_url":"https://api.github.com/users/jcjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/jcjohnson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-21T20:03:01Z","updated_at":"2016-10-21T20:37:08Z","closed_at":null,"body":"I'm trying to get this code running on a new dataset and I can't figure out the expected input format of extra/vqa/parse.py. It looks like it is trying to parse the output of the Stanford Dependency parser, but I'm having a hard time getting nontrivial parses.\r\n\r\nI have an input file containing one question per line, including the example question from the README:\r\n\r\n```bash\r\n> cat questions.txt\r\nIs the train modern?\r\nWhat color is the man's swimsuit?\r\n```\r\n\r\nI can parse these questions using the Stanford Dependency parser, (throwing away stderr for clarity):\r\n\r\n```\r\n> ./lexparser.sh questions.txt 2> /dev/null\r\n(ROOT\r\n  (SQ (VBZ Is)\r\n    (NP (DT the) (NN train))\r\n    (ADJP (JJ modern))\r\n    (. ?)))\r\n\r\ncop(modern-4, Is-1)\r\ndet(train-3, the-2)\r\nnsubj(modern-4, train-3)\r\nroot(ROOT-0, modern-4)\r\n\r\n(ROOT\r\n  (SBARQ\r\n    (WHNP (WDT What) (NN color))\r\n    (SQ (VBZ is)\r\n      (NP\r\n        (NP (DT the) (NN man) (POS 's))\r\n        (NN swimsuit)))\r\n    (. ?)))\r\n\r\ndet(color-2, What-1)\r\ndobj(is-3, color-2)\r\nroot(ROOT-0, is-3)\r\ndet(man-5, the-4)\r\nnmod:poss(swimsuit-7, man-5)\r\ncase(man-5, 's-6)\r\nnsubj(is-3, swimsuit-7)\r\n```\r\n\r\nThis looks vaguely like the expected input format that parse.py is trying to parse, but I only get trivial parses when piping this directly to parse.py:\r\n\r\n```\r\n> ./lexparser.sh questions.txt 2> /dev/null | python extra/vqa/parse.py\r\n(_what _thing)\r\n(_what _thing)\r\n(_what _thing)\r\n```\r\n\r\nAm I doing something blatantly wrong? Even if you don't have functioning code for this I'd really appreciate any insight on how to use parse.py.\r\n"},"comment":{"url":"https://api.github.com/repos/jacobandreas/nmn2/issues/comments/255458991","html_url":"https://github.com/jacobandreas/nmn2/issues/11#issuecomment-255458991","issue_url":"https://api.github.com/repos/jacobandreas/nmn2/issues/11","id":255458991,"user":{"login":"jacobandreas","id":236111,"avatar_url":"https://avatars.githubusercontent.com/u/236111?v=3","gravatar_id":"","url":"https://api.github.com/users/jacobandreas","html_url":"https://github.com/jacobandreas","followers_url":"https://api.github.com/users/jacobandreas/followers","following_url":"https://api.github.com/users/jacobandreas/following{/other_user}","gists_url":"https://api.github.com/users/jacobandreas/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobandreas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobandreas/subscriptions","organizations_url":"https://api.github.com/users/jacobandreas/orgs","repos_url":"https://api.github.com/users/jacobandreas/repos","events_url":"https://api.github.com/users/jacobandreas/events{/privacy}","received_events_url":"https://api.github.com/users/jacobandreas/received_events","type":"User","site_admin":false},"created_at":"2016-10-21T20:37:08Z","updated_at":"2016-10-21T20:37:08Z","body":"Updated parse.py docs per 82e9a9980d39c771d2f780d9d400478fd83e9422"}}
{"actor":{"display_login":"jacobandreas"}}