class_docstr: Class for linking of entity substrings in the document to entities in Wikidata
class_docstr_tok: ["Class","for","linking","of","entity","substrings","in","the","document","to","entities","in","Wikidata"]
docstr: Args:
      ner: config for entity detection
      ner_parser: component deeppavlov.models.entity_extraction.entity_detection_parser
      ner2: config of additional entity detection model (ensemble of ner and ner2 models gives better
          entity detection quality than single ner model)
      ner_parser2: component deeppavlov.models.entity_extraction.entity_detection_parser
      **kwargs:
docstr_tok: ["Args",":","ner",":","config","for","entity","detection","ner_parser",":","component","deeppavlov.models.entity_extraction.entity_detection_parser","ner2",":","config","of","additional","entity","detection","model","(","ensemble","of","ner","and","ner2","models","gives","better","entity","detection","quality","than","single","ner","model",")","ner_parser2",":","component","deeppavlov.models.entity_extraction.entity_detection_parser","*","*","kwargs",":"]
code: def __init__(
      self,
      ner: Chainer,
      ner_parser: EntityDetectionParser,
      ner2: Chainer = None,
      ner_parser2: EntityDetectionParser = None,
      **kwargs,
  ) -> None:
      """
      Args:
          ner: config for entity detection
          ner_parser: component deeppavlov.models.entity_extraction.entity_detection_parser
          ner2: config of additional entity detection model (ensemble of ner and ner2 models gives better
              entity detection quality than single ner model)
          ner_parser2: component deeppavlov.models.entity_extraction.entity_detection_parser
          **kwargs:
      """
      self.ner = ner
      self.ner_parser = ner_parser
      self.ner2 = ner2
      self.ner_parser2 = ner_parser2
  
file_path: DeepPavlov/deeppavlov/models/entity_extraction/ner_chunker.py
imports: import re
  from logging import getLogger
  from string import punctuation
  from typing import List, Tuple, Union, Any
  from nltk import sent_tokenize
  from transformers import AutoTokenizer
  from deeppavlov.core.common.registry import register
  from deeppavlov.core.models.component import Component
  from deeppavlov.core.common.chainer import Chainer
  from deeppavlov.models.entity_extraction.entity_detection_parser import EntityDetectionParser
label_desc: Use image node_id 1 to create a new NerChunkModel object from inherited base classes: Component with example: obj = NerChunkModel(ner, ner_parser, ner2, ner_parser2)