https://github.com/bramvanroy/spacy_download
Download and load spaCy models on-the-fly
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.1%) to scientific vocabulary
Repository
Download and load spaCy models on-the-fly
Basic Info
- Host: GitHub
- Owner: BramVanroy
- License: mit
- Language: Python
- Default Branch: main
- Size: 9.77 KB
Statistics
- Stars: 15
- Watchers: 1
- Forks: 1
- Open Issues: 1
- Releases: 0
Metadata Files
README.md
Download and load spaCy models on-the-fly
A tiny drop-in replacement for spacy.load() that automatically downloads a model when it is not currently installed.
shell
pip install spacy_download
Usage is identical to spacy.load(), meaning that you can also exclude
or disable pipeline components. Example:
```python from spacydownload import loadspacy
Will download the model if it isn't installed yet
nlp = loadspacy("encorewebsm", exclude=["parser", "tagger"])
```
Under the hood, the package makes use of spaCy's capability to import models as modules, rather than using spaCy's
built-in loader. This allows us to first download a model with pip and then load it as a module.
Note: if you are using transformer models, you still need to install spacy-transformers yourself!
WARNING: loading models on the fly can be useful, but it is not an officially supported feature. It should work fine with the official models at the time of writing, but I cannot guarantee that this will always be the case. Use at your own risk.
Owner
- Name: Bram Vanroy
- Login: BramVanroy
- Kind: user
- Location: Belgium
- Company: @CCL-KULeuven @instituutnederlandsetaal
- Website: https://bramvanroy.github.io/
- Repositories: 29
- Profile: https://github.com/BramVanroy
👋 My name is Bram and I work on natural language processing and machine translation (evaluation) but I also spend a lot of time in this open-source world 🌍
GitHub Events
Total
- Watch event: 1
Last Year
- Watch event: 1
Committers
Last synced: 10 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Bram Vanroy | B****y@U****e | 5 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 12 months ago
All Time
- Total issues: 1
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 1
- Total pull request authors: 0
- Average comments per issue: 1.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- markusdr (1)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 6,617 last-month
- Total dependent packages: 3
- Total dependent repositories: 1
- Total versions: 2
- Total maintainers: 1
pypi.org: spacy-download
Download and load spaCy models on-the-fly.
- Homepage: https://github.com/BramVanroy/spacy_download
- Documentation: https://spacy-download.readthedocs.io/
- License: MIT
-
Latest release: 1.1.0
published over 3 years ago
Rankings
Maintainers (1)
Dependencies
- spacy <4