{"action":"created","issue":{"url":"https://api.github.com/repos/Embedding/Chinese-Word-Vectors/issues/8","repository_url":"https://api.github.com/repos/Embedding/Chinese-Word-Vectors","labels_url":"https://api.github.com/repos/Embedding/Chinese-Word-Vectors/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/Embedding/Chinese-Word-Vectors/issues/8/comments","events_url":"https://api.github.com/repos/Embedding/Chinese-Word-Vectors/issues/8/events","html_url":"https://github.com/Embedding/Chinese-Word-Vectors/issues/8","id":323203325,"number":8,"title":"python gensim 不能加载词向量文件","user":{"login":"sudazzk","id":15663622,"avatar_url":"https://avatars2.githubusercontent.com/u/15663622?v=4","gravatar_id":"","url":"https://api.github.com/users/sudazzk","html_url":"https://github.com/sudazzk","followers_url":"https://api.github.com/users/sudazzk/followers","following_url":"https://api.github.com/users/sudazzk/following{/other_user}","gists_url":"https://api.github.com/users/sudazzk/gists{/gist_id}","starred_url":"https://api.github.com/users/sudazzk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudazzk/subscriptions","organizations_url":"https://api.github.com/users/sudazzk/orgs","repos_url":"https://api.github.com/users/sudazzk/repos","events_url":"https://api.github.com/users/sudazzk/events{/privacy}","received_events_url":"https://api.github.com/users/sudazzk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-15T12:50:05Z","updated_at":"2018-05-15T13:02:50Z","closed_at":null,"author_association":"NONE","body":"D:\\Program\\Anaconda3\\lib\\site-packages\\gensim\\utils.py:860: UserWarning: detected Windows; aliasing chunkize to chunkize_serial\r\n  warnings.warn(\"detected Windows; aliasing chunkize to chunkize_serial\")\r\nTraceback (most recent call last):\r\n  File \".\\zzk_word2vec.py\", line 101, in <module>\r\n    test_word_embedding('D:\\data\\pretrain_word2vec\\Chinese-Word-Vectors\\sgns.zhihu.char\\sgns.zhihu.char')\r\n  File \".\\zzk_word2vec.py\", line 76, in test_word_embedding\r\n    model = gensim.models.KeyedVectors.load_word2vec_format(vector_file, binary=False, encoding='utf8')\r\n  File \"D:\\Program\\Anaconda3\\lib\\site-packages\\gensim\\models\\keyedvectors.py\", line 250, in load_word2vec_format\r\n    parts = utils.to_unicode(line.rstrip(), encoding=encoding, errors=unicode_errors).split(\" \")\r\n  File \"D:\\Program\\Anaconda3\\lib\\site-packages\\gensim\\utils.py\", line 242, in any2unicode\r\n    return unicode(text, encoding, errors=errors)\r\nUnicodeDecodeError: 'utf-8' codec can't decode bytes in position 96-97: invalid continuation byte\r\n"},"comment":{"url":"https://api.github.com/repos/Embedding/Chinese-Word-Vectors/issues/comments/389158397","html_url":"https://github.com/Embedding/Chinese-Word-Vectors/issues/8#issuecomment-389158397","issue_url":"https://api.github.com/repos/Embedding/Chinese-Word-Vectors/issues/8","id":389158397,"user":{"login":"sudazzk","id":15663622,"avatar_url":"https://avatars2.githubusercontent.com/u/15663622?v=4","gravatar_id":"","url":"https://api.github.com/users/sudazzk","html_url":"https://github.com/sudazzk","followers_url":"https://api.github.com/users/sudazzk/followers","following_url":"https://api.github.com/users/sudazzk/following{/other_user}","gists_url":"https://api.github.com/users/sudazzk/gists{/gist_id}","starred_url":"https://api.github.com/users/sudazzk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudazzk/subscriptions","organizations_url":"https://api.github.com/users/sudazzk/orgs","repos_url":"https://api.github.com/users/sudazzk/repos","events_url":"https://api.github.com/users/sudazzk/events{/privacy}","received_events_url":"https://api.github.com/users/sudazzk/received_events","type":"User","site_admin":false},"created_at":"2018-05-15T13:02:50Z","updated_at":"2018-05-15T13:02:50Z","author_association":"NONE","body":" 用这个函数加载  知乎问答数据 sgns.zhihu.char\r\n model = gensim.models.KeyedVectors.load_word2vec_format(vector_file, binary=False, encoding='utf8')\r\n会报上面的错误"}}
{"actor":{"display_login":"sudazzk"}}