{"action":"opened","issue":{"url":"https://api.github.com/repos/wikilinks/sift/issues/11","repository_url":"https://api.github.com/repos/wikilinks/sift","labels_url":"https://api.github.com/repos/wikilinks/sift/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/wikilinks/sift/issues/11/comments","events_url":"https://api.github.com/repos/wikilinks/sift/issues/11/events","html_url":"https://github.com/wikilinks/sift/issues/11","id":253160742,"number":11,"title":"handling redirect links","user":{"login":"lephong","id":3542470,"avatar_url":"https://avatars0.githubusercontent.com/u/3542470?v=4","gravatar_id":"","url":"https://api.github.com/users/lephong","html_url":"https://github.com/lephong","followers_url":"https://api.github.com/users/lephong/followers","following_url":"https://api.github.com/users/lephong/following{/other_user}","gists_url":"https://api.github.com/users/lephong/gists{/gist_id}","starred_url":"https://api.github.com/users/lephong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lephong/subscriptions","organizations_url":"https://api.github.com/users/lephong/orgs","repos_url":"https://api.github.com/users/lephong/repos","events_url":"https://api.github.com/users/lephong/events{/privacy}","received_events_url":"https://api.github.com/users/lephong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-27T12:30:12Z","updated_at":"2017-08-27T12:30:12Z","closed_at":null,"body":"I was wondering how sift handles redirect links. For example, I have two wiki articles X and Y. Y redirects to X:\r\n```\r\n<page> \r\n<title> X </title>\r\n<text> X is a ... </text>\r\n</page>\r\n```\r\nand \r\n```\r\n<page>\r\n<title> Y </title>\r\n<redirect title> X </redirect>\r\n</page>\r\n```\r\nThen in another wiki article there's a mention to Y, e.g. \r\n`... this is [[Y]]  which is ...`\r\n\r\nCan sift replace `[[Y]]` above by `[[X]]`? \r\nI found \r\n```\r\nclass WikipediaArticles(ModelBuilder, Documents):\r\n    \"\"\" Prepare a corpus of documents from wikipedia \"\"\"\r\n    def build(self, corpus, redirects=None):\r\n        ...\r\n        if redirects:\r\n```\r\nCalling `build` with not-None redirects will do what I asked above. Am I right?"}}
{"actor":{"display_login":"lephong"}}