code: def to_disk(self, path, **kwargs):
          
          path = ensure_path(path)
          path = path.with_suffix(".jsonl")
          srsly.write_jsonl(path, self.patterns)
docs: Save the entity ruler patterns to a directory. The patterns will be
          saved as newline-delimited JSON (JSONL).
  
          path (unicode / Path): The JSONL file to load.
          **kwargs: Other config paramters, mostly for consistency.
          RETURNS (EntityRuler): The loaded entity ruler.
  
          DOCS: https://spacy.io/api/entityruler#to_disk