          labels = {}
          for name, pipe in self._components:
              if hasattr(pipe, "labels"):
                  labels[name] = list(pipe.labels)
          return SimpleFrozenDict(labels)
  
      @classmethod
      def has_factory(cls, name: str) -> bool:
 
</s> remove         the component exposes a labels property).
 </s> add         the component exposes a labels property and the labels are not
        hidden).
            if hasattr(pipe, "hide_labels") and pipe.hide_labels is True:
                continue
          labels = {}
          for name, pipe in self._components:
            if hasattr(pipe, "hide_labels") and pipe.hide_labels is True:
                continue
              if hasattr(pipe, "labels"):
                  labels[name] = list(pipe.labels)
          return SimpleFrozenDict(labels)
  
      @classmethod
      def has_factory(cls, name: str) -> bool:
keep add keep keep keep keep keep keep
 Add Pipe.hide_labels to omit labels from pipeline meta (#10175) 
spacy/language.py