Per discussions, a few changes we want to make to the drafttopic training data pipeline:
- Improve WikiProject directory (currently via the processing code but perhaps at later point through community-agreed-upon edits)
- For example, WikiProject Brands does not appear in the directory but should probably be under History_And_Society.Business and economics and WikiProject Women Scientists is only included in Culture.Language and literature because that is where its main listing is, but (I believe) it should be under STEM.Science as well.
- Pipeline for bringing together the following information in a single file for every article in English Wikipedia with at least one WikiProject template (currently 5.7M articles):
- Article metadata: talk page ID, talk page revision, article title, article page ID, article revision ID, Wikidata ID (QID)
- WikiProject templates: list of WikiProject-related templates from an article's talk page
- Mid-level category tags: based on WikiProject templates and mapping from WikiProject directory
Example output JSON:
{ "title": "Atlas Shrugged", "talk_pid": 128, "talk_revid": 911346471, "article_revid": 918538850, "article_pid": 18951386, "qid": "Q374098", "sitelinks": { "ro": "Revolta lui Atlas", "ja": "\u80a9\u3092\u3059\u304f\u3081\u308b\u30a2\u30c8\u30e9\u30b9", "is": "Undirsta\u00f0an", "ru": "\u0410\u0442\u043b\u0430\u043d\u0442 \u0440\u0430\u0441\u043f\u0440\u0430\u0432\u0438\u043b \u043f\u043b\u0435\u0447\u0438", "zh": "\u963f\u7279\u62c9\u65af\u8073\u8073\u80a9", "fi": "Kun maailma j\u00e4rkkyi", "la": "Atlas Shrugged", "pt": "Atlas Shrugged", "de": "Atlas wirft die Welt ab", "no": "De som beveger verden", "vi": "Atlas Shrugged", "he": "\u05de\u05e8\u05d3 \u05d4\u05e0\u05e4\u05d9\u05dc\u05d9\u05dd", "fr": "La Gr\u00e8ve (roman d'Ayn Rand)", "nl": "Atlas Shrugged", "id": "Atlas Shrugged", "io": "La rebeleso di Atlas", "sq": "Revolta e Atlasit", "pl": "Atlas zbuntowany", "eo": "Atlas Shrugged", "da": "Og verden sk\u00e6lvede", "sv": "Och v\u00e4rlden sk\u00e4lvde", "es": "La rebeli\u00f3n de Atlas", "it": "La rivolta di Atlante", "bg": "\u0410\u0442\u043b\u0430\u0441 \u0438\u0437\u043f\u0440\u0430\u0432\u0438 \u0440\u0430\u043c\u0435\u043d\u0435", "ky": "\u0410\u0442\u043b\u0430\u043d\u0442 \u0438\u0439\u0438\u043d\u0434\u0435\u0440\u0438\u043d \u043a\u0443\u0443\u0448\u0443\u0440\u0434\u0443", "fa": "\u0627\u0637\u0644\u0633 \u0634\u0648\u0631\u06cc\u062f", "simple": "Atlas Shrugged", "ca": "La rebel\u00b7li\u00f3 d'Atles", "hy": "\u0531\u057f\u056c\u0561\u0576\u057f\u0568 \u057a\u0561\u0580\u0566\u0565\u0581 \u0569\u0587\u0565\u0580\u0568", "cs": "Atlasova vzpoura", "en": "Atlas Shrugged", "af": "Atlas Shrugged", "ko": "\uc544\ud2c0\ub77c\uc2a4 (\uc18c\uc124)", "ar": "\u062d\u064a\u0646\u0645\u0627 \u0647\u0632 \u0623\u0637\u0644\u0633 \u0643\u062a\u0641\u064a\u0647", "uk": "\u0410\u0442\u043b\u0430\u043d\u0442 \u0440\u043e\u0437\u043f\u0440\u0430\u0432\u0438\u0432 \u043f\u043b\u0435\u0447\u0456" }, "wp_templates": [ "wikiproject objectivism", "wikiproject novels", "wikiproject philosophy", "wikiproject libertarianism", "wikiproject politics", "wikiproject trains" ], "mid_level_categories": [ "Culture.Philosophy and religion", "Culture.Language and literature", "History_And_Society.Politics and government", "History_And_Society.Transportation" ] }