{"action":"created","issue":{"url":"https://api.github.com/repos/angeloskath/php-nlp-tools/issues/60","repository_url":"https://api.github.com/repos/angeloskath/php-nlp-tools","labels_url":"https://api.github.com/repos/angeloskath/php-nlp-tools/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/angeloskath/php-nlp-tools/issues/60/comments","events_url":"https://api.github.com/repos/angeloskath/php-nlp-tools/issues/60/events","html_url":"https://github.com/angeloskath/php-nlp-tools/issues/60","id":293160552,"number":60,"title":"FeatureBasedNB precomputed trained data","user":{"login":"gradzio","id":32451455,"avatar_url":"https://avatars2.githubusercontent.com/u/32451455?v=4","gravatar_id":"","url":"https://api.github.com/users/gradzio","html_url":"https://github.com/gradzio","followers_url":"https://api.github.com/users/gradzio/followers","following_url":"https://api.github.com/users/gradzio/following{/other_user}","gists_url":"https://api.github.com/users/gradzio/gists{/gist_id}","starred_url":"https://api.github.com/users/gradzio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gradzio/subscriptions","organizations_url":"https://api.github.com/users/gradzio/orgs","repos_url":"https://api.github.com/users/gradzio/repos","events_url":"https://api.github.com/users/gradzio/events{/privacy}","received_events_url":"https://api.github.com/users/gradzio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-01-31T13:37:54Z","updated_at":"2018-02-01T10:39:11Z","closed_at":null,"author_association":"NONE","body":"Hey, the constructor in FeatureBasedNB should allow this:\r\n\r\n public function __construct($priors = [], $condprob = [])\r\n    {\r\n        $this->priors = $priors;\r\n        $this->condprob = $condprob;\r\n        $this->unknown = [];\r\n    }\r\n\r\nthis way we would be able to cache / store trained properties and then inject them before classifying. Now one has to train the model each time calling the classify or getScore on classifier."},"comment":{"url":"https://api.github.com/repos/angeloskath/php-nlp-tools/issues/comments/362226658","html_url":"https://github.com/angeloskath/php-nlp-tools/issues/60#issuecomment-362226658","issue_url":"https://api.github.com/repos/angeloskath/php-nlp-tools/issues/60","id":362226658,"user":{"login":"angeloskath","id":1242043,"avatar_url":"https://avatars1.githubusercontent.com/u/1242043?v=4","gravatar_id":"","url":"https://api.github.com/users/angeloskath","html_url":"https://github.com/angeloskath","followers_url":"https://api.github.com/users/angeloskath/followers","following_url":"https://api.github.com/users/angeloskath/following{/other_user}","gists_url":"https://api.github.com/users/angeloskath/gists{/gist_id}","starred_url":"https://api.github.com/users/angeloskath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angeloskath/subscriptions","organizations_url":"https://api.github.com/users/angeloskath/orgs","repos_url":"https://api.github.com/users/angeloskath/repos","events_url":"https://api.github.com/users/angeloskath/events{/privacy}","received_events_url":"https://api.github.com/users/angeloskath/received_events","type":"User","site_admin":false},"created_at":"2018-02-01T10:39:11Z","updated_at":"2018-02-01T10:39:11Z","author_association":"OWNER","body":"The concept was to simply serialize and unserialize the model, but you may be right and perhaps it should be added. I 'll look into that when I have some time. For now you can just serialize and unserialize the model so that you don't have to train again."}}
{"actor":{"display_login":"angeloskath"}}