docstr: Initialize the pipeline component.
  
  vocab (Vocab): The shared vocab. Mostly used for the shared StringStore.
  shape (tuple): The vector shape.
  merge_phrases (bool): Merge sense2vec phrases into one token.
  lemmatize (bool): Always look up lemmas if available in the vectors,
      otherwise default to original word.
  overrides (dict): Optional custom functions to use, mapped to names
      registered via the registry, e.g. {"make_key": "custom_make_key"}.
  RETURNS (Sense2VecComponent): The newly constructed object.
docstr_tok: ["Initialize","the","pipeline","component",".","vocab","(","Vocab",")",":","The","shared","vocab",".","Mostly","used","for","the","shared","StringStore",".","shape","(","tuple",")",":","The","vector","shape",".","merge_phrases","(","bool",")",":","Merge","sense2vec","phrases","into","one","token",".","lemmatize","(","bool",")",":","Always","look","up","lemmas","if","available","in","the","vectors",",","otherwise","default","to","original","word",".","overrides","(","dict",")",":","Optional","custom","functions","to","use",",","mapped","to","names","registered","via","the","registry",",","e.g",".","{","``","make_key","''",":","``","custom_make_key","''","}",".","RETURNS","(","Sense2VecComponent",")",":","The","newly","constructed","object","."]
code: def __init__(
      self,
      vocab: Vocab = None,
      shape: Tuple[int, int] = (1000, 128),
      merge_phrases: bool = False,
      lemmatize: bool = False,
      overrides: Dict[str, str] = SimpleFrozenDict(),
      **kwargs,
  ):
      """Initialize the pipeline component.
  
      vocab (Vocab): The shared vocab. Mostly used for the shared StringStore.
      shape (tuple): The vector shape.
      merge_phrases (bool): Merge sense2vec phrases into one token.
      lemmatize (bool): Always look up lemmas if available in the vectors,
          otherwise default to original word.
      overrides (dict): Optional custom functions to use, mapped to names
          registered via the registry, e.g. {"make_key": "custom_make_key"}.
      RETURNS (Sense2VecComponent): The newly constructed object.
      """
      self.first_run = True
      self.merge_phrases = merge_phrases
      self.s2v = Sense2Vec(shape=shape)
      cfg = {
          "make_spacy_key": "default",
          "get_phrases": "default",
          "merge_phrases": "default",
          "lemmatize": lemmatize,
      }
      self.s2v.cfg.update(cfg)
      self.s2v.cfg.update(overrides)
  
imports: from typing import Tuple, Union, List, Dict, Callable, Iterable, Optional
  from spacy.language import Language
  from spacy.tokens import Doc, Token, Span
  from spacy.training import Example
  from spacy.vocab import Vocab
  from spacy.util import SimpleFrozenDict
  from pathlib import Path
  import numpy
  from .sense2vec import Sense2Vec
  from .util import registry
label_desc: Use image node_id 1 to create a new Sense2VecComponent object from inherited base classes: object with example: obj = Sense2VecComponent(vocab, shape, merge_phrases, lemmatize, overrides)