class_docstr: Set token-level attributes for tokens matched by Matcher patterns.
  Additionally supports importing patterns from tag maps and morph rules.
  
  DOCS: https://spacy.io/api/attributeruler
class_docstr_tok: ["Set","token-level","attributes","for","tokens","matched","by","Matcher","patterns",".","Additionally","supports","importing","patterns","from","tag","maps","and","morph","rules",".","DOCS",":","https",":","\/\/spacy.io\/api\/attributeruler"]
docstr: Reset all patterns.
docstr_tok: ["Reset","all","patterns","."]
code: def clear(self) -> None:
      """Reset all patterns."""
      self.matcher = Matcher(self.vocab, validate=self.validate)
      self.attrs = []
      self._attrs_unnormed = []
      self.indices = []
  
imports: from pathlib import Path
  from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, Union
  import srsly
  from ..None import util
  from ..errors import Errors
  from ..language import Language
  from ..matcher import Matcher
  from ..scorer import Scorer
  from ..symbols import IDS
  from ..tokens import Doc, Span
  from ..tokens._retokenize import normalize_token_attrs, set_token_attrs
  from ..training import Example
  from ..util import SimpleFrozenList, registry
  from ..vocab import Vocab
  from .pipe import Pipe
label_desc: Use image node_id 2 for calling the AttributeRuler obj's underlying member method code with example usage: obj.clear() without return types