{"action":"created","issue":{"url":"https://api.github.com/repos/magizbox/underthesea/issues/176","repository_url":"https://api.github.com/repos/magizbox/underthesea","labels_url":"https://api.github.com/repos/magizbox/underthesea/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/magizbox/underthesea/issues/176/comments","events_url":"https://api.github.com/repos/magizbox/underthesea/issues/176/events","html_url":"https://github.com/magizbox/underthesea/issues/176","id":304254079,"number":176,"title":"error when using classify","user":{"login":"AlexBlack2202","id":5910287,"avatar_url":"https://avatars0.githubusercontent.com/u/5910287?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexBlack2202","html_url":"https://github.com/AlexBlack2202","followers_url":"https://api.github.com/users/AlexBlack2202/followers","following_url":"https://api.github.com/users/AlexBlack2202/following{/other_user}","gists_url":"https://api.github.com/users/AlexBlack2202/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexBlack2202/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexBlack2202/subscriptions","organizations_url":"https://api.github.com/users/AlexBlack2202/orgs","repos_url":"https://api.github.com/users/AlexBlack2202/repos","events_url":"https://api.github.com/users/AlexBlack2202/events{/privacy}","received_events_url":"https://api.github.com/users/AlexBlack2202/received_events","type":"User","site_admin":false},"labels":[{"id":550557252,"url":"https://api.github.com/repos/magizbox/underthesea/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":{"login":"rain1024","id":1780281,"avatar_url":"https://avatars2.githubusercontent.com/u/1780281?v=4","gravatar_id":"","url":"https://api.github.com/users/rain1024","html_url":"https://github.com/rain1024","followers_url":"https://api.github.com/users/rain1024/followers","following_url":"https://api.github.com/users/rain1024/following{/other_user}","gists_url":"https://api.github.com/users/rain1024/gists{/gist_id}","starred_url":"https://api.github.com/users/rain1024/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rain1024/subscriptions","organizations_url":"https://api.github.com/users/rain1024/orgs","repos_url":"https://api.github.com/users/rain1024/repos","events_url":"https://api.github.com/users/rain1024/events{/privacy}","received_events_url":"https://api.github.com/users/rain1024/received_events","type":"User","site_admin":false},"assignees":[{"login":"rain1024","id":1780281,"avatar_url":"https://avatars2.githubusercontent.com/u/1780281?v=4","gravatar_id":"","url":"https://api.github.com/users/rain1024","html_url":"https://github.com/rain1024","followers_url":"https://api.github.com/users/rain1024/followers","following_url":"https://api.github.com/users/rain1024/following{/other_user}","gists_url":"https://api.github.com/users/rain1024/gists{/gist_id}","starred_url":"https://api.github.com/users/rain1024/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rain1024/subscriptions","organizations_url":"https://api.github.com/users/rain1024/orgs","repos_url":"https://api.github.com/users/rain1024/repos","events_url":"https://api.github.com/users/rain1024/events{/privacy}","received_events_url":"https://api.github.com/users/rain1024/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2018-03-12T06:28:27Z","updated_at":"2018-03-13T03:43:11Z","closed_at":null,"author_association":"NONE","body":"When i user command \"classify(\"Hội đồng tư vấn kinh doanh Asean vinh danh giải thưởng quốc tế\")\", it show the error: \r\n\r\n> Traceback (most recent call last):\r\n>   File \"<stdin>\", line 1, in <module>\r\n>   File \"C:\\Users\\TEST\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\underthesea\\classification\\__init__.py\", line 43, in classify\r\n>     return clf.predict(X)\r\n>   File \"C:\\Users\\TEST\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\underthesea\\classification\\model_fasttext.py\", line 73, in predict\r\n>     y_pred = [self.tranform_output(item) for item in y_pred]\r\n>   File \"C:\\Users\\TEST\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\underthesea\\classification\\model_fasttext.py\", line 73, in <listcomp>\r\n>     y_pred = [self.tranform_output(item) for item in y_pred]\r\n>   File \"C:\\Users\\TEST\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\underthesea\\classification\\model_fasttext.py\", line 66, in tranform_output\r\n>     y = y[0].replace(\"__label__\", \"\")\r\n> IndexError: list index out of range\r\n\r\nHow can i fix it. Thanks."},"comment":{"url":"https://api.github.com/repos/magizbox/underthesea/issues/comments/372536978","html_url":"https://github.com/magizbox/underthesea/issues/176#issuecomment-372536978","issue_url":"https://api.github.com/repos/magizbox/underthesea/issues/176","id":372536978,"user":{"login":"AlexBlack2202","id":5910287,"avatar_url":"https://avatars0.githubusercontent.com/u/5910287?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexBlack2202","html_url":"https://github.com/AlexBlack2202","followers_url":"https://api.github.com/users/AlexBlack2202/followers","following_url":"https://api.github.com/users/AlexBlack2202/following{/other_user}","gists_url":"https://api.github.com/users/AlexBlack2202/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexBlack2202/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexBlack2202/subscriptions","organizations_url":"https://api.github.com/users/AlexBlack2202/orgs","repos_url":"https://api.github.com/users/AlexBlack2202/repos","events_url":"https://api.github.com/users/AlexBlack2202/events{/privacy}","received_events_url":"https://api.github.com/users/AlexBlack2202/received_events","type":"User","site_admin":false},"created_at":"2018-03-13T03:43:11Z","updated_at":"2018-03-13T03:43:11Z","author_association":"NONE","body":"@rain1024 \r\nI use windown 10. When i use in bash window 10 (base on ubuntu). It run successfull. \r\nBut it can not run in window 10. The only thing diffirence is xgboost. In my window is xgboost==0.7 and in bash is xgboost==0.7.post3"}}
{"actor":{"display_login":"AlexBlack2202"}}