parameters: (self, names=None, language=None)
return_statement: return repo
docstring: Build phrase table for all items.
docstring_summary: Build phrase table for all items.
docstring_tokens: Build phrase table for all items .
function: def build_phrase_table(self, names=None, language=None):
      """Build phrase table for all items."""
      if language == None: language = flags.arg.language
      if names == None: names = self.item_names(language)
  
      with self.wf.namespace("phrase-table"):
        builder = self.wf.task("phrase-table-builder")
        builder.add_param("language", language)
        builder.add_param("transfer_aliases", True)
        self.wf.connect(self.wf.read(names, name="name-reader"), builder)
        kb = self.knowledge_base()
        repo = self.phrase_table(language)
        builder.attach_input("commons", kb)
        builder.attach_output("repository", repo)
      return repo
function_tokens: def build_phrase_table ( self , names = None , language = None ) : if language == None : language = flags . arg . language if names == None : names = self . item_names ( language ) with self . wf . namespace ( "phrase-table" ) : builder = self . wf . task ( "phrase-table-builder" ) builder . add_param ( "language" , language ) builder . add_param ( "transfer_aliases" , True ) self . wf . connect ( self . wf . read ( names , name = "name-reader" ) , builder ) kb = self . knowledge_base ( ) repo = self . phrase_table ( language ) builder . attach_input ( "commons" , kb ) builder . attach_output ( "repository" , repo ) return repo