Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/explosion/spacy-legacy
πΈοΈ Legacy architectures and other registered spaCy v3.x functions for backwards-compatibility
https://github.com/explosion/spacy-legacy
spacy
Last synced: 3 months ago
JSON representation
πΈοΈ Legacy architectures and other registered spaCy v3.x functions for backwards-compatibility
- Host: GitHub
- URL: https://github.com/explosion/spacy-legacy
- Owner: explosion
- License: mit
- Created: 2021-01-15T01:00:59.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-25T15:09:25.000Z (11 months ago)
- Last Synced: 2024-09-30T05:40:51.659Z (3 months ago)
- Topics: spacy
- Language: Python
- Homepage: https://spacy.io
- Size: 69.3 KB
- Stars: 4
- Watchers: 7
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# spacy-legacy: Legacy functions and architectures for backwards compatibility
This package includes outdated registered functions for
[spaCy](https://spacy.io) v3.x, for example model architectures, pipeline
components and utilities. It's **installed automatically** as a dependency of
spaCy, and allows us to provide backwards compatibility, while keeping the core
library tidy and up to date. All of this happens under the hood, so you
typically shouldn't have to care about this package.[![tests](https://github.com/explosion/spacy-legacy/actions/workflows/tests.yml/badge.svg)](https://github.com/explosion/spacy-legacy/actions/workflows/tests.yml)
[![pypi Version](https://img.shields.io/pypi/v/spacy-legacy.svg?style=flat-square&logo=pypi&logoColor=white)](https://pypi.org/project/spacy-legacy/)## How it works
Whenever a new backwards-incompatible version of a registered function is
available, e.g. `spacy.Tok2Vec.v1` β `spacy.Tok2Vec.v2`, the legacy version
is moved to `spacy-legacy`, and exposed via [entry points](setup.cfg). This
means that it will still be available if your config files use it, even though
the core library only includes the latest version.Legacy functions are exposed with the prefix `spacy-legacy`, e.g.
`spacy-legacy.Tok2Vec.v1`. When spaCy resolves your config and a function is not
available in the core library, e.g. `spacy.Tok2Vec.v1`, it will check if there's
a legacy function available and fall back to that. You can also explicitly refer
to legacy functions in your config, to indicate that a newer version is
available.## Bug reports and other issues
Please use [spaCy's issue tracker](https://github.com/explosion/spaCy/issues) to
report a bug, or open a new thread on the
[discussion board](https://github.com/explosion/spaCy/discussions) for any other
issue.