{"action":"created","issue":{"url":"https://api.github.com/repos/snipsco/snips-nlu/issues/582","repository_url":"https://api.github.com/repos/snipsco/snips-nlu","labels_url":"https://api.github.com/repos/snipsco/snips-nlu/issues/582/labels{/name}","comments_url":"https://api.github.com/repos/snipsco/snips-nlu/issues/582/comments","events_url":"https://api.github.com/repos/snipsco/snips-nlu/issues/582/events","html_url":"https://github.com/snipsco/snips-nlu/issues/582","id":318929863,"number":582,"title":"Tutorial Error: `brown_clusters.txt` not found","user":{"login":"JRMeyer","id":8389864,"avatar_url":"https://avatars0.githubusercontent.com/u/8389864?v=4","gravatar_id":"","url":"https://api.github.com/users/JRMeyer","html_url":"https://github.com/JRMeyer","followers_url":"https://api.github.com/users/JRMeyer/followers","following_url":"https://api.github.com/users/JRMeyer/following{/other_user}","gists_url":"https://api.github.com/users/JRMeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/JRMeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JRMeyer/subscriptions","organizations_url":"https://api.github.com/users/JRMeyer/orgs","repos_url":"https://api.github.com/users/JRMeyer/repos","events_url":"https://api.github.com/users/JRMeyer/events{/privacy}","received_events_url":"https://api.github.com/users/JRMeyer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-04-30T15:22:21Z","updated_at":"2018-05-07T15:08:18Z","closed_at":"2018-05-07T15:08:18Z","author_association":"CONTRIBUTOR","body":"Hi All, \r\n\r\nI'm going through the tutorial <https://snips-nlu.readthedocs.io/en/latest/tutorial.html>, and there's a step which involves loading clusters from the Brown corpus, but the file `brown_clusters.txt` doesn't seem to exist.\r\n\r\nI've installed `snips-nlu`, `Rust` and `rustsetup-tools` all from github or cURL in a virtualenv.\r\n\r\nIdeas?\r\n\r\n\r\n```\r\n>>> import io\r\n>>> import json\r\n>>> \r\n>>> from snips_nlu import SnipsNLUEngine, load_resources\r\n>>> from snips_nlu.default_configs import CONFIG_EN\r\n>>> \r\n>>> load_resources(u\"en\")\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/home/josh/git/snips-nlu/snips_nlu/resources.py\", line 242, in load_resources\r\n    _RESOURCES[language] = _load_resources(language)\r\n  File \"/home/josh/git/snips-nlu/snips_nlu/resources.py\", line 225, in _load_resources\r\n    resource = resource_fn(language)\r\n  File \"/home/josh/git/snips-nlu/snips_nlu/resources.py\", line 134, in _load_clusters\r\n    with io.open(path, encoding=\"utf8\") as f:\r\nFileNotFoundError: [Errno 2] No such file or directory: '/home/josh/git/snips-nlu/snips_nlu/snips-nlu-resources/en/brown_clusters.txt'\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/snipsco/snips-nlu/issues/comments/387096208","html_url":"https://github.com/snipsco/snips-nlu/issues/582#issuecomment-387096208","issue_url":"https://api.github.com/repos/snipsco/snips-nlu/issues/582","id":387096208,"user":{"login":"JRMeyer","id":8389864,"avatar_url":"https://avatars0.githubusercontent.com/u/8389864?v=4","gravatar_id":"","url":"https://api.github.com/users/JRMeyer","html_url":"https://github.com/JRMeyer","followers_url":"https://api.github.com/users/JRMeyer/followers","following_url":"https://api.github.com/users/JRMeyer/following{/other_user}","gists_url":"https://api.github.com/users/JRMeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/JRMeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JRMeyer/subscriptions","organizations_url":"https://api.github.com/users/JRMeyer/orgs","repos_url":"https://api.github.com/users/JRMeyer/repos","events_url":"https://api.github.com/users/JRMeyer/events{/privacy}","received_events_url":"https://api.github.com/users/JRMeyer/received_events","type":"User","site_admin":false},"created_at":"2018-05-07T15:08:18Z","updated_at":"2018-05-07T15:08:18Z","author_association":"CONTRIBUTOR","body":"Hi Adrien, \r\n\r\nI did exactly what you said, in exact order, and now it works:)\r\n\r\nI had different versions of `pip3` for my global system and for \r\nmy `snips` env I made with `virtual-env`. My env `pip3` was up-to-date\r\nbut I might have installed `snips-nlu` with the former.\r\n\r\nIn any case, it works... thanks for the help!"}}
{"actor":{"display_login":"JRMeyer"}}