def __call__(self, doc: Doc) -> Doc:
        """Process a Doc object with the component.

        doc (Doc): The document to process.
        RETURNS (Doc): The processed document.
        """
        if self.first_run:
            self.init_component()
            self.first_run = False
        # Store reference to s2v object on Doc to make sure it's right
        doc._._s2v = self.s2v
        if self.merge_phrases:
            merge_phrases_id = doc._._s2v.cfg.get("merge_phrases", "default")
            merge_phrases = registry.merge_phrases.get(merge_phrases_id)
            doc = merge_phrases(doc)
        return doc
Process a Doc object with the component.

        doc (Doc): The document to process.
        RETURNS (Doc): The processed document.
        
sense2vec/component.py