{"action":"created","issue":{"url":"https://api.github.com/repos/hankcs/pyhanlp/issues/15","repository_url":"https://api.github.com/repos/hankcs/pyhanlp","labels_url":"https://api.github.com/repos/hankcs/pyhanlp/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/hankcs/pyhanlp/issues/15/comments","events_url":"https://api.github.com/repos/hankcs/pyhanlp/issues/15/events","html_url":"https://github.com/hankcs/pyhanlp/issues/15","id":314033556,"number":15,"title":"感知机分词学习，词性不能正确显示","user":{"login":"nightxing","id":38346297,"avatar_url":"https://avatars0.githubusercontent.com/u/38346297?v=4","gravatar_id":"","url":"https://api.github.com/users/nightxing","html_url":"https://github.com/nightxing","followers_url":"https://api.github.com/users/nightxing/followers","following_url":"https://api.github.com/users/nightxing/following{/other_user}","gists_url":"https://api.github.com/users/nightxing/gists{/gist_id}","starred_url":"https://api.github.com/users/nightxing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nightxing/subscriptions","organizations_url":"https://api.github.com/users/nightxing/orgs","repos_url":"https://api.github.com/users/nightxing/repos","events_url":"https://api.github.com/users/nightxing/events{/privacy}","received_events_url":"https://api.github.com/users/nightxing/received_events","type":"User","site_admin":false},"labels":[{"id":871774123,"url":"https://api.github.com/repos/hankcs/pyhanlp/labels/invalid","name":"invalid","color":"e4e669","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-13T09:27:12Z","updated_at":"2018-04-14T19:08:41Z","closed_at":"2018-04-14T19:08:41Z","author_association":"NONE","body":"感知机分词，在线学习之后，能够成功分词，但是词性有问题\r\n这是代码：\r\nPerceptronLexicalAnalyzer = JClass('com.hankcs.hanlp.model.perceptron.PerceptronLexicalAnalyzer')\r\nanalyzer = PerceptronLexicalAnalyzer()\r\nprint(analyzer.seg('与特朗普通电话讨论太空探索技术公司'))\r\nanalyzer.learn(\"与/c 特朗普/nr 通/v 电话/n 讨论/v [太空/s 探索/vn 技术/n 公司/n]/nt\")\r\nprint(analyzer.seg('与特朗普通电话讨论太空探索技术公司'))\r\n\r\n这是输出结果：\r\n[与/p, 特朗/n, 普通/a, 电话/n, 讨论/v, 太空/s, 探索/vn, 技术/n, 公司/n]\r\n[与/c, 特朗普/nr, 通/v, 电话/n, 讨论/v, 太空探索技术公司/n]\r\n\r\n这里的nt不能正确显示！\r\n\r\n顺便问一句，这里的词性能自动添加自定义词性吗？比如将公司名称标记为company"},"comment":{"url":"https://api.github.com/repos/hankcs/pyhanlp/issues/comments/381352568","html_url":"https://github.com/hankcs/pyhanlp/issues/15#issuecomment-381352568","issue_url":"https://api.github.com/repos/hankcs/pyhanlp/issues/15","id":381352568,"user":{"login":"hankcs","id":5326890,"avatar_url":"https://avatars0.githubusercontent.com/u/5326890?v=4","gravatar_id":"","url":"https://api.github.com/users/hankcs","html_url":"https://github.com/hankcs","followers_url":"https://api.github.com/users/hankcs/followers","following_url":"https://api.github.com/users/hankcs/following{/other_user}","gists_url":"https://api.github.com/users/hankcs/gists{/gist_id}","starred_url":"https://api.github.com/users/hankcs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hankcs/subscriptions","organizations_url":"https://api.github.com/users/hankcs/orgs","repos_url":"https://api.github.com/users/hankcs/repos","events_url":"https://api.github.com/users/hankcs/events{/privacy}","received_events_url":"https://api.github.com/users/hankcs/received_events","type":"User","site_admin":false},"created_at":"2018-04-14T19:08:41Z","updated_at":"2018-04-14T19:08:41Z","author_association":"OWNER","body":"hanlp update"}}
{"actor":{"display_login":"hankcs"}}