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"]
docstr: It takes a Doc object as input, and returns a response object from the DBpedia Spotlight API
  
  :param doc: the text to be annotated
  :type doc: Doc
  :return: The response as a requests.Response instance.
docstr_tok: ["It","takes","a","Doc","object","as","input",",","and","returns","a","response","object","from","the","DBpedia","Spotlight","API",":","param","doc",":","the","text","to","be","annotated",":","type","doc",":","Doc",":","return",":","The","response","as","a","requests.Response","instance","."]
code: def make_request(self, doc: Doc):
      """
      It takes a Doc object as input, and returns a response object from the DBpedia Spotlight API
  
      :param doc: the text to be annotated
      :type doc: Doc
      :return: The response as a requests.Response instance.
      """
      if self.dbpedia_rest_endpoint:
          # override the default endpoint, e.g., 'http://localhost:2222/rest'
          endpoint = self.dbpedia_rest_endpoint
          logger.debug(
              f"api_endpoint has been manually set to {endpoint}"
          )
      else:
          # use the default endpoint for the language selected
          endpoint = f"{self.base_url}/{self.language_code}"
          logger.debug(f"api_endpoint has been built as {endpoint}")
  
      params = {"text": doc.text}
      if self.confidence != None:
          params["confidence"] = self.confidence
      if self.support != None:
          params["support"] = self.support
      if self.types != None:
          params["types"] = self.types
      if self.sparql != None:
          params["sparql"] = self.sparql
      if self.policy != None:
          params["policy"] = self.policy
  
      # TODO: application/ld+json would be more detailed? https://github.com/digitalbazaar/pyld
      return requests.post(
          f"{endpoint}/{self.process}",
          headers={"accept": "application/json"},
          verify=self.verify_ssl,
          data=params,
      )
  
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 3 for calling the EntityLinker obj's underlying member method code with example usage: obj.make_request(doc) and returns: requests