{"action":"closed","issue":{"url":"https://api.github.com/repos/cnorthwood/ternip/issues/12","labels_url":"https://api.github.com/repos/cnorthwood/ternip/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/cnorthwood/ternip/issues/12/comments","events_url":"https://api.github.com/repos/cnorthwood/ternip/issues/12/events","html_url":"https://github.com/cnorthwood/ternip/issues/12","id":1296075,"number":12,"title":"IndexError in _nodes_to_sents","user":{"login":"leondz","id":121934,"avatar_url":"https://avatars.githubusercontent.com/u/121934?v=3","gravatar_id":"","url":"https://api.github.com/users/leondz","html_url":"https://github.com/leondz","followers_url":"https://api.github.com/users/leondz/followers","following_url":"https://api.github.com/users/leondz/following{/other_user}","gists_url":"https://api.github.com/users/leondz/gists{/gist_id}","starred_url":"https://api.github.com/users/leondz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leondz/subscriptions","organizations_url":"https://api.github.com/users/leondz/orgs","repos_url":"https://api.github.com/users/leondz/repos","events_url":"https://api.github.com/users/leondz/events{/privacy}","received_events_url":"https://api.github.com/users/leondz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2011-07-27T14:16:30Z","updated_at":"2016-01-27T20:10:05Z","closed_at":"2016-01-27T20:10:05Z","body":"When running ternip -t timeml -s APW19981205.0374.tml (from TimeBank), the following exception is thrown (also with APW19990312.0251.tml, APW19990122.0193.tml and some other APW* / CNN* docs)  :\r\n\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/annotate_timex\", line 76, in <module>\r\n    sents = doc.get_sents()\r\n  File \"/usr/local/lib/python2.6/dist-packages/ternip/formats/xml_doc.py\", line 734, in get_sents\r\n    (nodesents, ndsents, i) = self._nodes_to_sents(self._xml_body, [], [(sent, []) for sent in nltk.tokenize.sent_tokenize(self._get_text(self._xml_body))], 0)\r\n  File \"/usr/local/lib/python2.6/dist-packages/ternip/formats/xml_doc.py\", line 661, in _nodes_to_sents\r\n    (done_sents, nondone_sents, senti) = self._nodes_to_sents(child, done_sents, nondone_sents, senti)\r\n  File \"/usr/local/lib/python2.6/dist-packages/ternip/formats/xml_doc.py\", line 651, in _nodes_to_sents\r\n    (sent, snodes) = nondone_sents[0]\r\nIndexError: list index out of range\r\n\r\n"}}