code: def _get_extractors(ngs, ents, ncs) -> list[types.DocLikeToSpans]:
      all_extractors = [
          _get_ngs_extractor(ngs),
          _get_ents_extractor(ents),
          _get_ncs_extractor(ncs),
      ]
      extractors = [
          extractor
          for extractor in all_extractors
          if extractor is not None
      ]
      if not extractors:
          raise ValueError(
              "at least one term extractor must be specified"
          )
      else:
          return extractors
  
file_path: textacy/src/textacy/extract/basics.py
imports: from __future__ import annotations
  from functools import partial
  from typing import Collection, Iterable, Optional, Union
  from cytoolz import itertoolz
  from spacy.parts_of_speech import DET
  from spacy.tokens import Span, Token
  from ..None import constants, errors, types, utils
label_desc: Use image node_id 7 for calling a global function with example usage: _get_extractors(ngs, ents, ncs) and returns: extractors