code: def __init__(
      self,
      model: ahocorasick.Automaton,
      label: str = "matched",
      lower: bool = False,
      normalizer: Optional[Callable[[Token], str]] = None,
      lemma: bool = False,
      extend_span_to_token_boundary: bool = False,
      ignore_space: bool = True,
  ):
      self.model = model
      self.lower = lower
      self.normalizer = normalizer
      self.lemma = lemma
      self.label = label
      self.extend_span_to_token_boundary = extend_span_to_token_boundary
      self.ignore_space = ignore_space
  
file_path: camphr/packages/camphr_pattern_search/camphr_pattern_search/__init__.py
imports: import itertools
  from typing import Callable, Iterable, Iterator, List, Optional, Tuple
  import ahocorasick
  from spacy.tokens.token import Token
  import textspan
  from spacy.tokens import Doc, Span
label_desc: Use image node_id 1 to create a new PatternSearcher object  with example: obj = PatternSearcher(model, label, lower, normalizer, lemma, extend_span_to_token_boundary, ignore_space)