{"action":"created","issue":{"url":"https://api.github.com/repos/sergey-tihon/Stanford.NLP.NET/issues/52","repository_url":"https://api.github.com/repos/sergey-tihon/Stanford.NLP.NET","labels_url":"https://api.github.com/repos/sergey-tihon/Stanford.NLP.NET/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/sergey-tihon/Stanford.NLP.NET/issues/52/comments","events_url":"https://api.github.com/repos/sergey-tihon/Stanford.NLP.NET/issues/52/events","html_url":"https://github.com/sergey-tihon/Stanford.NLP.NET/issues/52","id":181435981,"number":52,"title":"Cannot load Models","user":{"login":"diegolinan","id":2962970,"avatar_url":"https://avatars.githubusercontent.com/u/2962970?v=3","gravatar_id":"","url":"https://api.github.com/users/diegolinan","html_url":"https://github.com/diegolinan","followers_url":"https://api.github.com/users/diegolinan/followers","following_url":"https://api.github.com/users/diegolinan/following{/other_user}","gists_url":"https://api.github.com/users/diegolinan/gists{/gist_id}","starred_url":"https://api.github.com/users/diegolinan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegolinan/subscriptions","organizations_url":"https://api.github.com/users/diegolinan/orgs","repos_url":"https://api.github.com/users/diegolinan/repos","events_url":"https://api.github.com/users/diegolinan/events{/privacy}","received_events_url":"https://api.github.com/users/diegolinan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-06T14:47:16Z","updated_at":"2016-10-06T15:03:14Z","closed_at":null,"body":"I have tried to load the models for the new release as the the source code (very short, very undocumented) that is posted on the initial page states. \r\nI have unziped the \r\n\r\nand I can't get pos to work. when removing flags (to at least try to make this thing work) I can only get \"tokenize\" and \"ssplit\" to work. When I remove flags and get to \"dcoref\" I get the following message:\r\n\r\nAn unhandled exception of type 'java.lang.RuntimeException' occurred in stanford-corenlp-3.6.0.dll\r\n\r\nAdditional information: edu.stanford.nlp.io.RuntimeIOException: java.io.IOException: Unable to open \"edu/stanford/nlp/models/dcoref/demonyms.txt\" as class path, filename or URL\r\n\r\n\r\nI am using the following code\r\n\r\n```\r\n    class Program\r\n    {\r\n        static void Main(string[] args)\r\n        {\r\n            // Path to the folder with models extracted from `stanford-corenlp-3.6.0-models.jar`\r\n            var jarRoot = @\"edu\\stanford\\nlp\\models\";\r\n\r\n            // Text for processing\r\n            var text = \"Kosgi Santosh sent an email to Stanford University. He didn't get a reply.\";\r\n\r\n            // Annotation pipeline configuration\r\n            var props = new Properties();\r\n            //props.setProperty(\"annotators\", \"tokenize, ssplit, pos, lemma, ner, parse, dcoref\");\r\n            props.setProperty(\"annotators\", \"tokenize, ssplit, dcoref\");\r\n            props.setProperty(\"ner.useSUTime\", \"0\");\r\n\r\n            // We should change current directory, so StanfordCoreNLP could find all the model files automatically\r\n            var curDir = Environment.CurrentDirectory;\r\n            Directory.SetCurrentDirectory(jarRoot);\r\n            var pipeline = new StanfordCoreNLP(props);\r\n            Directory.SetCurrentDirectory(curDir);\r\n\r\n            // Annotation\r\n            var annotation = new Annotation(text);\r\n            pipeline.annotate(annotation);\r\n\r\n            // Result - Pretty Print\r\n            using (var stream = new ByteArrayOutputStream())\r\n            {\r\n                pipeline.prettyPrint(annotation, new PrintWriter(stream));\r\n                Console.WriteLine(stream.toString());\r\n                stream.close();\r\n            }\r\n\r\n            Console.ReadLine();\r\n        }\r\n    }\r\n```\r\n\r\nThe files are copied to my debug directory, no matter what I put on the jarRoot var, I keep getting errors or statements saying that some file is missing, or that a model could not be found.\r\n\r\ncan you give a simple walkthrough as to where is it that you copy the uncompressed jar file?\r\nwhere do you get it from?\r\nwhich jar file is the current one for this version of the engine?\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/sergey-tihon/Stanford.NLP.NET/issues/comments/251990185","html_url":"https://github.com/sergey-tihon/Stanford.NLP.NET/issues/52#issuecomment-251990185","issue_url":"https://api.github.com/repos/sergey-tihon/Stanford.NLP.NET/issues/52","id":251990185,"user":{"login":"diegolinan","id":2962970,"avatar_url":"https://avatars.githubusercontent.com/u/2962970?v=3","gravatar_id":"","url":"https://api.github.com/users/diegolinan","html_url":"https://github.com/diegolinan","followers_url":"https://api.github.com/users/diegolinan/followers","following_url":"https://api.github.com/users/diegolinan/following{/other_user}","gists_url":"https://api.github.com/users/diegolinan/gists{/gist_id}","starred_url":"https://api.github.com/users/diegolinan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegolinan/subscriptions","organizations_url":"https://api.github.com/users/diegolinan/orgs","repos_url":"https://api.github.com/users/diegolinan/repos","events_url":"https://api.github.com/users/diegolinan/events{/privacy}","received_events_url":"https://api.github.com/users/diegolinan/received_events","type":"User","site_admin":false},"created_at":"2016-10-06T15:03:14Z","updated_at":"2016-10-06T15:03:14Z","body":"Same applies to all the rest?\r\n"}}
{"actor":{"display_login":"diegolinan"}}