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 Travis Build Status Current Release Version pypi 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 pre-trained model available for download – for example, Turkish, Swedish or Croatian (see data files). You should also install it if you're creating a blank model and want it to include lemmatization 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?

At the moment, yes. However, we are considering including 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-0.0.5.tar.gz (28.0 MB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: spacy_lookups_data-0.0.5.tar.gz
  • Upload date:
  • Size: 28.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.2

File hashes

Hashes for spacy_lookups_data-0.0.5.tar.gz
Algorithm Hash digest
SHA256 c7067cb98555b944c27502a7fb513f9e7c679fb230dd2f3c20cd3e8c042bab85
MD5 4f3b9dca4bb8cfacef253bb22ed33758
BLAKE2b-256 a8bbd3c748e883b814c26722ba4a90c433ca806796b437d7620843a5e5518c83

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