parameters: (self)
docstring: Build fact and category lexicons.
docstring_summary: Build fact and category lexicons.
docstring_tokens: Build fact and category lexicons .
function: def extract_fact_lexicon(self):
      """Build fact and category lexicons."""
      kb = self.wiki.knowledge_base()
      factmap = self.fact_lexicon()
      catmap = self.category_lexicon()
      with self.wf.namespace("fact-embeddings"):
        trainer = self.wf.task("fact-lexicon-extractor")
        trainer.attach_input("kb", kb)
        trainer.attach_output("factmap", factmap)
        trainer.attach_output("catmap", catmap)
        return factmap, catmap
function_tokens: def extract_fact_lexicon ( self ) : kb = self . wiki . knowledge_base ( ) factmap = self . fact_lexicon ( ) catmap = self . category_lexicon ( ) with self . wf . namespace ( "fact-embeddings" ) : trainer = self . wf . task ( "fact-lexicon-extractor" ) trainer . attach_input ( "kb" , kb ) trainer . attach_output ( "factmap" , factmap ) trainer . attach_output ( "catmap" , catmap ) return factmap , catmap