parameters: (self, languages=None)
docstring: Merge Wikipedia categories for all languages.
docstring_summary: Merge Wikipedia categories for all languages.
docstring_tokens: Merge Wikipedia categories for all languages .
function: def merge_wikipedia_categories(self, languages=None):
      """Merge Wikipedia categories for all languages."""
      if languages == None: languages = flags.arg.languages
  
      with self.wf.namespace("wikipedia-categories"):
        documents = []
        for language in languages:
          documents.extend(self.wikipedia_documents(language))
          documents.extend(self.wikipedia_category_documents(language))
        return self.wf.mapreduce(input=documents,
                                 output=self.wikipedia_items(),
                                 mapper="category-item-extractor",
                                 reducer="category-item-merger",
                                 format="message/frame")
function_tokens: def merge_wikipedia_categories ( self , languages = None ) : if languages == None : languages = flags . arg . languages with self . wf . namespace ( "wikipedia-categories" ) : documents = [ ] for language in languages : documents . extend ( self . wikipedia_documents ( language ) ) documents . extend ( self . wikipedia_category_documents ( language ) ) return self . wf . mapreduce ( input = documents , output = self . wikipedia_items ( ) , mapper = "category-item-extractor" , reducer = "category-item-merger" , format = "message/frame" )