{"action":"created","issue":{"url":"https://api.github.com/repos/stanfordnlp/CoreNLP/issues/55","labels_url":"https://api.github.com/repos/stanfordnlp/CoreNLP/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/stanfordnlp/CoreNLP/issues/55/comments","events_url":"https://api.github.com/repos/stanfordnlp/CoreNLP/issues/55/events","html_url":"https://github.com/stanfordnlp/CoreNLP/issues/55","id":56095368,"number":55,"title":"CoreNLP crashes with a \"No roots in graph\" RuntimeException","user":{"login":"brendano","id":1677,"avatar_url":"https://avatars.githubusercontent.com/u/1677?v=3","gravatar_id":"","url":"https://api.github.com/users/brendano","html_url":"https://github.com/brendano","followers_url":"https://api.github.com/users/brendano/followers","following_url":"https://api.github.com/users/brendano/following{/other_user}","gists_url":"https://api.github.com/users/brendano/gists{/gist_id}","starred_url":"https://api.github.com/users/brendano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendano/subscriptions","organizations_url":"https://api.github.com/users/brendano/orgs","repos_url":"https://api.github.com/users/brendano/repos","events_url":"https://api.github.com/users/brendano/events{/privacy}","received_events_url":"https://api.github.com/users/brendano/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-30T22:49:58Z","updated_at":"2015-02-20T19:33:09Z","closed_at":null,"body":"I have a sentence that gives a RuntimeException based on what I'm presuming is a bad or unexpected parse when trying to do dependency conversion with the `getFirstRoot()` call.  This sounds like an NLP problem and not a system engineering problem, so ideally, it would return null, or maybe a checked exception?  Using the shift-reduce parser and version 3.5.1 I get the message\r\n\r\n```\r\njava.lang.RuntimeException: No roots in graph:\r\ndep                 reln                gov                 \r\n---                 ----                ---                 \r\n\r\n\tat edu.stanford.nlp.semgraph.SemanticGraph.getFirstRoot(SemanticGraph.java:773)\r\n```\r\n\r\n\r\nThe text I'm parsing is the following.  This is in JSON encoding.  Sorry I don't know which sentence is causing it.\r\n```\r\n\"days has elapsed after the \\nreport is received. As used in this subsection--\\n            ``(1) the term `legislative day means any calendar day on         which the House of Representatives is in session; and            ``(2) the terms `rule and `regulation mean a provision or         series of interrelated provisions stating a single, separable         rule of law..    (b) Report on Using Voter Communication Vouchers for Primary Elections.--The Commission shall submit to the House of Representa\"\r\n```\r\n\r\nin plaintext,\r\n\r\n```\r\ndays has elapsed after the \r\nreport is received. As used in this subsection--\r\n            ``(1) the term `legislative day means any calendar day on         which the House of Representatives is in session; and            ``(2) the terms `rule and `regulation mean a provision or         series of interrelated provisions stating a single, separable         rule of law..    (b) Report on Using Voter Communication Vouchers for Primary Elections.--The Commission shall submit to the House of Representa\r\n```"},"comment":{"url":"https://api.github.com/repos/stanfordnlp/CoreNLP/issues/comments/75304233","html_url":"https://github.com/stanfordnlp/CoreNLP/issues/55#issuecomment-75304233","issue_url":"https://api.github.com/repos/stanfordnlp/CoreNLP/issues/55","id":75304233,"user":{"login":"AngledLuffa","id":3411033,"avatar_url":"https://avatars.githubusercontent.com/u/3411033?v=3","gravatar_id":"","url":"https://api.github.com/users/AngledLuffa","html_url":"https://github.com/AngledLuffa","followers_url":"https://api.github.com/users/AngledLuffa/followers","following_url":"https://api.github.com/users/AngledLuffa/following{/other_user}","gists_url":"https://api.github.com/users/AngledLuffa/gists{/gist_id}","starred_url":"https://api.github.com/users/AngledLuffa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AngledLuffa/subscriptions","organizations_url":"https://api.github.com/users/AngledLuffa/orgs","repos_url":"https://api.github.com/users/AngledLuffa/repos","events_url":"https://api.github.com/users/AngledLuffa/events{/privacy}","received_events_url":"https://api.github.com/users/AngledLuffa/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T19:33:09Z","updated_at":"2015-02-20T19:33:09Z","body":"I'm not able to reproduce this.  Is there anything more you can tell us\nabout the error?\n\nOn Fri, Jan 30, 2015 at 2:55 PM, brendano <notifications@github.com> wrote:\n\n> to be clear i'm running an entire corenlp pipeline on this text. my ini\n> file is\n>\n> annotators = tokenize,ssplit,pos,lemma,parse\n> parse.model = edu/stanford/nlp/models/srparser/englishSR.ser.gz\n>\n> using jar files\n>\n> stanford-corenlp-full-2015-01-30/stanford-corenlp-3.5.1.jar\n> stanford-corenlp-full-2015-01-30/stanford-corenlp-3.5.1-models.jar\n> stanford-srparser-2014-10-23-models.jar\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/stanfordnlp/CoreNLP/issues/55#issuecomment-72285063>.\n>\n"}}