{"action":"closed","issue":{"url":"https://api.github.com/repos/HazyResearch/snorkel/issues/331","repository_url":"https://api.github.com/repos/HazyResearch/snorkel","labels_url":"https://api.github.com/repos/HazyResearch/snorkel/issues/331/labels{/name}","comments_url":"https://api.github.com/repos/HazyResearch/snorkel/issues/331/comments","events_url":"https://api.github.com/repos/HazyResearch/snorkel/issues/331/events","html_url":"https://github.com/HazyResearch/snorkel/issues/331","id":167077627,"number":331,"title":"Replace namedtuple contexts (e.g., Sentences) with proper classes","user":{"login":"bhancock8","id":12646092,"avatar_url":"https://avatars.githubusercontent.com/u/12646092?v=3","gravatar_id":"","url":"https://api.github.com/users/bhancock8","html_url":"https://github.com/bhancock8","followers_url":"https://api.github.com/users/bhancock8/followers","following_url":"https://api.github.com/users/bhancock8/following{/other_user}","gists_url":"https://api.github.com/users/bhancock8/gists{/gist_id}","starred_url":"https://api.github.com/users/bhancock8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhancock8/subscriptions","organizations_url":"https://api.github.com/users/bhancock8/orgs","repos_url":"https://api.github.com/users/bhancock8/repos","events_url":"https://api.github.com/users/bhancock8/events{/privacy}","received_events_url":"https://api.github.com/users/bhancock8/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HazyResearch/snorkel/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"ajratner","id":1585405,"avatar_url":"https://avatars.githubusercontent.com/u/1585405?v=3","gravatar_id":"","url":"https://api.github.com/users/ajratner","html_url":"https://github.com/ajratner","followers_url":"https://api.github.com/users/ajratner/followers","following_url":"https://api.github.com/users/ajratner/following{/other_user}","gists_url":"https://api.github.com/users/ajratner/gists{/gist_id}","starred_url":"https://api.github.com/users/ajratner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajratner/subscriptions","organizations_url":"https://api.github.com/users/ajratner/orgs","repos_url":"https://api.github.com/users/ajratner/repos","events_url":"https://api.github.com/users/ajratner/events{/privacy}","received_events_url":"https://api.github.com/users/ajratner/received_events","type":"User","site_admin":false},"assignees":[{"login":"ajratner","id":1585405,"avatar_url":"https://avatars.githubusercontent.com/u/1585405?v=3","gravatar_id":"","url":"https://api.github.com/users/ajratner","html_url":"https://github.com/ajratner","followers_url":"https://api.github.com/users/ajratner/followers","following_url":"https://api.github.com/users/ajratner/following{/other_user}","gists_url":"https://api.github.com/users/ajratner/gists{/gist_id}","starred_url":"https://api.github.com/users/ajratner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajratner/subscriptions","organizations_url":"https://api.github.com/users/ajratner/orgs","repos_url":"https://api.github.com/users/ajratner/repos","events_url":"https://api.github.com/users/ajratner/events{/privacy}","received_events_url":"https://api.github.com/users/ajratner/received_events","type":"User","site_admin":false},{"login":"bhancock8","id":12646092,"avatar_url":"https://avatars.githubusercontent.com/u/12646092?v=3","gravatar_id":"","url":"https://api.github.com/users/bhancock8","html_url":"https://github.com/bhancock8","followers_url":"https://api.github.com/users/bhancock8/followers","following_url":"https://api.github.com/users/bhancock8/following{/other_user}","gists_url":"https://api.github.com/users/bhancock8/gists{/gist_id}","starred_url":"https://api.github.com/users/bhancock8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhancock8/subscriptions","organizations_url":"https://api.github.com/users/bhancock8/orgs","repos_url":"https://api.github.com/users/bhancock8/repos","events_url":"https://api.github.com/users/bhancock8/events{/privacy}","received_events_url":"https://api.github.com/users/bhancock8/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-07-22T15:59:36Z","updated_at":"2016-07-22T18:13:19Z","closed_at":"2016-07-22T18:13:19Z","body":"I'm aware of four different \"context\" objects that we use now in different places (Documents, Sentences, Tables, Cells), and there are some attributes they all share (e.g., id), and some that multiple share (Sentences and Cells both have all the NLP tags). I think converting these to proper objects that all inherit from a Context object (and maybe a LingualContext object for Sentences and Cells) could give us a less hacky-feeling structure with more guarantees on what attributes passed objects will have, and encourage more generic development (i.e., less favoring of \"sentences\" everywhere compared to other contexts). Also, it's a step toward the SQLAlchemy classes that we'll want them to be eventually. Thoughts?\r\n\r\n@ajratner -- I'd be happy to do the refactor, I just assigned you because I expect you'll have an opinion on this."}}
{"actor":{"display_login":"stephenbach"}}