{"action":"closed","number":247,"pull_request":{"url":"https://api.github.com/repos/infolab-csail/WikipediaBase/pulls/247","id":73926309,"html_url":"https://github.com/infolab-csail/WikipediaBase/pull/247","diff_url":"https://github.com/infolab-csail/WikipediaBase/pull/247.diff","patch_url":"https://github.com/infolab-csail/WikipediaBase/pull/247.patch","issue_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/issues/247","number":247,"state":"closed","locked":false,"title":"Fix synonym generation","user":{"login":"chsamlee","id":4664430,"avatar_url":"https://avatars.githubusercontent.com/u/4664430?v=3","gravatar_id":"","url":"https://api.github.com/users/chsamlee","html_url":"https://github.com/chsamlee","followers_url":"https://api.github.com/users/chsamlee/followers","following_url":"https://api.github.com/users/chsamlee/following{/other_user}","gists_url":"https://api.github.com/users/chsamlee/gists{/gist_id}","starred_url":"https://api.github.com/users/chsamlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chsamlee/subscriptions","organizations_url":"https://api.github.com/users/chsamlee/orgs","repos_url":"https://api.github.com/users/chsamlee/repos","events_url":"https://api.github.com/users/chsamlee/events{/privacy}","received_events_url":"https://api.github.com/users/chsamlee/received_events","type":"User","site_admin":false},"body":"[cc @sfelshin]\r\n\r\nFixes #244. The issue is that we don't write synonyms if the article is already processed, even though the trail may be different. For example, after we process the chain `[\"WA Mozart\", \"Wolfgang Amadeus Mozart\"]`, we ignore the chain `[\"Wolfgang Amadeus\", \"Wolfgang Amadeus Mozart\"]`so we miss \"Wolfgang Amadeus\" as a synonym.\r\n\r\nIn `/data/infolab/workspaces/chsamlee/synonyms.txt`, you can find a list of Mozart-related synonyms generated using this PR. Because I only included articles those title contains \"Mozart\", it misses synonyms like \"Wolfgang Amadeus\", but it still shows many more synonyms than the current list.\r\n\r\nTwo notes on compatibility:\r\n- This script is incompatible with v1.3.0 Wikipediabase because the cleanup PR changes names and locations of functions\r\n- The backend that is generated using Wikipediabase on master [89accc8] should be compatible with v1.3.0.","created_at":"2016-06-15T14:53:42Z","updated_at":"2016-06-15T17:30:27Z","closed_at":"2016-06-15T17:30:27Z","merged_at":"2016-06-15T17:30:27Z","merge_commit_sha":"51ae306f6c80d5b498519f00365912bf2cd176c5","assignee":{"login":"chsamlee","id":4664430,"avatar_url":"https://avatars.githubusercontent.com/u/4664430?v=3","gravatar_id":"","url":"https://api.github.com/users/chsamlee","html_url":"https://github.com/chsamlee","followers_url":"https://api.github.com/users/chsamlee/followers","following_url":"https://api.github.com/users/chsamlee/following{/other_user}","gists_url":"https://api.github.com/users/chsamlee/gists{/gist_id}","starred_url":"https://api.github.com/users/chsamlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chsamlee/subscriptions","organizations_url":"https://api.github.com/users/chsamlee/orgs","repos_url":"https://api.github.com/users/chsamlee/repos","events_url":"https://api.github.com/users/chsamlee/events{/privacy}","received_events_url":"https://api.github.com/users/chsamlee/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/pulls/247/commits","review_comments_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/pulls/247/comments","review_comment_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/pulls/comments{/number}","comments_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/issues/247/comments","statuses_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/statuses/05bcf2618500ae9db7c54a27eef538e8d4f83d20","head":{"label":"infolab-csail:synonym-generation","ref":"synonym-generation","sha":"05bcf2618500ae9db7c54a27eef538e8d4f83d20","user":{"login":"infolab-csail","id":13588310,"avatar_url":"https://avatars.githubusercontent.com/u/13588310?v=3","gravatar_id":"","url":"https://api.github.com/users/infolab-csail","html_url":"https://github.com/infolab-csail","followers_url":"https://api.github.com/users/infolab-csail/followers","following_url":"https://api.github.com/users/infolab-csail/following{/other_user}","gists_url":"https://api.github.com/users/infolab-csail/gists{/gist_id}","starred_url":"https://api.github.com/users/infolab-csail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infolab-csail/subscriptions","organizations_url":"https://api.github.com/users/infolab-csail/orgs","repos_url":"https://api.github.com/users/infolab-csail/repos","events_url":"https://api.github.com/users/infolab-csail/events{/privacy}","received_events_url":"https://api.github.com/users/infolab-csail/received_events","type":"Organization","site_admin":false},"repo":{"id":15544139,"name":"WikipediaBase","full_name":"infolab-csail/WikipediaBase","owner":{"login":"infolab-csail","id":13588310,"avatar_url":"https://avatars.githubusercontent.com/u/13588310?v=3","gravatar_id":"","url":"https://api.github.com/users/infolab-csail","html_url":"https://github.com/infolab-csail","followers_url":"https://api.github.com/users/infolab-csail/followers","following_url":"https://api.github.com/users/infolab-csail/following{/other_user}","gists_url":"https://api.github.com/users/infolab-csail/gists{/gist_id}","starred_url":"https://api.github.com/users/infolab-csail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infolab-csail/subscriptions","organizations_url":"https://api.github.com/users/infolab-csail/orgs","repos_url":"https://api.github.com/users/infolab-csail/repos","events_url":"https://api.github.com/users/infolab-csail/events{/privacy}","received_events_url":"https://api.github.com/users/infolab-csail/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/infolab-csail/WikipediaBase","description":"Wikipedia interaction with start.mit.edu","fork":false,"url":"https://api.github.com/repos/infolab-csail/WikipediaBase","forks_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/forks","keys_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/teams","hooks_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/hooks","issue_events_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/issues/events{/number}","events_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/events","assignees_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/assignees{/user}","branches_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/branches{/branch}","tags_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/tags","blobs_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/git/refs{/sha}","trees_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/statuses/{sha}","languages_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/languages","stargazers_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/stargazers","contributors_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/contributors","subscribers_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/subscribers","subscription_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/subscription","commits_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/commits{/sha}","git_commits_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/git/commits{/sha}","comments_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/comments{/number}","issue_comment_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/issues/comments{/number}","contents_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/contents/{+path}","compare_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/merges","archive_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/downloads","issues_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/issues{/number}","pulls_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/pulls{/number}","milestones_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/milestones{/number}","notifications_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/labels{/name}","releases_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/releases{/id}","deployments_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/deployments","created_at":"2013-12-31T06:02:34Z","updated_at":"2016-01-13T23:13:10Z","pushed_at":"2016-06-15T17:30:27Z","git_url":"git://github.com/infolab-csail/WikipediaBase.git","ssh_url":"git@github.com:infolab-csail/WikipediaBase.git","clone_url":"https://github.com/infolab-csail/WikipediaBase.git","svn_url":"https://github.com/infolab-csail/WikipediaBase","homepage":null,"size":9116,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":25,"forks":1,"open_issues":25,"watchers":0,"default_branch":"master"}},"base":{"label":"infolab-csail:master","ref":"master","sha":"89accc87aaf59f6568795067d2117a9935531160","user":{"login":"infolab-csail","id":13588310,"avatar_url":"https://avatars.githubusercontent.com/u/13588310?v=3","gravatar_id":"","url":"https://api.github.com/users/infolab-csail","html_url":"https://github.com/infolab-csail","followers_url":"https://api.github.com/users/infolab-csail/followers","following_url":"https://api.github.com/users/infolab-csail/following{/other_user}","gists_url":"https://api.github.com/users/infolab-csail/gists{/gist_id}","starred_url":"https://api.github.com/users/infolab-csail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infolab-csail/subscriptions","organizations_url":"https://api.github.com/users/infolab-csail/orgs","repos_url":"https://api.github.com/users/infolab-csail/repos","events_url":"https://api.github.com/users/infolab-csail/events{/privacy}","received_events_url":"https://api.github.com/users/infolab-csail/received_events","type":"Organization","site_admin":false},"repo":{"id":15544139,"name":"WikipediaBase","full_name":"infolab-csail/WikipediaBase","owner":{"login":"infolab-csail","id":13588310,"avatar_url":"https://avatars.githubusercontent.com/u/13588310?v=3","gravatar_id":"","url":"https://api.github.com/users/infolab-csail","html_url":"https://github.com/infolab-csail","followers_url":"https://api.github.com/users/infolab-csail/followers","following_url":"https://api.github.com/users/infolab-csail/following{/other_user}","gists_url":"https://api.github.com/users/infolab-csail/gists{/gist_id}","starred_url":"https://api.github.com/users/infolab-csail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infolab-csail/subscriptions","organizations_url":"https://api.github.com/users/infolab-csail/orgs","repos_url":"https://api.github.com/users/infolab-csail/repos","events_url":"https://api.github.com/users/infolab-csail/events{/privacy}","received_events_url":"https://api.github.com/users/infolab-csail/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/infolab-csail/WikipediaBase","description":"Wikipedia interaction with start.mit.edu","fork":false,"url":"https://api.github.com/repos/infolab-csail/WikipediaBase","forks_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/forks","keys_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/teams","hooks_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/hooks","issue_events_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/issues/events{/number}","events_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/events","assignees_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/assignees{/user}","branches_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/branches{/branch}","tags_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/tags","blobs_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/git/refs{/sha}","trees_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/statuses/{sha}","languages_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/languages","stargazers_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/stargazers","contributors_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/contributors","subscribers_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/subscribers","subscription_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/subscription","commits_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/commits{/sha}","git_commits_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/git/commits{/sha}","comments_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/comments{/number}","issue_comment_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/issues/comments{/number}","contents_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/contents/{+path}","compare_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/merges","archive_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/downloads","issues_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/issues{/number}","pulls_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/pulls{/number}","milestones_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/milestones{/number}","notifications_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/labels{/name}","releases_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/releases{/id}","deployments_url":"https://api.github.com/repos/infolab-csail/WikipediaBase/deployments","created_at":"2013-12-31T06:02:34Z","updated_at":"2016-01-13T23:13:10Z","pushed_at":"2016-06-15T17:30:27Z","git_url":"git://github.com/infolab-csail/WikipediaBase.git","ssh_url":"git@github.com:infolab-csail/WikipediaBase.git","clone_url":"https://github.com/infolab-csail/WikipediaBase.git","svn_url":"https://github.com/infolab-csail/WikipediaBase","homepage":null,"size":9116,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":25,"forks":1,"open_issues":25,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/infolab-csail/WikipediaBase/pulls/247"},"html":{"href":"https://github.com/infolab-csail/WikipediaBase/pull/247"},"issue":{"href":"https://api.github.com/repos/infolab-csail/WikipediaBase/issues/247"},"comments":{"href":"https://api.github.com/repos/infolab-csail/WikipediaBase/issues/247/comments"},"review_comments":{"href":"https://api.github.com/repos/infolab-csail/WikipediaBase/pulls/247/comments"},"review_comment":{"href":"https://api.github.com/repos/infolab-csail/WikipediaBase/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/infolab-csail/WikipediaBase/pulls/247/commits"},"statuses":{"href":"https://api.github.com/repos/infolab-csail/WikipediaBase/statuses/05bcf2618500ae9db7c54a27eef538e8d4f83d20"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"chsamlee","id":4664430,"avatar_url":"https://avatars.githubusercontent.com/u/4664430?v=3","gravatar_id":"","url":"https://api.github.com/users/chsamlee","html_url":"https://github.com/chsamlee","followers_url":"https://api.github.com/users/chsamlee/followers","following_url":"https://api.github.com/users/chsamlee/following{/other_user}","gists_url":"https://api.github.com/users/chsamlee/gists{/gist_id}","starred_url":"https://api.github.com/users/chsamlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chsamlee/subscriptions","organizations_url":"https://api.github.com/users/chsamlee/orgs","repos_url":"https://api.github.com/users/chsamlee/repos","events_url":"https://api.github.com/users/chsamlee/events{/privacy}","received_events_url":"https://api.github.com/users/chsamlee/received_events","type":"User","site_admin":false},"comments":3,"review_comments":0,"commits":2,"additions":9,"deletions":7,"changed_files":1}}
{"actor":{"display_login":"chsamlee"}}