docstr: Initializes the model and provides necessary information for compilation.
  
  Args:
      preprocessor: Preprocessor object that preprocesses text for training and prediction.
      vectorizer: Vectorizer object that performs vectorization of the text.
      embedding_weights_encoder (optional): Matrix to initialize the encoder embedding.
      embedding_weights_decoder (optional): Matrix to initialize the decoder embedding.
docstr_tok: ["Initializes","the","model","and","provides","necessary","information","for","compilation",".","Args",":","preprocessor",":","Preprocessor","object","that","preprocesses","text","for","training","and","prediction",".","vectorizer",":","Vectorizer","object","that","performs","vectorization","of","the","text",".","embedding_weights_encoder","(","optional",")",":","Matrix","to","initialize","the","encoder","embedding",".","embedding_weights_decoder","(","optional",")",":","Matrix","to","initialize","the","decoder","embedding","."]
code: def init_model(
      self,
      preprocessor: Preprocessor,
      vectorizer: Vectorizer,
      embedding_weights_encoder=None,
      embedding_weights_decoder=None,
  ) -> None:
      """
      Initializes the model and provides necessary information for compilation.
  
      Args:
          preprocessor: Preprocessor object that preprocesses text for training and prediction.
          vectorizer: Vectorizer object that performs vectorization of the text.
          embedding_weights_encoder (optional): Matrix to initialize the encoder embedding.
          embedding_weights_decoder (optional): Matrix to initialize the decoder embedding.
      """
  
      pass
  
file_path: headliner/headliner/model/summarizer.py
imports: import abc
  from abc import abstractmethod
  from typing import Callable, Dict, Union
  import numpy
  import tensorflow
  from headliner.preprocessing import Preprocessor, Vectorizer
label_desc: Use image node_id 2 for calling the Summarizer obj's underlying member method code with example usage: obj.init_model(preprocessor, vectorizer, embedding_weights_encoder, embedding_weights_decoder) without return types