Skip to main content

Additional lookup tables and data resources for spaCy

Project description

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.

Azure Pipelines 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, Turkish, Swedish or Croatian (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.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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spacy_lookups_data-1.0.1.tar.gz (97.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spacy_lookups_data-1.0.1-py2.py3-none-any.whl (97.3 MB view details)

Uploaded Python 2Python 3

File details

Details for the file spacy_lookups_data-1.0.1.tar.gz.

File metadata

  • Download URL: spacy_lookups_data-1.0.1.tar.gz
  • Upload date:
  • Size: 97.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.9

File hashes

Hashes for spacy_lookups_data-1.0.1.tar.gz
Algorithm Hash digest
SHA256 3e48b61478218b94b57ae234a3bac7f33ab92d97d13ee242e744d2b8ae7d464b
MD5 74b59d8b93218f9b9e1f6baa2a85284b
BLAKE2b-256 515df02c3f0b19b978f865e56c5fed511c22377748e6fab06c20391aee72a002

See more details on using hashes here.

File details

Details for the file spacy_lookups_data-1.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: spacy_lookups_data-1.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 97.3 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.9

File hashes

Hashes for spacy_lookups_data-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 735bbf0a25e91f84626c09f60e2d0cf8e7bbecfe9351444c6daf831e26033374
MD5 27e071e3537484b9b4eba98e68adc3c8
BLAKE2b-256 1a09241c5587c317f4a7cd9c48a334bce3d8767cc4d784590bb831aca57efc7c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page