{"action":"created","issue":{"url":"https://api.github.com/repos/evanmiltenburg/Dutch-tagger/issues/1","repository_url":"https://api.github.com/repos/evanmiltenburg/Dutch-tagger","labels_url":"https://api.github.com/repos/evanmiltenburg/Dutch-tagger/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/evanmiltenburg/Dutch-tagger/issues/1/comments","events_url":"https://api.github.com/repos/evanmiltenburg/Dutch-tagger/issues/1/events","html_url":"https://github.com/evanmiltenburg/Dutch-tagger/issues/1","id":159821464,"number":1,"title":"Could not determine format for nltk:model.perc.dutch_tagger_large based on its file","user":{"login":"Rechtsproducten","id":7805061,"avatar_url":"https://avatars.githubusercontent.com/u/7805061?v=3","gravatar_id":"","url":"https://api.github.com/users/Rechtsproducten","html_url":"https://github.com/Rechtsproducten","followers_url":"https://api.github.com/users/Rechtsproducten/followers","following_url":"https://api.github.com/users/Rechtsproducten/following{/other_user}","gists_url":"https://api.github.com/users/Rechtsproducten/gists{/gist_id}","starred_url":"https://api.github.com/users/Rechtsproducten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rechtsproducten/subscriptions","organizations_url":"https://api.github.com/users/Rechtsproducten/orgs","repos_url":"https://api.github.com/users/Rechtsproducten/repos","events_url":"https://api.github.com/users/Rechtsproducten/events{/privacy}","received_events_url":"https://api.github.com/users/Rechtsproducten/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-12T10:51:15Z","updated_at":"2016-06-12T11:07:36Z","closed_at":null,"body":"Beste evanmiltenburg, dear evenmiltenburg,\r\n\r\nI'm having issues loading the models. The example code results in the following error:\r\n\r\nValueError: Could not determine format for nltk:model.perc.dutch_tagger_large based on its file\r\nextension; use the \"format\" argument to specify the format explicitly.\r\n\r\nTraceback:\r\n\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/Users/*/anaconda/lib/python3.5/site-packages/nltk/tag/perceptron.py\", line 209, in load\r\n    self.model.weights, self.tagdict, self.classes = load(loc)\r\n  File \"/Users/*/anaconda/lib/python3.5/site-packages/nltk/data.py\", line 783, in load\r\n    % resource_url)\r\nValueError: Could not determine format for nltk:model.perc.dutch_tagger_large based on its file\r\nextension; use the \"format\" argument to specify the format explicitly.\r\n\r\n\r\nWould you be so kind as to direct me in the right direction? "},"comment":{"url":"https://api.github.com/repos/evanmiltenburg/Dutch-tagger/issues/comments/225426777","html_url":"https://github.com/evanmiltenburg/Dutch-tagger/issues/1#issuecomment-225426777","issue_url":"https://api.github.com/repos/evanmiltenburg/Dutch-tagger/issues/1","id":225426777,"user":{"login":"evanmiltenburg","id":1513355,"avatar_url":"https://avatars.githubusercontent.com/u/1513355?v=3","gravatar_id":"","url":"https://api.github.com/users/evanmiltenburg","html_url":"https://github.com/evanmiltenburg","followers_url":"https://api.github.com/users/evanmiltenburg/followers","following_url":"https://api.github.com/users/evanmiltenburg/following{/other_user}","gists_url":"https://api.github.com/users/evanmiltenburg/gists{/gist_id}","starred_url":"https://api.github.com/users/evanmiltenburg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evanmiltenburg/subscriptions","organizations_url":"https://api.github.com/users/evanmiltenburg/orgs","repos_url":"https://api.github.com/users/evanmiltenburg/repos","events_url":"https://api.github.com/users/evanmiltenburg/events{/privacy}","received_events_url":"https://api.github.com/users/evanmiltenburg/received_events","type":"User","site_admin":false},"created_at":"2016-06-12T11:07:36Z","updated_at":"2016-06-12T11:07:36Z","body":"I am not sure what the problem is. I just cloned the code to a different machine and ran the example code to see if it works, and it does:\r\n\r\n    Python 3.5.1 |Continuum Analytics, Inc.| (default, Dec  7 2015, 11:16:01)\r\n    [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux\r\n    Type \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n    >>> from nltk.tag.perceptron import PerceptronTagger\r\n    >>> tagger = PerceptronTagger(load=False)\r\n    >>> tagger.load('model.perc.dutch_tagger_small')\r\n    >>>\r\n    >>> tagger.tag('Alle vogels zijn nesten begonnen , behalve ik en jij .'.split())\r\n    [('Alle', 'det__indef'), ('vogels', 'nounpl'), ('zijn', 'verbprespl'), ('nesten', 'nounpl'), ('begonnen', 'verbpapa'), (',', 'punc'), ('behalve', 'conjsubo'), ('ik', 'pronpers'), ('en', 'conjcoord'), ('jij', 'pronpers'), ('.', '$.')]\r\n    >>> tagger.load('model.perc.dutch_tagger_large')\r\n    >>> tagger.tag('Alle vogels zijn nesten begonnen , behalve ik en jij .'.split())\r\n    [('Alle', 'det__indef'), ('vogels', 'nounpl'), ('zijn', 'verbprespl'), ('nesten', 'nounpl'), ('begonnen', 'verbpapa'), (',', 'punc'), ('behalve', 'conjsubo'), ('ik', 'pronpers'), ('en', 'conjcoord'), ('jij', 'pronpers'), ('.', '$.')]\r\n\r\nMaybe it's got to do with the NLTK version? Try the following:\r\n\r\n```python\r\nimport nltk\r\nprint(nltk.__version__)\r\n# For me, this prints 3.1.\r\n```"}}
{"actor":{"display_login":"evanmiltenburg"}}