Skip to main content

spaCy lookups data

This repository contains additional data files to be used with spaCy v2.2+. When it's installed in the same environment as spaCy, this package makes the resources for each language available as an entry point, which spaCy checks when setting up the Vocab and Lookups.

Feel free to submit pull requests to update the data. For issues related to the data, lookups and integration, please use the spaCy issue tracker.

tests Current Release Version pypi Version conda Version

FAQ

Why does this exist?

The main purpose of this package is to make the default spaCy installation smaller and not force every user to download large data files for all languages by default. Lookups data is now either provided via the pre-trained models (which serialize out their vocabulary and lookup tables) or by explicitly installing this package or spacy[lookups].

When should I install this?

You should install this package if you want to use lemmatization for languages that don't yet have a pretrained model available for download and don't rely on third-party libraries for lemmatization – for example for Serbian or Turkish (see data files).

If you are training new models with spaCy, you should probably install this, since it contains lemmatization and normalization data for 25+ languages that is no longer included as part of the main spaCy library. In particular, you should install it if you're creating a blank model and you want it to include lemmatization and normalization data. Once you've saved out the model (e.g. via nlp.to_disk), it will include the lookup tables as part of its Vocab.

Is this package only for lemmatization?

This package used to only be for lemmatization, but it has been extended to include normalization data for many languages. As of v0.3.1 it also includes optional probability and Brown cluster data that used to be distributed with provided models in spaCy v2.2 but is no longer included in spaCy v2.3. In the future it may include other lookup lists and tables as well, e.g. large tokenizer exception files.

Running tests

This package now also includes all data-specific tests. The test suite depends on spaCy.

pip install -r requirements.txt
python -m pytest spacy_lookups_data

If you've installed the package in your spaCy environment, you can also run the tests like this:

python -m pytest --pyargs spacy_lookups_data

Bug reports and other issues

Please use spaCy's issue tracker to report a bug, or open a new thread on the discussion board for any other issue.

Release files for spacy-lookups-data 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spacy-lookups-data 1.0.5
File Size Uploaded
spacy_lookups_data-1.0.5.tar.gz 98.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for spacy-lookups-data 1.0.5
File Interpreter ABI Platform
spacy_lookups_data-1.0.5-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 196.9 MB

Release files / spacy_lookups_data-1.0.5.tar.gz

Download URL spacy_lookups_data-1.0.5.tar.gz
Size 98.4 MB
Tags Source
SHA-256 checksum
How to use checksums
6f935c81f145bdcc84fc6115f648764285c7ff3e8ff246295046814e96dad63c
BLAKE2b-256 checksum
How to use checksums
fd42b747618ec64be73023b84c9eed7a09f5a345f514f367369b863f6a1dbf4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.9

Release files / spacy_lookups_data-1.0.5-py2.py3-none-any.whl

Download URL spacy_lookups_data-1.0.5-py2.py3-none-any.whl
Size 98.5 MB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
466f21f087e4144bc93800679437ec5a17be7d0888734b1ba880b3ecb0978bc6
BLAKE2b-256 checksum
How to use checksums
9f9edae3acaacc7cbe8140acb181e09b9920f8b3ee81d2f1cd838d160c78f0c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.9
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page