docstr: Parameters
  ----------
  corpus: Corpus for phrase augmentation
  
  Returns
  -------
  New ParsedCorpus containing unigrams in corpus and new phrases
docstr_tok: ["Parameters","--","--","--","--","--","corpus",":","Corpus","for","phrase","augmentation","Returns","--","--","--","-","New","ParsedCorpus","containing","unigrams","in","corpus","and","new","phrases"]
code: def add_phrases(self, corpus):
      """
      Parameters
      ----------
      corpus: Corpus for phrase augmentation
  
      Returns
      -------
      New ParsedCorpus containing unigrams in corpus and new phrases
      """
      from gensim.models import Phrases
  
      assert isinstance(corpus, ParsedCorpus)
      self.phrases = [
          Phrases(
              CorpusAdapterForGensim.get_sentences(corpus),
              delimiter=" ",
          )
      ]
  
      for i in range(1, self.max_tokens_per_phrase):
          self.phrases.append(
              Phrases(
                  self.phrases[-1][
                      CorpusAdapterForGensim.get_sentences(corpus)
                  ]
              )
          )
  
      return self
  
imports: import itertools
  import warnings
  from collections import Counter
  from scattertext.ParsedCorpus import ParsedCorpus
label_desc: Use image node_id 2 for calling the GensimPhraseAdder obj's underlying member method code with example usage: obj.add_phrases(corpus) and returns: self