class_docstr: Pipeline component for named entity linking.
  
  DOCS: https://spacy.io/api/entitylinker
class_docstr_tok: ["Pipeline","component","for","named","entity","linking",".","DOCS",":","https",":","\/\/spacy.io\/api\/entitylinker"]
docstr: Serialize the pipe to disk.
  
  path (str / Path): Path to a directory.
  exclude (Iterable[str]): String names of serialization fields to exclude.
  
  DOCS: https://spacy.io/api/entitylinker#to_disk
docstr_tok: ["Serialize","the","pipe","to","disk",".","path","(","str","\/","Path",")",":","Path","to","a","directory",".","exclude","(","Iterable","[","str","]",")",":","String","names","of","serialization","fields","to","exclude",".","DOCS",":","https",":","\/\/spacy.io\/api\/entitylinker","#","to_disk"]
code: def to_disk(
      self,
      path: Union[str, Path],
      *,
      exclude: Iterable[str] = SimpleFrozenList(),
  ) -> None:
      """Serialize the pipe to disk.
  
      path (str / Path): Path to a directory.
      exclude (Iterable[str]): String names of serialization fields to exclude.
  
      DOCS: https://spacy.io/api/entitylinker#to_disk
      """
      serialize = {}
      serialize["vocab"] = lambda p: self.vocab.to_disk(
          p, exclude=exclude
      )
      serialize["cfg"] = lambda p: srsly.write_json(p, self.cfg)
      serialize["kb"] = lambda p: self.kb.to_disk(p)
      serialize["model"] = lambda p: self.model.to_disk(p)
      util.to_disk(path, serialize, exclude)
  
imports: import random
  from itertools import islice
  from pathlib import Path
  from typing import Any, Callable, Dict, Iterable, List, Optional, Union
  import srsly
  from thinc.api import Config, CosineDistance, Model, Optimizer, set_dropout_rate
  from thinc.types import Floats2d
  from ..None import util
  from ..errors import Errors
  from ..kb import Candidate, KnowledgeBase
  from ..language import Language
  from ..ml import empty_kb
  from ..scorer import Scorer
  from ..tokens import Doc, Span
  from ..training import Example, validate_examples, validate_get_examples
  from ..util import SimpleFrozenList, registry
  from ..vocab import Vocab
  from .legacy.entity_linker import EntityLinker_v1
  from .pipe import deserialize_config
  from .trainable_pipe import TrainablePipe
label_desc: Use image node_id 12 for calling the EntityLinker obj's underlying member method code with example usage: obj.to_disk(path) without return types