class_docstr: This class manages the querying of DBpedia and attaches the found entities to the document
class_docstr_tok: ["This","class","manages","the","querying","of","DBpedia","and","attaches","the","found","entities","to","the","document"]
code: def __init__(
      self,
      language_code="en",
      dbpedia_rest_endpoint=None,
      process="annotate",
      confidence=None,
      support=None,
      types=None,
      sparql=None,
      policy=None,
      span_group="dbpedia_spotlight",
      overwrite_ents=True,
      raise_http_errors=True,
      verify_ssl=True,
      debug=False,
  ):
      # constructor of the pipeline stage
      if (
          dbpedia_rest_endpoint is None
          and language_code not in self.supported_languages
      ):
          raise ValueError(
              f"Linker not available in {language_code}. Choose one of {self.supported_languages}"
          )
      self.language_code = language_code
      if process not in self.supported_processes:
          raise ValueError(
              f"The process {process} is not supported. Choose one of {self.supported_processes}"
          )
      self.process = process
      self.confidence = confidence
      self.support = support
      self.types = types
      self.sparql = sparql
      self.policy = policy
      self.span_group = span_group
      self.overwrite_ents = overwrite_ents
      self.raise_http_errors = raise_http_errors
      self.verify_ssl = verify_ssl
      self.debug = debug
      self.dbpedia_rest_endpoint = dbpedia_rest_endpoint
  
file_path: spacy-dbpedia-spotlight/spacy_dbpedia_spotlight/entity_linker.py
imports: import concurrent.futures
  import sys
  import requests
  import spacy
  from multiprocessing.pool import ThreadPool
  from loguru import logger
  from requests import HTTPError
  from spacy import util
  from spacy.language import Language
  from spacy.tokens import Doc, Span
label_desc: Use image node_id 1 to create a new EntityLinker object from inherited base classes: object with example: obj = EntityLinker(language_code, dbpedia_rest_endpoint, process, confidence, support, types, sparql, policy, span_group, overwrite_ents, raise_http_errors, verify_ssl, debug)