class_docstr: spaCy backend for NER.
class_docstr_tok: ["spaCy","backend","for","NER","."]
code: def annotate(
      self, texts: List[str], *, batch_size: int = 1
  ) -> List[List[NamedEntityAnnotation]]:
      if not self.initialized:
          raise ComponentError(
              "spaCy NER backend was not initialized - Did you call `warm_up()`?"
          )
  
      assert self.pipeline is not None
      with self._select_device():
          outputs = list(
              self.pipeline.pipe(
                  texts=texts,
                  batch_size=batch_size,
                  **self._pipeline_kwargs,
              )
          )
  
      return [
          [
              NamedEntityAnnotation(
                  entity=entity.label_,
                  start=entity.start_char,
                  end=entity.end_char,
              )
              for entity in doc.ents
          ]
          for doc in outputs
      ]
  
imports: from abc import ABC, abstractmethod
  from contextlib import contextmanager
  from dataclasses import dataclass
  from enum import Enum, EnumMeta
  from typing import Any, Dict, List, Optional, Union
  from ...None import ComponentError, DeserializationError, Document, component, default_from_dict, default_to_dict
  from ...lazy_imports import LazyImport
label_desc: Use image node_id 3 for calling the _SpacyBackend obj's underlying member method code with example usage: obj.annotate(texts) and returns: unknown