{"action":"created","issue":{"url":"https://api.github.com/repos/HIT-SCIR/pyltp/issues/168","repository_url":"https://api.github.com/repos/HIT-SCIR/pyltp","labels_url":"https://api.github.com/repos/HIT-SCIR/pyltp/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/HIT-SCIR/pyltp/issues/168/comments","events_url":"https://api.github.com/repos/HIT-SCIR/pyltp/issues/168/events","html_url":"https://github.com/HIT-SCIR/pyltp/issues/168","id":343527776,"node_id":"MDU6SXNzdWUzNDM1Mjc3NzY=","number":168,"title":"pyltp命名实体识别结果全为O","user":{"login":"iambyd","id":11927058,"node_id":"MDQ6VXNlcjExOTI3MDU4","avatar_url":"https://avatars0.githubusercontent.com/u/11927058?v=4","gravatar_id":"","url":"https://api.github.com/users/iambyd","html_url":"https://github.com/iambyd","followers_url":"https://api.github.com/users/iambyd/followers","following_url":"https://api.github.com/users/iambyd/following{/other_user}","gists_url":"https://api.github.com/users/iambyd/gists{/gist_id}","starred_url":"https://api.github.com/users/iambyd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iambyd/subscriptions","organizations_url":"https://api.github.com/users/iambyd/orgs","repos_url":"https://api.github.com/users/iambyd/repos","events_url":"https://api.github.com/users/iambyd/events{/privacy}","received_events_url":"https://api.github.com/users/iambyd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-23T08:02:27Z","updated_at":"2018-07-23T09:39:04Z","closed_at":null,"author_association":"NONE","body":"<!-- 中文模板起始：If you speak English, please remove the Chinese templates -->\r\n\r\n\r\n## 问题*类型*\r\n命名实体识别模型识别出的内容全为O\r\n\r\n## 出错*场景*\r\n命名实体识别结果出错，结果一直不变，任意输入结果均为O\r\n\r\n## 代码片段\r\nstring = '元芳你怎么看'\r\nsegmentor = Segmentor()\r\nsegmentor.load('./ltp_data_v3.4.0/cws.model')\r\nwords = segmentor.segment(string)\r\npostagger = Postagger()\r\npostagger.load('./ltp_data_v3.4.0/pos.model')\r\npostags = postagger.postag(words)\r\nrecognizer = NamedEntityRecognizer()\r\nrecognizer.load('./ltp_data_v3.4.0/ner.model')\r\nnetags = recognizer.recognize(words, postags)\r\nprint('\\n'.join(netags))\r\n得到的结果为\r\nO       \r\nO      \r\nO   \r\nO\r\n## 运行环境\r\n<!-- 操作系统, python版本等。 -->\r\n操作系统：Ubuntu 18\r\npython版本：3.6\r\npyltp版本：0.2.1\r\nltp模型版本：3.4\r\n\r\n\r\n## 期望结果\r\n官网介绍的结果为：\r\nS-Nh        O       O       O\r\n\r\n## 备注：分词和词性标注得到的结果与官方文档保持一致：\r\nwords: 元芳  你       怎么      看\r\npostags: nh  r       r       v\r\n"},"comment":{"url":"https://api.github.com/repos/HIT-SCIR/pyltp/issues/comments/406999528","html_url":"https://github.com/HIT-SCIR/pyltp/issues/168#issuecomment-406999528","issue_url":"https://api.github.com/repos/HIT-SCIR/pyltp/issues/168","id":406999528,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjk5OTUyOA==","user":{"login":"liu946","id":7871150,"node_id":"MDQ6VXNlcjc4NzExNTA=","avatar_url":"https://avatars0.githubusercontent.com/u/7871150?v=4","gravatar_id":"","url":"https://api.github.com/users/liu946","html_url":"https://github.com/liu946","followers_url":"https://api.github.com/users/liu946/followers","following_url":"https://api.github.com/users/liu946/following{/other_user}","gists_url":"https://api.github.com/users/liu946/gists{/gist_id}","starred_url":"https://api.github.com/users/liu946/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liu946/subscriptions","organizations_url":"https://api.github.com/users/liu946/orgs","repos_url":"https://api.github.com/users/liu946/repos","events_url":"https://api.github.com/users/liu946/events{/privacy}","received_events_url":"https://api.github.com/users/liu946/received_events","type":"User","site_admin":false},"created_at":"2018-07-23T09:39:04Z","updated_at":"2018-07-23T09:39:04Z","author_association":"NONE","body":"无法复现您的问题，请详细说明一下您的安装方法。"}}
{"actor":{"display_login":"liu946"}}