          patterns Optional[Iterable[PatternType]]: The list of patterns.
  
          DOCS: https://nightly.spacy.io/api/entityruler#initialize
          """
          if patterns:
              self.add_patterns(patterns)
  
      @property
      def ent_ids(self) -> Tuple[str, ...]:
 
</s>
        self.clear()
          patterns Optional[Iterable[PatternType]]: The list of patterns.
  
          DOCS: https://nightly.spacy.io/api/entityruler#initialize
          """
        self.clear()
          if patterns:
              self.add_patterns(patterns)
  
      @property
      def ent_ids(self) -> Tuple[str, ...]:
keep keep keep add keep keep keep keep keep
 Clear rule-based components on initialize
spacy/pipeline/entityruler.py