def to_disk(self, path, exclude=tuple(), disable=None):
if disable is not None:<EOL><INDENT>deprecation_warning(Warnings.W014)<EOL>exclude = disable<EOL><DEDENT>path = util.ensure_path(path)<EOL>serializers = OrderedDict()<EOL>serializers["<STR_LIT>"] = lambda p: self.tokenizer.to_disk(p, exclude=["<STR_LIT>"])<EOL>serializers["<STR_LIT>"] = lambda p: p.open("<STR_LIT:w>").write(srsly.json_dumps(self.meta))<EOL>for name, proc in self.pipeline:<EOL><INDENT>if not hasattr(proc, "<STR_LIT:name>"):<EOL><INDENT>continue<EOL><DEDENT>if name in exclude:<EOL><INDENT>continue<EOL><DEDENT>if not hasattr(proc, "<STR_LIT>"):<EOL><INDENT>continue<EOL><DEDENT>serializers[name] = lambda p, proc=proc: proc.to_disk(p, exclude=["<STR_LIT>"])<EOL><DEDENT>serializers["<STR_LIT>"] = lambda p: self.vocab.to_disk(p)<EOL>util.to_disk(path, serializers, exclude)<EOL>
Save the current state to a directory.  If a model is loaded, this
        will include the model.

        path (unicode or Path): Path to a directory, which will be created if
            it doesn't exist.
        exclude (list): Names of components or serialization fields to exclude.

        DOCS: https://spacy.io/api/language#to_disk