{"action":"created","issue":{"url":"https://api.github.com/repos/hankcs/HanLP/issues/281","repository_url":"https://api.github.com/repos/hankcs/HanLP","labels_url":"https://api.github.com/repos/hankcs/HanLP/issues/281/labels{/name}","comments_url":"https://api.github.com/repos/hankcs/HanLP/issues/281/comments","events_url":"https://api.github.com/repos/hankcs/HanLP/issues/281/events","html_url":"https://github.com/hankcs/HanLP/issues/281","id":167783983,"number":281,"title":"CRFModel的构造函数有个问题，直接使用会失败！","user":{"login":"flystarhe","id":5718508,"avatar_url":"https://avatars.githubusercontent.com/u/5718508?v=3","gravatar_id":"","url":"https://api.github.com/users/flystarhe","html_url":"https://github.com/flystarhe","followers_url":"https://api.github.com/users/flystarhe/followers","following_url":"https://api.github.com/users/flystarhe/following{/other_user}","gists_url":"https://api.github.com/users/flystarhe/gists{/gist_id}","starred_url":"https://api.github.com/users/flystarhe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flystarhe/subscriptions","organizations_url":"https://api.github.com/users/flystarhe/orgs","repos_url":"https://api.github.com/users/flystarhe/repos","events_url":"https://api.github.com/users/flystarhe/events{/privacy}","received_events_url":"https://api.github.com/users/flystarhe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hankcs/HanLP/labels/invalid","name":"invalid","color":"e6e6e6"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-27T06:53:16Z","updated_at":"2016-07-29T02:04:56Z","closed_at":null,"body":"你好，想通过你的CRFModel的loadBin加载你自带的bin模型或使用loadTxt加载自己训练的crf++模型。加载没有报错，但是tag工作却提示空指针。\r\n\r\n看了你CRFSegmentModel类的加载代码，这里你用的是`new BinTrie<FeatureFunction>()`初始化CRFModel，而在CRFModel的构造函数中使用的是`new DoubleArrayTrie<FeatureFunction>()`。这个是不是版本升级，不一致问题。\r\n\r\n修改相关的DoubleArrayTrie为BinTrie后，tag函数工作正常。"},"comment":{"url":"https://api.github.com/repos/hankcs/HanLP/issues/comments/236076397","html_url":"https://github.com/hankcs/HanLP/issues/281#issuecomment-236076397","issue_url":"https://api.github.com/repos/hankcs/HanLP/issues/281","id":236076397,"user":{"login":"flystarhe","id":5718508,"avatar_url":"https://avatars.githubusercontent.com/u/5718508?v=3","gravatar_id":"","url":"https://api.github.com/users/flystarhe","html_url":"https://github.com/flystarhe","followers_url":"https://api.github.com/users/flystarhe/followers","following_url":"https://api.github.com/users/flystarhe/following{/other_user}","gists_url":"https://api.github.com/users/flystarhe/gists{/gist_id}","starred_url":"https://api.github.com/users/flystarhe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flystarhe/subscriptions","organizations_url":"https://api.github.com/users/flystarhe/orgs","repos_url":"https://api.github.com/users/flystarhe/repos","events_url":"https://api.github.com/users/flystarhe/events{/privacy}","received_events_url":"https://api.github.com/users/flystarhe/received_events","type":"User","site_admin":false},"created_at":"2016-07-29T02:04:56Z","updated_at":"2016-07-29T02:04:56Z","body":"比如，这种：\r\n毎\tk\tB\r\n日\tk\tI\r\n新\tk\tI\r\n聞\tk\tI\r\n社\tk\tI\r\n特\tk\tB\r\n別\tk\tI\r\n顧\tk\tB\r\n問\tk\tI\r\n４\tn\tB\r\n"}}
{"actor":{"display_login":"flystarhe"}}