docstr: :param doc2vec_builder: Doc2VecBuilder, optional
      If None, a default model will be used
  :param projector: object
      Has fit_transform method
docstr_tok: [":","param","doc2vec_builder",":","Doc2VecBuilder",",","optional","If","None",",","a","default","model","will","be","used",":","param","projector",":","object","Has","fit_transform","method"]
code: def __init__(self, doc2vec_builder=None, projector=PCA(2)):
      """
  
      :param doc2vec_builder: Doc2VecBuilder, optional
          If None, a default model will be used
      :param projector: object
          Has fit_transform method
      """
      if doc2vec_builder is None:
          try:
              import gensim
          except:
              raise Exception(
                  "Please install gensim before using Doc2VecCategoryProjector/"
              )
          self.doc2vec_builder = Doc2VecBuilder(
              gensim.models.Doc2Vec(
                  vector_size=100,
                  window=5,
                  min_count=5,
                  workers=6,
                  alpha=0.025,
                  min_alpha=0.025,
                  epochs=50,
              )
          )
      else:
          assert type(doc2vec_builder) == Doc2VecBuilder
          self.doc2vec_builder = doc2vec_builder
      self.projector = projector
  
imports: import pandas
  import scipy
  from pandas import DataFrame
  from scipy.sparse import issparse
  from sklearn.base import BaseEstimator, TransformerMixin
  from sklearn.preprocessing import RobustScaler, StandardScaler
  from scattertext.representations.Doc2VecBuilder import Doc2VecBuilder
  from scattertext.termscoring.RankDifference import RankDifference
  from scattertext.categoryprojector.CategoryProjection import CategoryProjection, CategoryProjectionWithDoc2Vec
  from scattertext.termcompaction.AssociationCompactor import AssociationCompactor
  from sklearn.decomposition import PCA
label_desc: Use image node_id 1 to create a new Doc2VecCategoryProjector object from inherited base classes: CategoryProjectorBase with example: obj = Doc2VecCategoryProjector(doc2vec_builder, projector)