def initialize(
        self,
        get_examples: Callable[[], Iterable[Example]],
        *,
        nlp: Optional[Language] = None,
        data_path: Optional[str] = None
    ):
        """Initialize the component and load in data. Can be used to add the
        component with vectors to a pipeline before training.

        get_examples (Callable[[], Iterable[Example]]): Function that
            returns a representative sample of gold-standard Example objects.
        nlp (Language): The current nlp object the component is part of.
        data_path (Optional[str]): Optional path to sense2vec model.
        """
        if data_path is not None:
            self.from_disk(data_path)
Initialize the component and load in data. Can be used to add the
        component with vectors to a pipeline before training.

        get_examples (Callable[[], Iterable[Example]]): Function that
            returns a representative sample of gold-standard Example objects.
        nlp (Language): The current nlp object the component is part of.
        data_path (Optional[str]): Optional path to sense2vec model.
        
sense2vec/component.py