docstr: Parameters
  ----------
  phrases : list[gensim.models.Phrases]
  gram_size : int, maximum number of words per phrase
  kwargs : parameters for FeatsFromSpacyDoc.init
docstr_tok: ["Parameters","--","--","--","--","--","phrases",":","list","[","gensim.models.Phrases","]","gram_size",":","int",",","maximum","number","of","words","per","phrase","kwargs",":","parameters","for","FeatsFromSpacyDoc.init"]
code: def __init__(self, phrases, gram_size):
      """
      Parameters
      ----------
      phrases : list[gensim.models.Phrases]
      gram_size : int, maximum number of words per phrase
      kwargs : parameters for FeatsFromSpacyDoc.init
      """
      from gensim.models import Phrases
  
      phrases = phrases
      gram_size = gram_size
      assert type(phrases) == Phrases
      self.gram_size = gram_size
      self.phrases = phrases
  
imports: import itertools
  import warnings
  from collections import Counter
  from scattertext.ParsedCorpus import ParsedCorpus
label_desc: Use image node_id 1 to create a new FeatsFromGensim object from inherited base classes: object with example: obj = FeatsFromGensim(phrases, gram_size)