nodes: 0, module; 1, function_definition; 2, function_name:generate_from_text; 3, parameters; 4, block; 5, identifier:self; 6, identifier:text; 7, expression_statement; 8, expression_statement; 9, expression_statement; 10, return_statement; 11, comment:"""Generate wordcloud from text.
  
          The input "text" is expected to be a natural text. If you pass a sorted
          list of words, words will appear in your output twice. To remove this
          duplication, set ``collocations=False``.
  
          Calls process_text and generate_from_frequencies.
  
          ..versionchanged:: 1.2.2
              Argument of generate_from_frequencies() is not return of
              process_text() any more.
  
          Returns
          -------
          self
          """; 12, assignment; 13, call; 14, identifier:self; 15, identifier:words; 16, call; 17, attribute; 18, argument_list; 19, attribute; 20, argument_list; 21, identifier:self; 22, identifier:generate_from_frequencies; 23, identifier:words; 24, identifier:self; 25, identifier:process_text; 26, identifier:text
code: def generate_from_text(self, text):
          """Generate wordcloud from text.
  
          The input "text" is expected to be a natural text. If you pass a sorted
          list of words, words will appear in your output twice. To remove this
          duplication, set ``collocations=False``.
  
          Calls process_text and generate_from_frequencies.
  
          ..versionchanged:: 1.2.2
              Argument of generate_from_frequencies() is not return of
              process_text() any more.
  
          Returns
          -------
          self
          """
          words = self.process_text(text)
          self.generate_from_frequencies(words)
          return self